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

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/388/head
Andreas Rheinhardt 2 years ago
parent 75842c35e7
commit 9ec50660ad
  1. 6
      libavcodec/huffyuvenc.c

@ -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;

Loading…
Cancel
Save