[FFmpeg-devel] [PATCH 1/3] lavf: identify MP1 and MP2 as distinct containers from MP3

Clément Bœsch u at pkh.me
Sat Mar 18 11:59:54 EET 2017


On Sat, Mar 18, 2017 at 10:52:27AM +0100, wm4 wrote:
[...]
> > -        if (!strcmp(s->iformat->name, "mp3") || !strcmp(s->iformat->name, "aac") ||
> > -            !strcmp(s->iformat->name, "tta")) {
> > +        if (!strcmp(s->iformat->name, "mp1") || !strcmp(s->iformat->name, "mp2") || !strcmp(s->iformat->name, "mp3") ||
> > +            !strcmp(s->iformat->name, "aac") || !strcmp(s->iformat->name, "tta")) {
> 
> Jesus Christ, but I guess that's how this works.
> 

alternative: av_match_name(s->iformat->name, "mp1,mp2,mp3,aac,tta,")

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170318/625117a9/attachment.sig>


More information about the ffmpeg-devel mailing list