diff options
author | Reuben Martin <reuben.m@gmail.com> | 2010-10-07 19:15:35 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-10-07 19:15:35 +0000 |
commit | ad4c3c68407fd94dc2ec7026436d6f35fe0ef013 (patch) | |
tree | ce06e0567a02fca510ffa183cd123af8d7d99430 /libavformat/gxfenc.c | |
parent | e99179de9b2a60350e279ed296ffae31c03ff5a1 (diff) | |
download | ffmpeg-ad4c3c68407fd94dc2ec7026436d6f35fe0ef013.tar.gz |
In gxf muxer, fix flt entry offset, patch by Reuben Martin, reuben dot m at gmail dot com
Originally committed as revision 25395 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/gxfenc.c')
-rw-r--r-- | libavformat/gxfenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 55bba21579..fe286e2172 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -859,6 +859,7 @@ static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt) AVStream *st = s->streams[pkt->stream_index]; int64_t pos = url_ftell(pb); int padding = 0; + int packet_start_offset = url_ftell(pb) / 1024; gxf_write_packet_header(pb, PKT_MEDIA); if (st->codec->codec_id == CODEC_ID_MPEG2VIDEO && pkt->size % 4) /* MPEG-2 frames must be padded */ @@ -878,7 +879,7 @@ static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt) return -1; } } - gxf->flt_entries[gxf->flt_entries_nb++] = url_ftell(pb) / 1024; + gxf->flt_entries[gxf->flt_entries_nb++] = packet_start_offset; gxf->nb_fields += 2; // count fields } |