diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-30 00:00:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-30 00:00:44 +0100 |
| commit | 6df70fd09ea8dcdef689a9e5611179d57090eb20 (patch) | |
| tree | 85ca95080dc1d682c5aaa7e1f2f9d4fb97a83fd3 /src | |
| parent | a115088ca904a26d100e479a7fde21c9235bf7c9 (diff) | |
| parent | 027a6534067edc6fe9390d9ecc750e9982d5437c (diff) | |
Merge remote-tracking branch 'origin/main' into v2.17.x
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index f7d3f9df3..d173c6bb6 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -186,7 +186,9 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo _rotation = - av_display_rotation_get(reinterpret_cast<int32_t*>(side_data->data)); } - _rotation = *_rotation - 360 * floor (*_rotation / 360 + 0.9 / 360); + if (_rotation) { + _rotation = *_rotation - 360 * floor (*_rotation / 360 + 0.9 / 360); + } } LOG_GENERAL("Temporal reference was %1", temporal_reference); |
