rails/activestorage/lib/active_storage
Anup Narkhede 776626ff98
Fix rotation detection for HDR videos (#50854)
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.
2024-01-23 11:28:11 -08:00
..
analyzer Fix rotation detection for HDR videos (#50854) 2024-01-23 11:28:11 -08:00
attached Fix ActiveStorage::Blob inverse association: 2024-01-19 04:18:15 +01:00
previewer Cleanup `defined?` usage 2024-01-05 15:05:35 +01:00
service ActiveStorage mirror uploads should be asynchronous 2023-08-04 09:08:50 +02:00
transformers Use double quotes more consistenly in doc and error messages 2023-10-28 11:38:49 +02:00
analyzer.rb Add missing headers to Active Storage docs [ci-skip] 2023-04-03 12:29:49 +02:00
attached.rb Add missing headers to Active Storage docs [ci-skip] 2023-04-03 12:29:49 +02:00
deprecator.rb Add ActiveStorage.deprecator 2022-10-31 17:04:48 -05:00
downloader.rb Add ActiveStorage::Blob.compose 2021-11-25 19:37:57 -05:00
engine.rb Add webp and avif as allowed formats for active storage to serve inline (#50265) 2023-12-17 17:39:04 -08:00
errors.rb Revert #38957 (#44287) 2022-01-29 14:27:45 +01:00
fixture_set.rb Split up code blocks for multi-file examples [ci-skip] 2024-01-07 17:27:23 -06:00
gem_version.rb Development of Rails 7.2 starts now 2023-09-27 03:59:11 +00:00
log_subscriber.rb Add preview to `ActiveStorage::LogSubscriber` 2022-10-20 23:07:51 +02:00
previewer.rb Add missing headers to Active Storage docs [ci-skip] 2023-04-03 12:29:49 +02:00
reflection.rb Add an option to preprocessed AS variants 2023-07-03 19:36:14 +09:00
service.rb 🔗 Remove RDoc auto-link from Rails module everywhere 2023-06-23 10:49:30 +09:00
version.rb Replace all occurrences of '<tt>(\w+::\w+)</tt>' with '+$1+' 2023-05-25 06:52:32 +09:00