| ... | ... |
@@ -284,6 +284,8 @@ static int read_header(AVFormatContext *s1, AVFormatParameters *ap) |
| 284 | 284 |
s->split_planes = str && !av_strcasecmp(str + 1, "y"); |
| 285 | 285 |
st->codec->codec_type = AVMEDIA_TYPE_VIDEO; |
| 286 | 286 |
st->codec->codec_id = av_str2id(img_tags, s->path); |
| 287 |
+ if (st->codec->codec_id = CODEC_ID_LJPEG) |
|
| 288 |
+ st->codec->codec_id = CODEC_ID_MJPEG; |
|
| 287 | 289 |
} |
| 288 | 290 |
if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO && pix_fmt != PIX_FMT_NONE) |
| 289 | 291 |
st->codec->pix_fmt = pix_fmt; |