On 05/03/2014 03:13 PM, Anton Khirnov wrote:
There should not be any valid reason anymore for passing completely empty packets to lavf. OTOH side data-only packets can be useful. --- libavformat/mux.c | 6 ------ 1 file changed, 6 deletions(-)diff --git a/libavformat/mux.c b/libavformat/mux.c index 0783fc3..dd88225 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -624,12 +624,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))
Ok -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
