Browse Source

fix(video): specify color ranges for pixel formats that are not YUV

reviewable/pr3185/r13
initramfs 10 years ago
parent
commit
00270ee4d2
No known key found for this signature in database
GPG Key ID: 78B8BDF87E9EF0AF
  1. 4
      src/video/videoframe.cpp

4
src/video/videoframe.cpp

@ -135,6 +135,10 @@ VideoFrame::VideoFrame(IDType sourceID, AVFrame* sourceFrame, QRect dimensions, @@ -135,6 +135,10 @@ VideoFrame::VideoFrame(IDType sourceID, AVFrame* sourceFrame, QRect dimensions,
sourceFrame->color_range = AVCOL_RANGE_MPEG;
break;
}
default:{
sourceFrame->color_range = AVCOL_RANGE_UNSPECIFIED;
}
}
frameBuffer[sourceFrameKey] = sourceFrame;

Loading…
Cancel
Save