Commit e6cc3c86 authored by Michael Niedermayer's avatar Michael Niedermayer

mvdec: minor simplification, remove av_inv_q()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4c9f35bb
...@@ -165,8 +165,8 @@ static int parse_video_var(AVFormatContext *avctx, AVStream *st, const char *nam ...@@ -165,8 +165,8 @@ static int parse_video_var(AVFormatContext *avctx, AVStream *st, const char *nam
} }
av_free(str); av_free(str);
} else if (!strcmp(name, "FPS")) { } else if (!strcmp(name, "FPS")) {
AVRational tb = av_inv_q(var_read_float(pb, size)); AVRational fps = var_read_float(pb, size);
avpriv_set_pts_info(st, 64, tb.num, tb.den); avpriv_set_pts_info(st, 64, fps.den, fps.num);
} else if (!strcmp(name, "HEIGHT")) { } else if (!strcmp(name, "HEIGHT")) {
st->codec->height = var_read_int(pb, size); st->codec->height = var_read_int(pb, size);
} else if (!strcmp(name, "PIXEL_ASPECT")) { } else if (!strcmp(name, "PIXEL_ASPECT")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment