mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit 'c9281a01b78cc3f09e36300a0ca3f5824d1c74cf'
* commit 'c9281a01b78cc3f09e36300a0ca3f5824d1c74cf': lavf: drop the zero-sized packets hack Conflicts: libavformat/mux.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
f478e8500a
|
@ -852,12 +852,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:%s pts:%s\n",
|
||||
pkt->size, av_ts2str(pkt->dts), av_ts2str(pkt->pts));
|
||||
if ((ret = compute_pkt_fields2(s, st, pkt)) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS))
|
||||
|
|
Loading…
Reference in New Issue