mpegtsenc: Do not fail ADTS AAC muxing if the first frame is not ADTS
authorHagen Schmidt <schmidthagen@googlemail.com>
Tue, 15 Dec 2015 07:00:48 +0000 (08:00 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 29 Jan 2016 20:40:33 +0000 (21:40 +0100)
Fixes ticket 279.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpegtsenc.c

index a20e229..7656720 100644 (file)
@@ -1523,8 +1523,6 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
             if (!ts_st->amux) {
                 av_log(s, AV_LOG_ERROR, "AAC bitstream not in ADTS format "
                                         "and extradata missing\n");
-                if (!st->nb_frames)
-                    return AVERROR_INVALIDDATA;
             } else {
             av_init_packet(&pkt2);
             pkt2.data = pkt->data;