[FFmpeg-devel] [PATCH 3/3] lavfi/overlay: support timeline through the new system.

Clément Bœsch ubitux at gmail.com
Sat Apr 20 16:26:32 CEST 2013


On Sat, Apr 20, 2013 at 04:22:02PM +0200, Stefano Sabatini wrote:
[...]
> >  void ff_update_link_current_pts(AVFilterLink *link, int64_t pts)
> >  {
> >      if (pts == AV_NOPTS_VALUE)
> > @@ -381,6 +424,8 @@ int avfilter_process_command(AVFilterContext *filter, const char *cmd, const cha
> >      if(!strcmp(cmd, "ping")){
> >          av_strlcatf(res, res_len, "pong from:%s %s\n", filter->filter->name, filter->name);
> >          return 0;
> > +    }else if(!strcmp(cmd, "enable")) {
> > +        return set_enable_expr(filter, arg);
> 
> Uhm ok although this disallows an internal command for overriding it,
> not sure this is a problem and/or if there is a better approach.
> 

If it becomes necessary later (I hope no but who knows), we just have to
replace this check with:

  else if(!strcmp(cmd, "enable") && (filter->filter->flag & ...)) {

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130420/4a0013e4/attachment.asc>


More information about the ffmpeg-devel mailing list