[FFmpeg-cvslog] r20792 - trunk/libavcodec/mpegvideo_enc.c

michael subversion
Thu Dec 10 20:41:47 CET 2009


Author: michael
Date: Thu Dec 10 20:41:47 2009
New Revision: 20792

Log:
10l, Fix YUV ljpeg that i just broke by mistake.

Modified:
   trunk/libavcodec/mpegvideo_enc.c

Modified: trunk/libavcodec/mpegvideo_enc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_enc.c	Thu Dec 10 20:40:15 2009	(r20791)
+++ trunk/libavcodec/mpegvideo_enc.c	Thu Dec 10 20:41:47 2009	(r20792)
@@ -531,7 +531,7 @@ av_cold int MPV_encode_init(AVCodecConte
     case CODEC_ID_MJPEG:
         s->out_format = FMT_MJPEG;
         s->intra_only = 1; /* force intra only for jpeg */
-        if(avctx->codec->id == CODEC_ID_MJPEG){
+        if(avctx->codec->id == CODEC_ID_MJPEG || avctx->pix_fmt != PIX_FMT_BGRA){
         s->mjpeg_vsample[0] = 2;
         s->mjpeg_vsample[1] = 2>>chroma_v_shift;
         s->mjpeg_vsample[2] = 2>>chroma_v_shift;



More information about the ffmpeg-cvslog mailing list