summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-29 23:58:36 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-29 23:58:36 +0100
commit027a6534067edc6fe9390d9ecc750e9982d5437c (patch)
tree3a3c97774704dce61bdcc4d349fe50f7b00cf85f
parentbdcaf60ec37ec694f1e221a33b090f670bf974d6 (diff)
Fix crash introduced in previous commit.
-rw-r--r--src/lib/ffmpeg_examiner.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc
index 787198e4a..51ade8e89 100644
--- a/src/lib/ffmpeg_examiner.cc
+++ b/src/lib/ffmpeg_examiner.cc
@@ -195,7 +195,9 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
_rotation = - av_display_rotation_get ((int32_t*) displaymatrix);
}
- _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);