GUACAMOLE-68: Use AV_PIX_FMT_RGB32 and AV_PIX_FMT_YUV420P constants (not PIX_FMT_RGB32 and PIX_FMT_YUV420P).

This commit is contained in:
Michael Jumper 2016-11-12 19:21:37 -08:00
parent 4ea5f163f0
commit 406a58de35

View File

@ -397,7 +397,7 @@ void guacenc_video_prepare_frame(guacenc_video* video, guacenc_buffer* buffer) {
/* Prepare scaling context */ /* Prepare scaling context */
struct SwsContext* sws = sws_getContext(src->width, src->height, struct SwsContext* sws = sws_getContext(src->width, src->height,
PIX_FMT_RGB32, dst->width, dst->height, PIX_FMT_YUV420P, AV_PIX_FMT_RGB32, dst->width, dst->height, AV_PIX_FMT_YUV420P,
SWS_BICUBIC, NULL, NULL, NULL); SWS_BICUBIC, NULL, NULL, NULL);
/* Abort if scaling context could not be created */ /* Abort if scaling context could not be created */