# HG changeset patch # User bcoudurier # Date 1186679939 0 # Node ID be2b786dc550ca6c6fdcfd3ab0971c1b281a0b71 # Parent 59fa1bf41c5d8420e9e73eff34d55f888c4ca472 take care to use video track field number as duration diff -r 59fa1bf41c5d -r be2b786dc550 gxfenc.c --- a/gxfenc.c Thu Aug 09 16:46:48 2007 +0000 +++ b/gxfenc.c Thu Aug 09 17:18:59 2007 +0000 @@ -679,9 +679,9 @@ for (i = 0; i < s->nb_streams; ++i) { if (s->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) { av_fifo_free(&gxf->streams[i].audio_buffer); + } else if (s->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) { + gxf->nb_frames = 2 * s->streams[i]->codec->frame_number; } - if (s->streams[i]->codec->frame_number > gxf->nb_frames) - gxf->nb_frames = 2 * s->streams[i]->codec->frame_number; } gxf_write_eos_packet(pb, gxf);