[FFmpeg-soc] [soc]: r1601 - libavfilter/diffs/04_ffmpeg_filters.diff

Aurelien Jacobs aurel at gnuage.org
Tue Dec 18 23:27:11 CET 2007


vitor wrote:

> Author: vitor
> Date: Tue Dec 18 22:55:28 2007
> New Revision: 1601
> 
> Log:
> Forgot to put the code in my last commit inside an #if ENABLE_AVFILTER
> 
> Modified:
>    libavfilter/diffs/04_ffmpeg_filters.diff
> 
> Modified: libavfilter/diffs/04_ffmpeg_filters.diff
> ==============================================================================
> --- libavfilter/diffs/04_ffmpeg_filters.diff	(original)
> +++ libavfilter/diffs/04_ffmpeg_filters.diff	Tue Dec 18
> 22:55:28 2007 @@ -323,17 +323,18 @@ Index: ffmpeg.c
>   
>       if (ost->video_pad) {
>           av_picture_pad((AVPicture*)final_picture, (AVPicture
> *)padding_src, -@@ -1261,6 +1520,9 @@
> +@@ -1261,6 +1520,10 @@
>                       }
>                   }
>               }
> ++#if ENABLE_AVFILTER
>  +        if(ist->picref)
>  +            avfilter_unref_pic(ist->picref);
> -+
> ++#endif

IMO, this would be nicer written this way:

        if (ENABLE_AVFILTER && ist->picref)
            avfilter_unref_pic(ist->picref);

Aurel



More information about the FFmpeg-soc mailing list