Commit b0231614 authored by Reimar Döffinger's avatar Reimar Döffinger

Apply r19642 also pgssubdec:

Make sure AVSubtitle is initialized, memset it to 0.

Originally committed as revision 19706 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a13e6870
...@@ -343,6 +343,7 @@ static int display_end_segment(AVCodecContext *avctx, void *data, ...@@ -343,6 +343,7 @@ static int display_end_segment(AVCodecContext *avctx, void *data,
* not been cleared by a subsequent empty display command. * not been cleared by a subsequent empty display command.
*/ */
memset(sub, 0, sizeof(*sub));
sub->start_display_time = 0; sub->start_display_time = 0;
sub->end_display_time = 20000; sub->end_display_time = 20000;
sub->format = 0; sub->format = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment