[Libav-user] what's the extradata should be when using ffmpeg+libstagefright?

ahqzy ahqzy at 163.com
Fri Oct 25 16:07:47 CEST 2013


Hi all,
       To using hardware decoding, I compiled ffmpeg(0.10) with andorid libstagefright successfully. When I call it,  in the Stagefright_init(AVCodecContext *avctx), the extradata must be specified as below in the source:


static av_cold int Stagefright_init(AVCodecContext *avctx)
{
……
……
    if (!avctx->extradata || !avctx->extradata_size || avctx->extradata[0] != 1)
        return -1;
……
}
I dont't konw how to fill the avctx->extradata, anyone can help me?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131025/b3b03b89/attachment.html>


More information about the Libav-user mailing list