History

avdevice/decklink: new option 'format_code' to set video format by fourCC

Matthias Hunstock committed 9 years ago

Commit b3a2ada1 parent 607bffb6 files · +28 −11Browse files

Showing the changes to libavdevice/decklink_dec.cpp (1 of 6 files). Show all

Unified · Split

libavdevice/decklink_dec.cpp+3−2
@@ -539,9 +539,10 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 538 unmodified lines
539539 goto error;
540540 }
541541
542− if (mode_num > 0) {
542+ if (mode_num > 0 || cctx->format_code) {
543543 if (ff_decklink_set_format(avctx, DIRECTION_IN, mode_num) < 0) {
544− av_log(avctx, AV_LOG_ERROR, "Could not set mode %d for %s\n", mode_num, fname);
544+ av_log(avctx, AV_LOG_ERROR, "Could not set mode number %d or format code %s for %s\n",
545+ mode_num, (cctx->format_code) ? cctx->format_code : "(unset)", fname);
545546 ret = AVERROR(EIO);
546547 goto error;
547548 }

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