You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Allow auto-detection of ljpg images.
This commit is contained in:
@@ -284,6 +284,8 @@ static int read_header(AVFormatContext *s1, AVFormatParameters *ap)
|
|||||||
s->split_planes = str && !av_strcasecmp(str + 1, "y");
|
s->split_planes = str && !av_strcasecmp(str + 1, "y");
|
||||||
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||||
st->codec->codec_id = av_str2id(img_tags, s->path);
|
st->codec->codec_id = av_str2id(img_tags, s->path);
|
||||||
|
if (st->codec->codec_id = CODEC_ID_LJPEG)
|
||||||
|
st->codec->codec_id = CODEC_ID_MJPEG;
|
||||||
}
|
}
|
||||||
if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO && pix_fmt != PIX_FMT_NONE)
|
if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO && pix_fmt != PIX_FMT_NONE)
|
||||||
st->codec->pix_fmt = pix_fmt;
|
st->codec->pix_fmt = pix_fmt;
|
||||||
|
Reference in New Issue
Block a user