all repos — mgba @ acb69161bbd1a3e462c891eda8b729d53dbb511b

mGBA Game Boy Advance Emulator

Video: Kludgily fix warnings in sws_scale call
Jeffrey Pfau jeffrey@endrift.com
Sat, 01 Nov 2014 22:02:58 -0700
commit

acb69161bbd1a3e462c891eda8b729d53dbb511b

parent

1cc4839d4f28c72c15248e7e3e7915b7bf130ede

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/ffmpeg/ffmpeg-encoder.csrc/platform/ffmpeg/ffmpeg-encoder.c

@@ -349,7 +349,7 @@ av_frame_make_writable(encoder->videoFrame);

encoder->videoFrame->pts = av_rescale_q(encoder->currentVideoFrame, encoder->video->time_base, encoder->videoStream->time_base); ++encoder->currentVideoFrame; - sws_scale(encoder->scaleContext, &pixels, &stride, 0, VIDEO_VERTICAL_PIXELS, encoder->videoFrame->data, encoder->videoFrame->linesize); + sws_scale(encoder->scaleContext, (const uint8_t* const*) &pixels, (const int*) &stride, 0, VIDEO_VERTICAL_PIXELS, encoder->videoFrame->data, encoder->videoFrame->linesize); int gotData; avcodec_encode_video2(encoder->video, &packet, encoder->videoFrame, &gotData);