Fix adding rotation when not needed.
parent
4e70c36cfa
commit
c3fa5bc15a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue