[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bino-list] [PATCH 2/4] replace r_frame_rate istances for newer lavfo co
From: |
Vittorio Giovara |
Subject: |
[Bino-list] [PATCH 2/4] replace r_frame_rate istances for newer lavfo compatibility |
Date: |
Wed, 18 Dec 2013 16:03:07 +0100 |
---
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