I just have a question about how to use ffmpeg/libavcodec/libstagfright.cpp
: I try to avcodec_open2(st->codec, codec)
when I have use ffmpeg to
Im actually working on providing stagefright to my ffmpeg library on Android. I made some changes to original libstagefright.cpp from ffmpeg/libav but it is still not stable. After stabilizing it I will create pull request for ffmpeg/libav team. You can look around on my project: in "hwaccel" branch.
It is available at AndroidFFmpeg/FFmpegLibrary/jni/ffstagefright.cpp directory.
To use this library you have call standard ffmpeg methods and open insteed of standard h264 codec libstagefright_h264 codec:
AVCodec *codec = avcodec_find_decoder_by_name("libstagefright_h264");