[FFmpeg-cvslog] avformat/aacdec: resync to the next adts frame on invalid data instead of aborting
James Almer
git at videolan.org
Sun Jul 21 03:51:03 EEST 2019
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Jul 20 21:47:55 2019 -0300| [881e1f5a6227a6fbaf67083d4d4b6caf58ff9892] | committer: James Almer
avformat/aacdec: resync to the next adts frame on invalid data instead of aborting
Should fix ticket #6634
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=881e1f5a6227a6fbaf67083d4d4b6caf58ff9892
---
libavformat/aacdec.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c
index 262614fdd9..00ca2319ca 100644
--- a/libavformat/aacdec.c
+++ b/libavformat/aacdec.c
@@ -190,9 +190,9 @@ retry:
}
if (!ff_id3v2_match(pkt->data, ID3v2_DEFAULT_MAGIC)) {
av_packet_unref(pkt);
- return AVERROR_INVALIDDATA;
- }
- ret = handle_id3(s, pkt);
+ ret = adts_aac_resync(s);
+ } else
+ ret = handle_id3(s, pkt);
if (ret < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list