From 70b2ac6253217a81b427d8b0eb80cfae8c52e607 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Thu, 22 Sep 2016 15:44:35 +0200 Subject: [PATCH] guvcview: fix build with ffmpeg>=3.0 --- srcpkgs/guvcview/patches/ffmpeg3.patch | 26 ++++++++++++++++++++++++++ srcpkgs/guvcview/template | 2 -- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/guvcview/patches/ffmpeg3.patch diff --git a/srcpkgs/guvcview/patches/ffmpeg3.patch b/srcpkgs/guvcview/patches/ffmpeg3.patch new file mode 100644 index 0000000000..e4224e9fed --- /dev/null +++ b/srcpkgs/guvcview/patches/ffmpeg3.patch @@ -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); diff --git a/srcpkgs/guvcview/template b/srcpkgs/guvcview/template index b264c2132a..55697b27e9 100644 --- a/srcpkgs/guvcview/template +++ b/srcpkgs/guvcview/template @@ -1,5 +1,3 @@ -broken="ffmpeg 3.0" - # Template file for 'guvcview' pkgname=guvcview version=2.0.4