[Ffmpeg-cvslog] r8366 - trunk/libavformat/matroska.c

aurel subversion
Tue Mar 13 01:16:31 CET 2007


Author: aurel
Date: Tue Mar 13 01:16:31 2007
New Revision: 8366

Modified:
   trunk/libavformat/matroska.c

Log:
set pkt->duration for laced packets too

Modified: trunk/libavformat/matroska.c
==============================================================================
--- trunk/libavformat/matroska.c	(original)
+++ trunk/libavformat/matroska.c	Tue Mar 13 01:16:31 2007
@@ -2593,6 +2593,7 @@ matroska_parse_block(MatroskaDemuxContex
 
                 pkt->pts = timecode;
                 pkt->pos = pos;
+                pkt->duration = duration;
 
                 if (matroska->tracks[track]->flags & MATROSKA_TRACK_REORDER)
                     matroska_queue_packet_reordered(matroska, pkt, is_bframe);
@@ -2692,14 +2693,6 @@ matroska_parse_blockgroup (MatroskaDemux
                                    duration, is_keyframe, is_bframe,
                                    &track, &pkt);
 
-    if (pkt)
-    {
-        if (duration != AV_NOPTS_VALUE)
-            pkt->duration = duration;
-        else if (track >= 0 && track < matroska->num_tracks)
-            pkt->duration = matroska->tracks[track]->default_duration;
-    }
-
     return res;
 }
 




More information about the ffmpeg-cvslog mailing list