ffv1: Pass correct pointers to av_free()

Bug-Id: CID 1295124
This commit is contained in:
Diego Biurrun 2015-04-20 13:58:45 +02:00 committed by Vittorio Giovara
parent 3b1e35d46d
commit 338ed3ed33

View File

@ -226,8 +226,8 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
memfail:
for (j = 0; j < i; j++) {
av_free(&f->slice_context[j]->sample_buffer);
av_free(&f->slice_context[j]);
av_free(f->slice_context[j]->sample_buffer);
av_free(f->slice_context[j]);
}
return AVERROR(ENOMEM);
}