[FFmpeg-devel] [PATCH/RFC]Fix libstagefright compilation
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Feb 7 10:54:49 CET 2012
Hi!
Attached patch is completely untested, but follows ticket #985.
Please test / comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/libstagefright.cpp b/libavcodec/libstagefright.cpp
index e29a377..8e93b46 100644
--- a/libavcodec/libstagefright.cpp
+++ b/libavcodec/libstagefright.cpp
@@ -536,17 +536,27 @@ static av_cold int Stagefright_close(AVCodecContext *avctx)
AVCodec ff_libstagefright_h264_decoder = {
"libstagefright_h264",
+ NULL_IF_CONFIG_SMALL("libstagefright H.264"),
AVMEDIA_TYPE_VIDEO,
CODEC_ID_H264,
+ CODEC_CAP_DELAY,
+ NULL, //supported_framerates
+ NULL, //pix_fmts
+ NULL, //supported_samplerates
+ NULL, //sample_fmts
+ NULL, //channel_layouts
+ 0, //max_lowres
+ NULL, //priv_class
+ NULL, //profiles
sizeof(StagefrightContext),
+ NULL, //next
+ NULL, //init_thread_copy
+ NULL, //update_thread_context
+ NULL, //defaults
+ NULL, //init_static_data
Stagefright_init,
NULL, //encode
- Stagefright_close,
+ NULL, //encode2
Stagefright_decode_frame,
- CODEC_CAP_DELAY,
- NULL, //next
- NULL, //flush
- NULL, //supported_framerates
- NULL, //pixel_formats
- NULL_IF_CONFIG_SMALL("libstagefright H.264"),
+ Stagefright_close,
};
More information about the ffmpeg-devel
mailing list