diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 8015524a0..1f302fc4d 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -192,7 +192,7 @@ bool VideoStore::open() { video_out_stream->avg_frame_rate = video_in_stream->avg_frame_rate; // Only set orientation if doing passthrough, otherwise the frame image will be rotated Monitor::Orientation orientation = monitor->getOrientation(); - if (orientation) { + if (orientation > 1) { // 1 is ROTATE_0 #if LIBAVCODEC_VERSION_CHECK(59, 37, 100, 37, 100) int32_t* displaymatrix = static_cast(av_malloc(sizeof(int32_t)*9)); Debug(3, "Have orientation %d", orientation);