Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-13 21:07:45 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-13 21:07:45 +0300
commitd19fc69f15c333956dc537604308ee2944be10a3 (patch)
treeee122f54c4ccdc3fac32bdb8ed2e844f54d89e4f /libavcodec/ffv1.c
parenta3963cc8ec3b4e1780aadcbc0e5a7af625bae175 (diff)
avcodec/ffv1: remove unneeded variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index eb613c75b4..aada565f90 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -111,7 +111,7 @@ av_cold int ffv1_init_slices_state(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;
av_assert0(f->slice_count > 0);
@@ -147,9 +147,9 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
return 0;
memfail:
- for (j = 0; j < i; j++) {
- av_freep(&f->slice_context[j]->sample_buffer);
- av_freep(&f->slice_context[j]);
+ while(--i >= 0) {
+ av_freep(&f->slice_context[i]->sample_buffer);
+ av_freep(&f->slice_context[i]);
}
return AVERROR(ENOMEM);
}