summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorMatthias Hunstock <atze@fem.tu-ilmenau.de>2016-07-10 13:02:36 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-05 20:43:36 +0200
commit8431a6e654e5c4e2b80826240d4d50774212b309 (patch)
tree1b22bc9c2686647e00246185513b5b7ba109659b /libavdevice
parentbe7150d497484254de79a4097273c0bdce36d526 (diff)
downloadffmpeg-8431a6e654e5c4e2b80826240d4d50774212b309.tar.gz
decklink: fix: set fps on video stream v2
Provide the stream with the correct fps information when capturing. Signed-off-by: Matthias Hunstock <atze@fem.tu-ilmenau.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/decklink_dec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index 934bad8588..24b42e3eb0 100644
--- a/libavdevice/decklink_dec.cpp
+++ b/libavdevice/decklink_dec.cpp
@@ -571,6 +571,7 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx)
st->time_base.den = ctx->bmd_tb_den;
st->time_base.num = ctx->bmd_tb_num;
+ av_stream_set_r_frame_rate(st, av_make_q(st->time_base.den, st->time_base.num));
if (cctx->v210) {
st->codecpar->codec_id = AV_CODEC_ID_V210;