OSDN Git Service

hevc: Correctly set time_base
authorGuillaume Martres <smarter@ubuntu.com>
Tue, 10 Dec 2013 14:37:22 +0000 (15:37 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Dec 2013 15:20:53 +0000 (16:20 +0100)
commitf90281ca97d45a87e3671f5e6e64794f2632fef2
tree4bb69719f69bc821eb387c299f50548c3cc4542c
parent679a6377e4948bce6e2cb28cf7ced4b1738e906e
hevc: Correctly set time_base

- Try reading the time_base information from the VPS too, not just the VUI
- Only set time_base when an SPS is activated, not when it's decoded.
- Reduce the fraction before setting it.
- Don't set anything if the fraction is invalid (because the VUI is not
  present or because the encoded value is invalid).

Conflicts:
libavcodec/hevc_ps.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc.c
libavcodec/hevc_ps.c