]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cfhd.c
avcodec/prosumer: Only scan as many elements as matter in fill_elements()
[ffmpeg] / libavcodec / cfhd.c
index 1959762f0e56a7406691fd19979896d68dcd6aa8..846d334b9b7be9ed54acbcf072306ababb86ad5f 100644 (file)
@@ -697,7 +697,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
                 goto end;
             }
             if (s->peak.level)
-                peak_table(coeff_data - expected, &s->peak, expected);
+                peak_table(coeff_data - count, &s->peak, count);
             if (s->difference_coding)
                 difference_coding(s->plane[s->channel_num].subband[s->subband_num_actual], highpass_width, highpass_height);