History

v210x: check for return value of avcodec_alloc_frame()

Paul B Mahol committed 14 years ago

Commit f122cbf1 parent 7299e5d1 file · +2 −0Browse files

Unified · Split

libavcodec/v210x.c+2−0
@@ -31,6 +31,8 @@ static av_cold int decode_init(AVCodecContext *avctx) · 30 unmodified lines
3131 avctx->bits_per_raw_sample= 10;
3232
3333 avctx->coded_frame= avcodec_alloc_frame();
34+ if (!avctx->coded_frame)
35+ return AVERROR(ENOMEM);
3436
3537 return 0;
3638 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t