]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/adpcm_ima_apm: remove old extradata format
authorZane van Iperen <zane@zanevaniperen.com>
Thu, 18 Feb 2021 03:47:13 +0000 (13:47 +1000)
committerZane van Iperen <zane@zanevaniperen.com>
Wed, 28 Apr 2021 01:13:43 +0000 (11:13 +1000)
Was added in error very early on, passing in only the required fields.
Later, the muxer and demuxer were changed to pass the entire APMState
struct as extradata.

Technically a breaking change, but this was only around for a *very* short
time before it was updated,

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
libavcodec/adpcm.c

index 16e015b0f812eb811f98fbe383cc3c46e3cfe014..8d94cefa0eefb614fc0f9e2ed7ac08617816b219 100644 (file)
@@ -2107,11 +2107,6 @@ static void adpcm_flush(AVCodecContext *avctx)
                 c->status[0].step_index = av_clip(AV_RL32(avctx->extradata + 20), 0, 88);
                 c->status[1].predictor  = av_clip_intp2(AV_RL32(avctx->extradata + 4), 18);
                 c->status[1].step_index = av_clip(AV_RL32(avctx->extradata + 8), 0, 88);
-            } else if (avctx->extradata_size >= 16) {
-                c->status[0].predictor  = av_clip_intp2(AV_RL32(avctx->extradata +  0), 18);
-                c->status[0].step_index = av_clip(AV_RL32(avctx->extradata +  4), 0, 88);
-                c->status[1].predictor  = av_clip_intp2(AV_RL32(avctx->extradata +  8), 18);
-                c->status[1].step_index = av_clip(AV_RL32(avctx->extradata + 12), 0, 88);
             }
         }
         break;