mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-24 07:18:22 -04:00
Fix adding rotation when not needed.
This commit is contained in:
1 parent
4e70c36cfa
commit
c3fa5bc15a
1 file changed
+1
-1
@@ -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<int32_t*>(av_malloc(sizeof(int32_t)*9));
|
||||
Debug(3, "Have orientation %d", orientation);
|
||||
|
||||
Reference in new issue
Block a user