decklink: fix: set fps on video stream v2
authorMatthias Hunstock <atze@fem.tu-ilmenau.de>
Sun, 10 Jul 2016 11:02:36 +0000 (13:02 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 5 Aug 2016 18:43:36 +0000 (20:43 +0200)
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>
libavdevice/decklink_dec.cpp

index 934bad8..24b42e3 100644 (file)
@@ -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;