summarylogtreecommitdiffstats
path: root/pix_fmt.patch
blob: 9f410ea7031a12cf1c9338a7bcf1b3bf4c7848a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -Nur a/guvcview-git/g/gview_v4l2core/jpeg_decoder.c b/guvcview-git/src/guvcview-git/gview_v4l2core/jpeg_decoder.c
--- a/guvcview-git/gview_v4l2core/jpeg_decoder.c	2016-03-24 21:47:40.897890639 +0100
+++ b/guvcview-git/gview_v4l2core/jpeg_decoder.c	2016-03-24 21:48:48.891091999 +0100
@@ -1436,7 +1436,7 @@
 		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);
diff -Nur a/guvcview-git/g/gview_v4l2core/uvc_h264.c b/guvcview-git/src/guvcview-git/gview_v4l2core/uvc_h264.c
--- a/guvcview-git/gview_v4l2core/uvc_h264.c	2016-03-24 21:47:40.897890639 +0100
+++ b/guvcview-git/gview_v4l2core/uvc_h264.c	2016-03-24 21:48:36.757782203 +0100
@@ -1035,7 +1035,7 @@
 	}
 	
 	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);