|
|
@ -970,10 +970,10 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) |
|
|
|
} else if (par->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && |
|
|
|
} else if (par->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && |
|
|
|
(AV_RB16(pkt->data) & 0xfff0) == 0xfff0) { |
|
|
|
(AV_RB16(pkt->data) & 0xfff0) == 0xfff0) { |
|
|
|
if (!s->streams[pkt->stream_index]->nb_frames) { |
|
|
|
if (!s->streams[pkt->stream_index]->nb_frames) { |
|
|
|
av_log(s, AV_LOG_ERROR, "Malformed AAC bitstream detected: " |
|
|
|
av_log(s, AV_LOG_ERROR, "Malformed AAC bitstream detected: " |
|
|
|
"use the audio bitstream filter 'aac_adtstoasc' to fix it " |
|
|
|
"use the audio bitstream filter 'aac_adtstoasc' to fix it " |
|
|
|
"('-bsf:a aac_adtstoasc' option with ffmpeg)\n"); |
|
|
|
"('-bsf:a aac_adtstoasc' option with ffmpeg)\n"); |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
} |
|
|
|
} |
|
|
|
av_log(s, AV_LOG_WARNING, "aac bitstream error\n"); |
|
|
|
av_log(s, AV_LOG_WARNING, "aac bitstream error\n"); |
|
|
|
} |
|
|
|
} |
|
|
|