[FFmpeg-cvslog] r25904 - trunk/libavcodec/libx264.c

darkshikari subversion
Tue Dec 7 10:51:27 CET 2010


Author: darkshikari
Date: Tue Dec  7 10:51:27 2010
New Revision: 25904

Log:
Add fullrange support to libx264.c x264 interface

Modified:
   trunk/libavcodec/libx264.c

Modified: trunk/libavcodec/libx264.c
==============================================================================
--- trunk/libavcodec/libx264.c	Tue Dec  7 08:52:54 2010	(r25903)
+++ trunk/libavcodec/libx264.c	Tue Dec  7 10:51:27 2010	(r25904)
@@ -297,6 +297,8 @@ static av_cold int X264_init(AVCodecCont
 
     x4->params.i_slice_count  = avctx->slices;
 
+    x4->params.vui.b_fullrange = avctx->pix_fmt == PIX_FMT_YUVJ420P;
+
     if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER)
         x4->params.b_repeat_headers = 0;
 
@@ -332,6 +334,6 @@ AVCodec libx264_encoder = {
     .encode         = X264_frame,
     .close          = X264_close,
     .capabilities   = CODEC_CAP_DELAY,
-    .pix_fmts       = (const enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE },
+    .pix_fmts       = (const enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_YUVJ420P, PIX_FMT_NONE },
     .long_name      = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),
 };



More information about the ffmpeg-cvslog mailing list