mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
guvcview: fix build with ffmpeg>=3.0
This commit is contained in:
parent
61e2b82c17
commit
70b2ac6253
2 changed files with 26 additions and 2 deletions
26
srcpkgs/guvcview/patches/ffmpeg3.patch
Normal file
26
srcpkgs/guvcview/patches/ffmpeg3.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
Index: gview_v4l2core/jpeg_decoder.c
|
||||||
|
===================================================================
|
||||||
|
--- gview_v4l2core/jpeg_decoder.c.orig
|
||||||
|
+++ gview_v4l2core/jpeg_decoder.c
|
||||||
|
@@ -1436,7 +1436,7 @@ int jpeg_init_decoder(int width, int hei
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
- codec_data->context->pix_fmt = PIX_FMT_YUV422P;
|
||||||
|
+ codec_data->context->pix_fmt = AV_PIX_FMT_YUV422P;
|
||||||
|
codec_data->context->width = width;
|
||||||
|
codec_data->context->height = height;
|
||||||
|
//jpeg_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE);
|
||||||
|
Index: gview_v4l2core/uvc_h264.c
|
||||||
|
===================================================================
|
||||||
|
--- gview_v4l2core/uvc_h264.c.orig
|
||||||
|
+++ gview_v4l2core/uvc_h264.c
|
||||||
|
@@ -970,7 +970,7 @@ int h264_init_decoder(int width, int hei
|
||||||
|
}
|
||||||
|
|
||||||
|
h264_ctx->context->flags2 |= CODEC_FLAG2_FAST;
|
||||||
|
- h264_ctx->context->pix_fmt = PIX_FMT_YUV420P;
|
||||||
|
+ h264_ctx->context->pix_fmt = AV_PIX_FMT_YUV420P;
|
||||||
|
h264_ctx->context->width = width;
|
||||||
|
h264_ctx->context->height = height;
|
||||||
|
//h264_ctx->context->dsp_mask = (FF_MM_MMX | FF_MM_MMXEXT | FF_MM_SSE);
|
|
@ -1,5 +1,3 @@
|
||||||
broken="ffmpeg 3.0"
|
|
||||||
|
|
||||||
# Template file for 'guvcview'
|
# Template file for 'guvcview'
|
||||||
pkgname=guvcview
|
pkgname=guvcview
|
||||||
version=2.0.4
|
version=2.0.4
|
||||||
|
|
Loading…
Add table
Reference in a new issue