[SCM] libav/experimental: lavf: drop the zero-sized packets hack

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:03:08 UTC 2014


The following commit has been merged in the experimental branch:
commit c9281a01b78cc3f09e36300a0ca3f5824d1c74cf
Author: Anton Khirnov <anton at khirnov.net>
Date:   Thu May 1 13:11:57 2014 +0200

    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.

diff --git a/libavformat/mux.c b/libavformat/mux.c
index 33257ea..2e889ca 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))

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list