<div dir="ltr"><div style><br></div><div class="gmail_extra"><div class="gmail_quote">2013/7/4 Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span><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">
<div class="im">
<br>
</div>Could you test again?<br>
This may have been fixed.</blockquote><div><br></div>Hi Carl,<div><br></div><div>libstagefright.cpp compiles now, but I'm still getting the posix_memalign error when compiling libavutil/mem.c, but I guess that is something related with my environment configuration. However, I was able to decode h264 videos using libstagefright from outside ffmpeg. I mean, I compiled ffmpeg without libstagefright and, from my app, I read the frames using FFmpeg and decoded the packets using libstagefright. So I won't need more help on this, but if you need more information to reproduce this issue, please let me know.</div>
<div><br></div><div>Despite the compilation issue, after being working with stagefright these days, I think (because I didn't test it), that the FFmpeg libstagefright_h264 decoder will have problems when the libstagefright decoder returns a buffer in QOMX_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka format. This weird format is a tiled NV12 one and, as far as I know, FFmpeg libstagefright_h264 decoder does not handle it properly. Reading the code in "libstagefright.cpp", you can see that this format is treated as AV_PIX_FMT_YUV420P (this is done in Stagefright_init function). To treat this format properly, you should "untile" the buffer returned by the stagefright decoder and treat the result as an AV_PIX_FMT_NV12 buffer.</div>
<div><br></div><div>Thanks!!</div><div><br></div><div>Abel. </div></div><br></div></div>