[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bino-list] [PATCH] use avg_frame_rate instances for newer lavfo compati
From: |
Vittorio Giovara |
Subject: |
[Bino-list] [PATCH] use avg_frame_rate instances for newer lavfo compatibility |
Date: |
Tue, 7 Jan 2014 22:20:23 +0100 |
I can confirm this patch is correct and can be safely applied.
Cheers,
Vittorio
On Wed, Dec 18, 2013 at 4:03 PM, Vittorio Giovara
<address@hidden> wrote:
> ---
> src/media_object.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/media_object.cpp b/src/media_object.cpp
> index 1a644c2..71c4e0c 100644
> --- a/src/media_object.cpp
> +++ b/src/media_object.cpp
> @@ -1203,7 +1203,7 @@ int media_object::video_frame_rate_numerator(int index)
> const
> {
> assert(index >= 0);
> assert(index < video_streams());
> - int n =
> _ffmpeg->format_ctx->streams[_ffmpeg->video_streams.at(index)]->r_frame_rate.num;
> + int n =
> _ffmpeg->format_ctx->streams[_ffmpeg->video_streams.at(index)]->avg_frame_rate.num;
> if (n <= 0)
> n = 1;
> return n;
> @@ -1213,7 +1213,7 @@ int media_object::video_frame_rate_denominator(int
> index) const
> {
> assert(index >= 0);
> assert(index < video_streams());
> - int d =
> _ffmpeg->format_ctx->streams[_ffmpeg->video_streams.at(index)]->r_frame_rate.den;
> + int d =
> _ffmpeg->format_ctx->streams[_ffmpeg->video_streams.at(index)]->avg_frame_rate.den;
> if (d <= 0)
> d = 1;
> return d;
> --
> 1.7.9.5
>
- [Bino-list] [PATCH] use avg_frame_rate instances for newer lavfo compatibility,
Vittorio Giovara <=