summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/wxsvg/files/ffmpeg29.patch')
-rw-r--r--media-libs/wxsvg/files/ffmpeg29.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/media-libs/wxsvg/files/ffmpeg29.patch b/media-libs/wxsvg/files/ffmpeg29.patch
new file mode 100644
index 00000000000..5f191025fea
--- /dev/null
+++ b/media-libs/wxsvg/files/ffmpeg29.patch
@@ -0,0 +1,13 @@
+Index: wxsvg-1.5.5/src/mediadec_ffmpeg.cpp
+===================================================================
+--- wxsvg-1.5.5.orig/src/mediadec_ffmpeg.cpp
++++ wxsvg-1.5.5/src/mediadec_ffmpeg.cpp
+@@ -263,7 +263,7 @@ wxImage wxFfmpegMediaDecoder::GetNextFra
+ avcodec_decode_video2(m_codecCtx, m_frame, &frameFinished, &packet);
+ if (frameFinished) {
+ SwsContext* imgConvertCtx = sws_getContext(m_codecCtx->width, m_codecCtx->height, m_codecCtx->pix_fmt,
+- m_width, m_height, PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL);
++ m_width, m_height, AV_PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL);
+ if (imgConvertCtx == NULL) {
+ av_free_packet(&packet);
+ return wxImage();