[FFmpeg-devel] [HACK]Auto-detect ljpg images
Carl Eugen Hoyos
cehoyos at ag.or.at
Wed Dec 7 02:34:24 CET 2011
Michael Niedermayer <michaelni <at> gmx.at> writes:
> > s->split_planes = str && !av_strcasecmp(str + 1, "y");
> > st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
> > st->codec->codec_id = av_str2id(img_tags, s->path);
> > + if (str && !av_strcasecmp(++str, "ljpg"))
> > + st->codec->codec_id = CODEC_ID_MJPEG;
>
> i would do
> if(codec_id == LJPEG)
> codec_id = MJPEG
Definitely, thank you.
Patch applied, Carl Eugen
More information about the ffmpeg-devel
mailing list