History

avfilter/lavfutils/ff_load_image: Return error if no frame could be decoded

Based-on suggestion by JULIAN GARDNER <joolzg@btinternet.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer committed 12 years ago

Commit 65f05ef1 parent 11aab8d1 file · +2 −0Browse files

Unified · Split

libavfilter/lavfutils.c+2−0
@@ -77,6 +77,8 @@ int ff_load_image(uint8_t *data[4], int linesize[4], · 76 unmodified lines
7777 ret = avcodec_decode_video2(codec_ctx, frame, &frame_decoded, &pkt);
7878 if (ret < 0 || !frame_decoded) {
7979 av_log(log_ctx, AV_LOG_ERROR, "Failed to decode image from file\n");
80+ if (ret >= 0)
81+ ret = -1;
8082 goto end;
8183 }
8284

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