[FFmpeg-devel] [PATCH] lavf/movenc: improve error feedback in case malformed AAC is detected
Stefano Sabatini
stefasab at gmail.com
Wed Jun 26 23:34:46 CEST 2013
On date Wednesday 2013-06-26 18:01:05 +0200, Stefano Sabatini encoded:
> Consistent with the FLV muxer.
> ---
> libavformat/movenc.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/libavformat/movenc.c b/libavformat/movenc.c
> index 77fc180..cff0760 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");
Applied.
--
FFmpeg = Forgiving and Frenzy Meaningless Purposeless Epic Game
More information about the ffmpeg-devel
mailing list