diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-06-26 17:59:38 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-06-26 23:22:31 +0200 |
commit | 418b9454ff65e9aec0006ea3b3459ee01f86cf64 (patch) | |
tree | ae71a620a8b138ac3020566e6825a994e2d4d0f7 | |
parent | 08b99be7c4745e9e4c435f17c2f46afc5d7d943c (diff) | |
download | ffmpeg-418b9454ff65e9aec0006ea3b3459ee01f86cf64.tar.gz |
lavf/movenc: improve error feedback in case malformed AAC bitstream is detected
Consistent with the FLV muxer.
-rw-r--r-- | libavformat/movenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 77fc1804b7..cff0760c0e 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3184,7 +3184,9 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) if (enc->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) { if (!s->streams[pkt->stream_index]->nb_frames) { - av_log(s, AV_LOG_ERROR, "malformated aac bitstream, use -absf aac_adtstoasc\n"); + av_log(s, AV_LOG_ERROR, "Malformed AAC bitstream detected: " + "use audio bitstream filter 'aac_adtstoasc' to fix it " + "('-bsf:a aac_adtstoasc' option with ffmpeg)\n"); return -1; } av_log(s, AV_LOG_WARNING, "aac bitstream error\n"); |