mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
avcodec/hevcdec: fix a return error value
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
edc45d1bd5
commit
000b25096b
@ -2639,7 +2639,7 @@ static int hls_slice_data_wpp(HEVCContext *s, const H2645NAL *nal)
|
||||
s->sList[i] = av_malloc(sizeof(HEVCContext));
|
||||
s->HEVClcList[i] = av_mallocz(sizeof(HEVCLocalContext));
|
||||
if (!s->sList[i] || !s->HEVClcList[i]) {
|
||||
res = AVERROR_INVALIDDATA;
|
||||
res = AVERROR(ENOMEM);
|
||||
goto error;
|
||||
}
|
||||
memcpy(s->sList[i], s, sizeof(HEVCContext));
|
||||
|
Loading…
Reference in New Issue
Block a user