<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-AT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi, maybe it's a rather stupid question (im pretty new to ffmpeg), but I have problem correctly detected mp2 files (need to distinguish between m2 and mp3 format)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">av_open_input_file()  just returns me ID CODEC_ID_MP3 (15001) if I open an mp2 file and not 15000 as for layer2 (would be better 4 me)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So how can I further parse the header in file, having the AVFormatContext handle  to get the layer info ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Robert Reither</span></b><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<br>
</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Research & Development</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<br>
</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Honeywell Life Safety Austria GmbH</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<br>
</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Lemböckgasse 49</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<br>
</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">1230 Wien/Vienna, Austria</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<br>
</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif""> </span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<br>
</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Commercial Register No.: FN 58784y<br>
Commercial Court: Handelsgericht Wien</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<br>
</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Managing Director:
<span style="color:#333333">Robert Humpolec</span><br>
VAT-No.: ATU 14859900</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Phone: +43(1)6006030-174</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<br>
</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Arial","sans-serif"">Fax:     +43(1)6006030-900<br>
</span><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif""><a href="mailto:robert.reither@honeywell.com"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">robert.reither@honeywell.com</span></a>
<br>
<a href="http://www.hls-austria.com/"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">www.hls-austria.com</span></a>
<br>
<a href="http://www.av-digital.at/"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">www.av-digital.at</span></a>
<br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><a href="http://www.hls-austria.at/kontakt/anfahrtsplan/"><span lang="EN-US" style="color:blue">http://www.hls-austria.at/kontakt/anfahrtsplan/</span></a></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:5.0pt;margin-right:0cm;margin-bottom:5.0pt;margin-left:0cm">
<span lang="EN-GB" style="font-size:7.0pt;font-family:"Arial","sans-serif";color:gray"><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:5.0pt;margin-right:0cm;margin-bottom:5.0pt;margin-left:0cm">
<span lang="EN-GB" style="font-size:7.0pt;font-family:"Arial","sans-serif";color:gray">THIS E-MAIL AND ANY ATTACHED FILES ARE CONFIDENTIAL, PROTECTED BY COPYRIGHT AND MAY BE LEGALLY PRIVILEGED. If you are not the intended addressee or have received the e-mail
 in error, any use of this e-mail or any copying, distribution or other dissemination of it is strictly prohibited. If you have received this transmission in error, please notify the sender immediately and then delete the e-mail. E-mail cannot be guaranteed
 to be secure, error free or free from viruses. Neither the sending company nor its group of companies accepts any liability whatsoever for any loss or damage which may be caused as a result of the transmission of this message by e-mail. If verification is
 required, please request a hard copy version. </span><span lang="EN-GB" style="font-size:7.0pt;font-family:"Times New Roman","serif";color:gray"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>