1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-23 04:24:35 +02:00

avcodec/huffyuvenc: Don't second-guess error code

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-10-01 21:29:34 +02:00
parent 75842c35e7
commit 9ec50660ad

View File

@ -391,9 +391,9 @@ static av_cold int encode_init(AVCodecContext *avctx)
s->stats[i][j]= 0;
}
if (ff_huffyuv_alloc_temp(s)) {
return AVERROR(ENOMEM);
}
ret = ff_huffyuv_alloc_temp(s);
if (ret < 0)
return ret;
s->picture_number=0;