mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avcodec/ffv1: dont leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d19fc69f15
commit
4d74c8d550
@ -140,7 +140,7 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
|
|||||||
fs->sample_buffer = av_malloc_array((fs->width + 6), 3 * MAX_PLANES *
|
fs->sample_buffer = av_malloc_array((fs->width + 6), 3 * MAX_PLANES *
|
||||||
sizeof(*fs->sample_buffer));
|
sizeof(*fs->sample_buffer));
|
||||||
if (!fs->sample_buffer) {
|
if (!fs->sample_buffer) {
|
||||||
av_free(fs);
|
av_freep(&f->slice_context[i]);
|
||||||
goto memfail;
|
goto memfail;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user