mirror of https://git.videolan.org/git/ffmpeg.git
avcodec/ffv1: remove unneeded variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a3963cc8ec
commit
d19fc69f15
|
@ -111,7 +111,7 @@ av_cold int ffv1_init_slices_state(FFV1Context *f)
|
||||||
|
|
||||||
av_cold int ffv1_init_slice_contexts(FFV1Context *f)
|
av_cold int ffv1_init_slice_contexts(FFV1Context *f)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i;
|
||||||
|
|
||||||
f->slice_count = f->num_h_slices * f->num_v_slices;
|
f->slice_count = f->num_h_slices * f->num_v_slices;
|
||||||
av_assert0(f->slice_count > 0);
|
av_assert0(f->slice_count > 0);
|
||||||
|
@ -147,9 +147,9 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
memfail:
|
memfail:
|
||||||
for (j = 0; j < i; j++) {
|
while(--i >= 0) {
|
||||||
av_freep(&f->slice_context[j]->sample_buffer);
|
av_freep(&f->slice_context[i]->sample_buffer);
|
||||||
av_freep(&f->slice_context[j]);
|
av_freep(&f->slice_context[i]);
|
||||||
}
|
}
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue