Commit 185a3cce authored by bcoudurier's avatar bcoudurier

factorize write packet

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17888 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d357a31c
......@@ -762,7 +762,7 @@ static int gxf_write_media_preamble(AVFormatContext *s, AVPacket *pkt, int size)
return 16;
}
static int gxf_write_media_packet(AVFormatContext *s, AVPacket *pkt)
static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt)
{
GXFContext *gxf = s->priv_data;
ByteIOContext *pb = s->pb;
......@@ -782,14 +782,9 @@ static int gxf_write_media_packet(AVFormatContext *s, AVPacket *pkt)
if (st->codec->codec_type == CODEC_TYPE_VIDEO)
gxf->nb_fields += 2; // count fields
return updatePacketSize(pb, pos);
}
put_flush_packet(pb);
static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt)
{
gxf_write_media_packet(s, pkt);
put_flush_packet(s->pb);
return 0;
return updatePacketSize(pb, pos);
}
static int gxf_interleave_packet(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment