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
1 changed files with 3 additions and 3 deletions

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;