Merge commit 'c9281a01b78cc3f09e36300a0ca3f5824d1c74cf'
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 15 May 2014 17:24:19 +0000 (19:24 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 15 May 2014 17:24:19 +0000 (19:24 +0200)
* commit 'c9281a01b78cc3f09e36300a0ca3f5824d1c74cf':
  lavf: drop the zero-sized packets hack

Conflicts:
libavformat/mux.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mux.c

index 175f157..a3a63f2 100644 (file)
@@ -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))