mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-08 07:05:33 +01:00
avdevice/decklink: refactor ff_decklink_set_format function
This is done to enable input format autodetection in decklink_dec. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
committed by
Marton Balint
parent
0e7865ce41
commit
aa7b0329ff
@@ -162,6 +162,10 @@ static int decklink_setup_video(AVFormatContext *avctx, AVStream *st)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ff_decklink_set_configs(avctx, DIRECTION_OUT) < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Could not set output configuration\n");
|
||||
return -1;
|
||||
}
|
||||
if (ff_decklink_set_format(avctx, c->width, c->height,
|
||||
st->time_base.num, st->time_base.den, c->field_order)) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Unsupported video size, framerate or field order!"
|
||||
|
||||
Reference in New Issue
Block a user