diff options
| -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); |
