[FFmpeg-cvslog] decklink: fix: set fps on video stream v2
Matthias Hunstock
git at videolan.org
Fri Aug 5 22:06:33 EEST 2016
ffmpeg | branch: master | Matthias Hunstock <atze at fem.tu-ilmenau.de> | Sun Jul 10 13:02:36 2016 +0200| [8431a6e654e5c4e2b80826240d4d50774212b309] | committer: Michael Niedermayer
decklink: fix: set fps on video stream v2
Provide the stream with the correct fps information when capturing.
Signed-off-by: Matthias Hunstock <atze at fem.tu-ilmenau.de>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8431a6e654e5c4e2b80826240d4d50774212b309
---
libavdevice/decklink_dec.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index 934bad8..24b42e3 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;
More information about the ffmpeg-cvslog
mailing list