[FFmpeg-devel] [PATCH 1/2] decklink: fix: set fps on video stream

Marton Balint cus at passwd.hu
Sun Jul 10 02:12:34 EEST 2016



On Sat, 9 Jul 2016, Matthias Hunstock wrote:

> Provide the stream with the correct fps information when capturing.
>
> Signed-off-by: Matthias Hunstock <atze at fem.tu-ilmenau.de>
> ---
> libavdevice/decklink_dec.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
> index fcb024e..c25579a 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.num, st->time_base.den));

Aren't the frame rate supposed to be 1/time_base?

Thanks,
Marton


More information about the ffmpeg-devel mailing list