mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/huffyuvenc: Don't second-guess error code
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
75842c35e7
commit
9ec50660ad
|
@ -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…
Reference in New Issue