diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-05-01 13:11:57 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-05-15 07:50:47 +0200 |
commit | c9281a01b78cc3f09e36300a0ca3f5824d1c74cf (patch) | |
tree | caef7560736b52bf48fa8d8df4e8ea1d1fd24221 /libavformat/mux.c | |
parent | 0c1959b056f6ccaa2eee2c824352ba93c8e36d52 (diff) | |
download | ffmpeg-c9281a01b78cc3f09e36300a0ca3f5824d1c74cf.tar.gz |
lavf: drop the zero-sized packets hack
There should not be any valid reason anymore for passing completely
empty packets to lavf.
OTOH side data-only packets can be useful.
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r-- | libavformat/mux.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c index 33257ea147..2e889cad1b 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -629,12 +629,6 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt) if (pkt) { AVStream *st = s->streams[pkt->stream_index]; - //FIXME/XXX/HACK drop zero sized packets - if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO && pkt->size == 0) { - ret = 0; - goto fail; - } - av_dlog(s, "av_interleaved_write_frame size:%d dts:%" PRId64 " pts:%" PRId64 "\n", pkt->size, pkt->dts, pkt->pts); if ((ret = compute_pkt_fields2(s, st, pkt)) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS)) |