[FFmpeg-cvslog] mvdec: minor simplification, remove av_inv_q()

Michael Niedermayer git at videolan.org
Tue Jan 22 23:17:54 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan 22 22:52:23 2013 +0100| [e6cc3c869b92c6e5556f660739365e0f42a3964c] | committer: Michael Niedermayer

mvdec: minor simplification, remove av_inv_q()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6cc3c869b92c6e5556f660739365e0f42a3964c
---

 libavformat/mvdec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c
index 80fc466..ad8bc01 100644
--- a/libavformat/mvdec.c
+++ b/libavformat/mvdec.c
@@ -165,8 +165,8 @@ static int parse_video_var(AVFormatContext *avctx, AVStream *st, const char *nam
         }
         av_free(str);
     } else if (!strcmp(name, "FPS")) {
-        AVRational tb = av_inv_q(var_read_float(pb, size));
-        avpriv_set_pts_info(st, 64, tb.num, tb.den);
+        AVRational fps = var_read_float(pb, size);
+        avpriv_set_pts_info(st, 64, fps.den, fps.num);
     } else if (!strcmp(name, "HEIGHT")) {
         st->codec->height = var_read_int(pb, size);
     } else if (!strcmp(name, "PIXEL_ASPECT")) {



More information about the ffmpeg-cvslog mailing list