Commit 881e1f5a authored by James Almer's avatar James Almer

avformat/aacdec: resync to the next adts frame on invalid data instead of aborting

Should fix ticket #6634
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent a38eab8b
...@@ -190,9 +190,9 @@ retry: ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment