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_dec.cpp (1 of 4 files). Show all

Unified · Split

libavdevice/decklink_dec.cpp+6−0
@@ -916,6 +916,12 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 915 unmodified lines
916916 goto error;
917917 }
918918
919+ if (ff_decklink_set_configs(avctx, DIRECTION_IN) < 0) {
920+ av_log(avctx, AV_LOG_ERROR, "Could not set input configuration\n");
921+ ret = AVERROR(EIO);
922+ goto error;
923+ }
924+
919925 if (mode_num > 0 || cctx->format_code) {
920926 if (ff_decklink_set_format(avctx, DIRECTION_IN, mode_num) < 0) {
921927 av_log(avctx, AV_LOG_ERROR, "Could not set mode number %d or format code %s for %s\n",

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