[FFmpeg-cvslog] r9009 - trunk/libavcodec/mpegvideo.c

aurel subversion
Sun May 13 00:50:13 CEST 2007


Author: aurel
Date: Sun May 13 00:50:12 2007
New Revision: 9009

Log:
jpegls never call this code, so those tests are useless

Modified:
   trunk/libavcodec/mpegvideo.c

Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c	(original)
+++ trunk/libavcodec/mpegvideo.c	Sun May 13 00:50:12 2007
@@ -1194,11 +1194,10 @@ int MPV_encode_init(AVCodecContext *avct
         s->rtp_mode= 1;
         break;
     case CODEC_ID_LJPEG:
-    case CODEC_ID_JPEGLS:
     case CODEC_ID_MJPEG:
         s->out_format = FMT_MJPEG;
         s->intra_only = 1; /* force intra only for jpeg */
-        s->mjpeg_write_tables = avctx->codec->id != CODEC_ID_JPEGLS;
+        s->mjpeg_write_tables = 1;
         s->mjpeg_data_only_frames = 0; /* write all the needed headers */
         s->mjpeg_vsample[0] = 2;
         s->mjpeg_vsample[1] = 2>>chroma_v_shift;




More information about the ffmpeg-cvslog mailing list