]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/aacsbr_template.c
aacsbr: Turnoff in the event of over read.
[ffmpeg] / libavcodec / aacsbr_template.c
index cf8621eee03d9595925bc339861a330188e6a45d..750131c64c4ad856a5c869de898d6ae17da5700b 100644 (file)
@@ -1137,6 +1137,7 @@ int AAC_RENAME(ff_decode_sbr_extension)(AACContext *ac, SpectralBandReplication
     if (bytes_read > cnt) {
         av_log(ac->avctx, AV_LOG_ERROR,
                "Expected to read %d SBR bytes actually read %d.\n", cnt, bytes_read);
+        sbr_turnoff(sbr);
     }
     return cnt;
 }