36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
|
$OpenBSD: patch-modules_codec_ffmpeg_video_c,v 1.1 2008/07/09 02:17:12 jakemsr Exp $
|
||
|
--- modules/codec/ffmpeg/video.c.orig Sun Jun 22 15:18:32 2008
|
||
|
+++ modules/codec/ffmpeg/video.c Sun Jun 22 15:24:27 2008
|
||
|
@@ -826,18 +826,31 @@ static void ffmpeg_CopyPicture( decoder_t *p_dec,
|
||
|
{
|
||
|
case PIX_FMT_YUV410P:
|
||
|
case PIX_FMT_YUV411P:
|
||
|
+ case PIX_FMT_RGB32:
|
||
|
+ case PIX_FMT_RGB24:
|
||
|
+#if defined(PIX_FMT_RGB8)
|
||
|
+ case PIX_FMT_RGB8:
|
||
|
+#endif
|
||
|
+#if defined(PIX_FMT_BRG32)
|
||
|
+ case PIX_FMT_BRG32:
|
||
|
+#endif
|
||
|
case PIX_FMT_BGR24:
|
||
|
+#if defined(PIX_FMT_BRG8)
|
||
|
+ case PIX_FMT_BRG8:
|
||
|
+#endif
|
||
|
case PIX_FMT_PAL8:
|
||
|
for( i = 0; i < p_pic->i_planes; i++ )
|
||
|
{
|
||
|
dest_pic.data[i] = p_pic->p[i].p_pixels;
|
||
|
dest_pic.linesize[i] = p_pic->p[i].i_pitch;
|
||
|
}
|
||
|
+#if 0
|
||
|
img_convert( &dest_pic, PIX_FMT_YUV420P,
|
||
|
(AVPicture *)p_ff_pic,
|
||
|
p_sys->p_context->pix_fmt,
|
||
|
p_sys->p_context->width,
|
||
|
p_sys->p_context->height );
|
||
|
+#endif
|
||
|
break;
|
||
|
default:
|
||
|
msg_Err( p_dec, "don't know how to convert chroma %i",
|