Originally committed as revision 8366 to svn://svn.ffmpeg.org/ffmpeg/trunk
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);
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;
}