Commit e45d2acf authored by aurel's avatar aurel

jpegls never call this code, so those tests are useless

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9009 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 19b2e948
......@@ -1194,11 +1194,10 @@ int MPV_encode_init(AVCodecContext *avctx)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment