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:
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…
x
Reference in New Issue
Block a user