History

vsrc_buffer: propagate avfilter_open() error code

Stefano Sabatini committed 15 years ago

Commit 509b32c1 parent 37998051 file · +2 −2Browse files

Unified · Split

libavfilter/vsrc_buffer.c+2−2
@@ -69,8 +69,8 @@ int av_vsrc_buffer_add_video_buffer_ref2(AVFilterContext *buffer_filter, AVFilte · 68 unmodified lines
6969 AVFilter *f = avfilter_get_by_name("scale");
7070
7171 av_log(buffer_filter, AV_LOG_INFO, "Inserting scaler filter\n");
72− if (avfilter_open(&scale, f, "Input equalizer") < 0)
73− return -1;
72+ if ((ret = avfilter_open(&scale, f, "Input equalizer")) < 0)
73+ return ret;
7474
7575 if ((ret = avfilter_init_filter(scale, c->sws_param, NULL)) < 0) {
7676 avfilter_free(scale);

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