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

ahqzy ahqzy at 163.com
Thu Oct 31 02:07:48 CET 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/20131031/6b6ba710/attachment.html>


More information about the Libav-user mailing list