Skip to content

Commit

Permalink
Keep YUVJ420
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Feb 3, 2025
1 parent f480f79 commit c6af47e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/zm_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2877,12 +2877,11 @@ int Monitor::Capture() {

bool Monitor::setupConvertContext(const AVFrame *input_frame, const Image *image) {
AVPixelFormat imagePixFormat = image->AVPixFormat();
imagePixFormat = AV_PIX_FMT_YUV420P;
AVPixelFormat inputPixFormat;
bool changeColorspaceDetails = false;
switch (input_frame->format) {
case AV_PIX_FMT_YUVJ420P:
inputPixFormat = AV_PIX_FMT_YUV420P;
inputPixFormat = AV_PIX_FMT_YUVJ420P;
changeColorspaceDetails = true;
break;
case AV_PIX_FMT_YUVJ422P:
Expand Down

0 comments on commit c6af47e

Please sign in to comment.