mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
swscale/slice: Fix wrong return on error
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7874d40f10
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f596962a33
commit
f5706ceea8
@ -286,8 +286,10 @@ int ff_init_filters(SwsContext * c)
|
|||||||
if (!c->desc)
|
if (!c->desc)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
c->slice = av_mallocz_array(sizeof(SwsSlice), c->numSlice);
|
c->slice = av_mallocz_array(sizeof(SwsSlice), c->numSlice);
|
||||||
if (!c->slice)
|
if (!c->slice) {
|
||||||
|
res = AVERROR(ENOMEM);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
res = alloc_slice(&c->slice[0], c->srcFormat, c->srcH, c->chrSrcH, c->chrSrcHSubSample, c->chrSrcVSubSample, 0);
|
res = alloc_slice(&c->slice[0], c->srcFormat, c->srcH, c->chrSrcH, c->chrSrcHSubSample, c->chrSrcVSubSample, 0);
|
||||||
if (res < 0) goto cleanup;
|
if (res < 0) goto cleanup;
|
||||||
|
Loading…
Reference in New Issue
Block a user