diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-22 22:52:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-22 22:52:23 +0100 |
commit | e6cc3c869b92c6e5556f660739365e0f42a3964c (patch) | |
tree | cfb392adda6de6f89811c480693b231cffbd77ee /libavformat/mvdec.c | |
parent | 4c9f35bb7c94d20455d3fca3a184b892f1a0aa4e (diff) | |
download | ffmpeg-e6cc3c869b92c6e5556f660739365e0f42a3964c.tar.gz |
mvdec: minor simplification, remove av_inv_q()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mvdec.c')
-rw-r--r-- | libavformat/mvdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c index 80fc466889..ad8bc0172c 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")) { |