[FFmpeg-devel] [PATCH] matroskadec: set duration also for subtitles.

Nicolas George nicolas.george at normalesup.org
Sun Jun 17 18:15:08 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavformat/matroskadec.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


It does not seem to have any advert effect (FATE passes) and seems more
logical.


diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index aaeff21..41c4649 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2081,8 +2081,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
                 pkt->pos = pos;
                 if (st->codec->codec_id == CODEC_ID_TEXT)
                     pkt->convergence_duration = duration;
-                else if (track->type != MATROSKA_TRACK_TYPE_SUBTITLE)
-                    pkt->duration = duration;
+                pkt->duration = duration;
 
                 if (st->codec->codec_id == CODEC_ID_SSA)
                     matroska_fix_ass_packet(matroska, pkt, duration);
-- 
1.7.10



More information about the ffmpeg-devel mailing list