diff --git a/cinelerra-5.1/cinelerra/ffmpeg.C b/cinelerra-5.1/cinelerra/ffmpeg.C index 7521c0ba..26bf1bef 100644 --- a/cinelerra-5.1/cinelerra/ffmpeg.C +++ b/cinelerra-5.1/cinelerra/ffmpeg.C @@ -1229,7 +1229,7 @@ AVHWDeviceType FFVideoStream::encode_hw_activate(const char *hw_dev) if( type != AV_HWDEVICE_TYPE_NONE ) { AVHWFramesContext *frames_ctx = (AVHWFramesContext *)(hw_frames_ref->data); frames_ctx->format = AV_PIX_FMT_VAAPI; - frames_ctx->sw_format = AV_PIX_FMT_NV12; + frames_ctx->sw_format = AV_PIX_FMT_P010LE; frames_ctx->width = width; frames_ctx->height = height; frames_ctx->initial_pool_size = 0; // 200; @@ -1391,7 +1391,7 @@ int FFVideoStream::init_frame(AVFrame *picture) { switch( avctx->pix_fmt ) { case AV_PIX_FMT_VAAPI: - picture->format = AV_PIX_FMT_NV12; + picture->format = AV_PIX_FMT_P010LE; break; default: picture->format = avctx->pix_fmt;