• Guillaume Martres's avatar
    hevc: Correctly set time_base · f90281ca
    Guillaume Martres authored
    - 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: 's avatarMichael Niedermayer <michaelni@gmx.at>
    f90281ca
hevc_ps.c 49.7 KB