[FFmpeg-devel] [PATCH] lavd/lavfi: set output avg_frame_rate depending on output link framerate
Nicolas George
nicolas.george at normalesup.org
Thu Apr 25 15:47:07 CEST 2013
Le sextidi 6 floréal, an CCXXI, Stefano Sabatini a écrit :
> ---
> libavdevice/lavfi.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
> index c1c9cf5..6f2911a 100644
> --- a/libavdevice/lavfi.c
> +++ b/libavdevice/lavfi.c
> @@ -278,6 +278,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
> st->codec->time_base = link->time_base;
> st->codec->width = link->w;
> st->codec->height = link->h;
> + st->avg_frame_rate = link->frame_rate;
> st ->sample_aspect_ratio =
> st->codec->sample_aspect_ratio = link->sample_aspect_ratio;
> avctx->probesize = FFMAX(avctx->probesize,
I am not completely sure whether avg_frame_rate or r_frame_rate is the
correct one, but at least one of them should be set, you are right.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130425/92b3110a/attachment.asc>
More information about the ffmpeg-devel
mailing list