Skip to content
  • Anup Narkhede's avatar
    776626ff
    Fix rotation detection for HDR videos (#50854) · 776626ff
    Anup Narkhede authored
    Fixes https://github.com/rails/rails/issues/50853
    
    The video analyzer was relying on the positional reference of the Display
    Matrix side_data to fetch the rotation value. However, the side_data is
    not guaranteed to be in the same position. For instance, HDR videos shot
    on iOS have "DOVI configuration record" side_data in the first position,
    followed by the "Display Matrix" side data containing the rotation value.
    
    This fix removes the positional reference and explicitely searches for
    the "Display Matrix" side_data to retrieve the rotation angle.
    776626ff
    Fix rotation detection for HDR videos (#50854)
    Anup Narkhede authored
    Fixes https://github.com/rails/rails/issues/50853
    
    The video analyzer was relying on the positional reference of the Display
    Matrix side_data to fetch the rotation value. However, the side_data is
    not guaranteed to be in the same position. For instance, HDR videos shot
    on iOS have "DOVI configuration record" side_data in the first position,
    followed by the "Display Matrix" side data containing the rotation value.
    
    This fix removes the positional reference and explicitely searches for
    the "Display Matrix" side_data to retrieve the rotation angle.
Loading