1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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

This commit is contained in:
initramfs 2016-08-04 23:16:46 +08:00
parent 707f7af29a
commit 00270ee4d2
No known key found for this signature in database
GPG Key ID: 78B8BDF87E9EF0AF

View File

@ -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;