Revision c22f2527 libavformat/movenc.c

View differences:

libavformat/movenc.c
1993 1993
        /* from x264 or from bytestream h264 */
1994 1994
        /* nal reformating needed */
1995 1995
        size = ff_avc_parse_nal_units(pb, pkt->data, pkt->size);
1996
    } else if (enc->codec_id == CODEC_ID_AAC && pkt->size > 2 &&
1997
               (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) {
1998
        av_log(s, AV_LOG_ERROR, "malformated aac bitstream, use -absf aac_adtstoasc\n");
1999
        return -1;
1996 2000
    } else {
1997 2001
        avio_write(pb, pkt->data, size);
1998 2002
    }

Also available in: Unified diff