Mercurial > libavcodec.hg
comparison pgssubdec.c @ 10087:8f1e09db0905 libavcodec
Apply r19642 also pgssubdec:
Make sure AVSubtitle is initialized, memset it to 0.
author | reimar |
---|---|
date | Wed, 26 Aug 2009 01:27:58 +0000 |
parents | 8071f8b68d05 |
children | ecc8287398bc |
comparison
equal
deleted
inserted
replaced
10086:3a2f437d2fea | 10087:8f1e09db0905 |
---|---|
341 * The end display time is a timeout value and is only reached | 341 * The end display time is a timeout value and is only reached |
342 * if the next subtitle is later then timeout or subtitle has | 342 * if the next subtitle is later then timeout or subtitle has |
343 * not been cleared by a subsequent empty display command. | 343 * not been cleared by a subsequent empty display command. |
344 */ | 344 */ |
345 | 345 |
346 memset(sub, 0, sizeof(*sub)); | |
346 sub->start_display_time = 0; | 347 sub->start_display_time = 0; |
347 sub->end_display_time = 20000; | 348 sub->end_display_time = 20000; |
348 sub->format = 0; | 349 sub->format = 0; |
349 | 350 |
350 if (!sub->rects) { | 351 if (!sub->rects) { |