X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=ffmpeg_capture.cpp;h=ab35c5c5ef1c5f18e66f338fa1cad20fef860a9d;hp=2f9c6fdc1be3bb096c0a22dd760ac11084b02cd6;hb=72afc695d201f9d2a0dcb316ec62f1610db5fa74;hpb=b0a1581f2fca90bb7b9396386c1cb511011474a9 diff --git a/ffmpeg_capture.cpp b/ffmpeg_capture.cpp index 2f9c6fd..ab35c5c 100644 --- a/ffmpeg_capture.cpp +++ b/ffmpeg_capture.cpp @@ -297,7 +297,7 @@ bool FFmpegCapture::play_video(const string &pathname) if (sws_ctx == nullptr || sws_last_width != frame->width || sws_last_height != frame->height) { sws_ctx.reset( sws_getContext(frame->width, frame->height, (AVPixelFormat)frame->format, - width, height, AV_PIX_FMT_RGBA, + width, height, AV_PIX_FMT_BGRA, SWS_BICUBIC, nullptr, nullptr, nullptr)); sws_last_width = frame->width; sws_last_height = frame->height;