<div><br></div><div>Hi, all:</div><div><br></div><div><div>First, my environment: Windows 7 + Visual Studio 2010  + libav 0.8.3 Release.</div><div><br></div><div>Before the final success, I got this final error:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
error LNK2001: unresolved external symbol _av_pix_fmt_descriptors</blockquote><div><br></div><div>It seems the solution can be found at</div><div><a href="http://ffmpeg.arrozcru.org/forum/viewtopic.php?f=8&t=1514">http://ffmpeg.arrozcru.org/forum/viewtopic.php?f=8&t=1514</a></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">You can hack the headers and put __declspec(dllimport) before the variable. Its size is PIX_FMT_NB if I recall correctly.</blockquote>
<div> </div><div>Well, the detailed solutions can be found at</div><div><a href="http://code.google.com/r/souranil-javacv/source/browse/src/main/resources/com/googlecode/javacv/cpp/avutil.h?r=d40508ddddb1f4d87ddfb0ac7fccb1dd69b971b1">http://code.google.com/r/souranil-javacv/source/browse/src/main/resources/com/googlecode/javacv/cpp/avutil.h?r=d40508ddddb1f4d87ddfb0ac7fccb1dd69b971b1</a></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">#ifdef _WIN32<br>#undef av_pix_fmt_descriptors<br>__declspec(dllimport) extern const AVPixFmtDescriptor av_pix_fmt_descriptors[];<br>
...</blockquote><div><br></div><div>However, I strictly followed this solution, but still got an additional error:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
error C2370: 'av_pix_fmt_descriptors' : redefinition; different storage class</blockquote><div><br></div><div><br></div><div>Cheers</div></div><div><br></div>-- <br><div><br></div><div>Pei JIA</div><div><br></div>
<div>Email: <a href="mailto:jp4work@gmail.com" target="_blank">jp4work@gmail.com</a></div><div>cell:    +1 604-362-5816</div><div><br></div>Welcome to Vision Open<br><a href="http://www.visionopen.com" target="_blank">http://www.visionopen.com</a><br>