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:
parent
707f7af29a
commit
00270ee4d2
|
@ -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…
Reference in New Issue
Block a user