[FFmpeg-cvslog] r17167 - trunk/libavcodec/mpegvideo_enc.c
michael
subversion
Thu Feb 12 01:48:31 CET 2009
Author: michael
Date: Thu Feb 12 01:48:30 2009
New Revision: 17167
Log:
Let rgb32 pass for ljpeg.
Modified:
trunk/libavcodec/mpegvideo_enc.c
Modified: trunk/libavcodec/mpegvideo_enc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_enc.c Thu Feb 12 01:08:44 2009 (r17166)
+++ trunk/libavcodec/mpegvideo_enc.c Thu Feb 12 01:48:30 2009 (r17167)
@@ -235,7 +235,7 @@ av_cold int MPV_encode_init(AVCodecConte
break;
case CODEC_ID_LJPEG:
case CODEC_ID_MJPEG:
- if(avctx->pix_fmt != PIX_FMT_YUVJ420P && avctx->pix_fmt != PIX_FMT_YUVJ422P &&
+ if(avctx->pix_fmt != PIX_FMT_YUVJ420P && avctx->pix_fmt != PIX_FMT_YUVJ422P && avctx->pix_fmt != PIX_FMT_RGB32 &&
((avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT_YUV422P) || avctx->strict_std_compliance>FF_COMPLIANCE_INOFFICIAL)){
av_log(avctx, AV_LOG_ERROR, "colorspace not supported in jpeg\n");
return -1;
More information about the ffmpeg-cvslog
mailing list