[FFmpeg-cvslog] r19706 - trunk/libavcodec/pgssubdec.c

Aurelien Jacobs aurel
Fri Aug 28 13:51:44 CEST 2009


On Wed, Aug 26, 2009 at 03:27:58AM +0200, reimar wrote:
> Author: reimar
> Date: Wed Aug 26 03:27:58 2009
> New Revision: 19706
> 
> Log:
> Apply r19642 also pgssubdec:
> Make sure AVSubtitle is initialized, memset it to 0.
> 
> Modified:
>    trunk/libavcodec/pgssubdec.c
> 
> Modified: trunk/libavcodec/pgssubdec.c
> ==============================================================================
> --- trunk/libavcodec/pgssubdec.c	Wed Aug 26 01:28:33 2009	(r19705)
> +++ trunk/libavcodec/pgssubdec.c	Wed Aug 26 03:27:58 2009	(r19706)
> @@ -343,6 +343,7 @@ static int display_end_segment(AVCodecCo
>       *      not been cleared by a subsequent empty display command.
>       */
>  
> +    memset(sub, 0, sizeof(*sub));
>      sub->start_display_time = 0;
>      sub->end_display_time   = 20000;
>      sub->format             = 0;

Then initialization of start_display_time and format to 0 becomes redundant...

Aurel



More information about the ffmpeg-cvslog mailing list