History

avdevice/decklink: refactor ff_decklink_set_format function

This is done to enable input format autodetection in decklink_dec.

Karthick J committed 9 years ago

Commit aa7b0321 parent 0e7865c4 files · +35 −14Browse files

Showing the changes to libavdevice/decklink_enc.cpp (1 of 4 files). Show all

Unified · Split

libavdevice/decklink_enc.cpp+4−0
@@ -162,6 +162,10 @@ static int decklink_setup_video(AVFormatContext *avctx, AVStream *st) · 161 unmodified lines
162162 return -1;
163163 }
164164
165+ if (ff_decklink_set_configs(avctx, DIRECTION_OUT) < 0) {
166+ av_log(avctx, AV_LOG_ERROR, "Could not set output configuration\n");
167+ return -1;
168+ }
165169 if (ff_decklink_set_format(avctx, c->width, c->height,
166170 st->time_base.num, st->time_base.den, c->field_order)) {
167171 av_log(avctx, AV_LOG_ERROR, "Unsupported video size, framerate or field order!"

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