You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avs: check ff_set_dimensions return value
CC: libav-stable@libav.org Bug-Id: CID 1135738
This commit is contained in:
@@ -165,9 +165,8 @@ static av_cold int avs_decode_init(AVCodecContext * avctx)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
avctx->pix_fmt = AV_PIX_FMT_PAL8;
|
||||
ff_set_dimensions(avctx, 318, 198);
|
||||
|
||||
return 0;
|
||||
return ff_set_dimensions(avctx, 318, 198);
|
||||
}
|
||||
|
||||
static av_cold int avs_decode_end(AVCodecContext *avctx)
|
||||
|
Reference in New Issue
Block a user