changeset 2973:bb0222145083 libavcodec

forgot
author michael
date Mon, 19 Dec 2005 03:08:08 +0000
parents 4b4ee324b4c4
children e7189a8c22ed
files mpegvideo.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Sun Dec 18 19:59:33 2005 +0000
+++ b/mpegvideo.c	Mon Dec 19 03:08:08 2005 +0000
@@ -1115,10 +1115,11 @@
         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 = 1; /* write all tables */
+        s->mjpeg_write_tables = avctx->codec->id != CODEC_ID_JPEGLS;
 	s->mjpeg_data_only_frames = 0; /* write all the needed headers */
         s->mjpeg_vsample[0] = 1<<chroma_v_shift;
         s->mjpeg_vsample[1] = 1;