Revision cf329752

View differences:

libavcodec/mpegvideo.c
1194 1194
        s->rtp_mode= 1;
1195 1195
        break;
1196 1196
    case CODEC_ID_LJPEG:
1197
    case CODEC_ID_JPEGLS:
1198 1197
    case CODEC_ID_MJPEG:
1199 1198
        s->out_format = FMT_MJPEG;
1200 1199
        s->intra_only = 1; /* force intra only for jpeg */
1201
        s->mjpeg_write_tables = avctx->codec->id != CODEC_ID_JPEGLS;
1200
        s->mjpeg_write_tables = 1;
1202 1201
        s->mjpeg_data_only_frames = 0; /* write all the needed headers */
1203 1202
        s->mjpeg_vsample[0] = 2;
1204 1203
        s->mjpeg_vsample[1] = 2>>chroma_v_shift;

Also available in: Unified diff