This is done to enable input format autodetection in decklink_dec.
Showing the changes to libavdevice/decklink_enc.cpp (1 of 4 files). Show all
Unified · Split
| @@ -162,6 +162,10 @@ static int decklink_setup_video(AVFormatContext *avctx, AVStream *st) · 161 unmodified lines | ||
| 162 | 162 | return -1; |
| 163 | 163 | } |
| 164 | 164 | |
| 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 | + } | |
| 165 | 169 | if (ff_decklink_set_format(avctx, c->width, c->height, |
| 166 | 170 | st->time_base.num, st->time_base.den, c->field_order)) { |
| 167 | 171 | av_log(avctx, AV_LOG_ERROR, "Unsupported video size, framerate or field order!" |