This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avcodec/bfi: check for malloc failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Piotr Bandurski
Michael Niedermayer
12 years ago
parent
bb5e7d3b5a
commit
1a3d142f1f
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavcodec/bfi.c
+ 2
- 0
libavcodec/bfi.c
View File
@@ -42,6 +42,8 @@ static av_cold int bfi_decode_init(AVCodecContext *avctx)
BFIContext *bfi = avctx->priv_data;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
bfi->dst = av_mallocz(avctx->width * avctx->height);
if (!bfi->dst)
return AVERROR(ENOMEM);
return 0;
}
Write
Preview
Loading…
Cancel
Save