mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/aacdec: resync to the next adts frame on invalid data instead of aborting
Should fix ticket #6634 Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
a38eab8b75
commit
881e1f5a62
|
@ -190,9 +190,9 @@ retry:
|
||||||
}
|
}
|
||||||
if (!ff_id3v2_match(pkt->data, ID3v2_DEFAULT_MAGIC)) {
|
if (!ff_id3v2_match(pkt->data, ID3v2_DEFAULT_MAGIC)) {
|
||||||
av_packet_unref(pkt);
|
av_packet_unref(pkt);
|
||||||
return AVERROR_INVALIDDATA;
|
ret = adts_aac_resync(s);
|
||||||
}
|
} else
|
||||||
ret = handle_id3(s, pkt);
|
ret = handle_id3(s, pkt);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue