From c6d04addf6645778a447d41a40436203544ec28d Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Thu, 7 Oct 2010 19:35:55 +0000 Subject: [PATCH] In gxf muxer, fix number of flt entries based on patch by Reuben Martin, reuben dot m at gmail dot com Originally committed as revision 25399 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/gxfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 5fff2af058..78e1a1cbdd 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -365,7 +365,7 @@ static int gxf_write_flt_packet(AVFormatContext *s) ByteIOContext *pb = s->pb; int64_t pos = url_ftell(pb); int fields_per_flt = (gxf->nb_fields+1) / 1000 + 1; - int flt_entries = gxf->nb_fields / fields_per_flt - 1; + int flt_entries = gxf->nb_fields / fields_per_flt; int i = 0; gxf_write_packet_header(pb, PKT_FLT);