Browse Source

mvdec: minor simplification, remove av_inv_q()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
e6cc3c869b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/mvdec.c

+ 2
- 2
libavformat/mvdec.c View File

@@ -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")) {


Loading…
Cancel
Save