diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-08-26 01:27:58 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-08-26 01:27:58 +0000 |
commit | b02316146b35cd03715d166acb35d88f33eac990 (patch) | |
tree | dc9f9e52d01e3d6cfe37a41114b6cb19ec71ccf6 /libavcodec | |
parent | a13e687034093c751da6fd19be0f88e695e1375a (diff) | |
download | ffmpeg-b02316146b35cd03715d166acb35d88f33eac990.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pgssubdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c index a27e5f9d80..c289cc6a37 100644 --- a/libavcodec/pgssubdec.c +++ b/libavcodec/pgssubdec.c @@ -343,6 +343,7 @@ static int display_end_segment(AVCodecContext *avctx, void *data, * 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; |