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
31 avctx->bits_per_raw_sample= 10;31 avctx->bits_per_raw_sample= 10;
32 32
33 avctx->coded_frame= avcodec_alloc_frame();33 avctx->coded_frame= avcodec_alloc_frame();
34 if (!avctx->coded_frame)
35 return AVERROR(ENOMEM);
34 36
35 return 0;37 return 0;
36}38}

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