changeset 4993:a1bbd3c01264 libavcodec

jpegls never call this code, so those tests are useless
author aurel
date Sat, 12 May 2007 22:50:12 +0000
parents 52d8e61c0280
children 3fa689636240
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Sat May 12 19:37:26 2007 +0000
+++ b/mpegvideo.c	Sat May 12 22:50:12 2007 +0000
@@ -1194,11 +1194,10 @@
         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;