[FFmpeg-cvslog] h264: fix h264-test
Michael Niedermayer
git at videolan.org
Thu Jul 21 16:54:44 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 21 16:50:00 2011 +0200| [ba99474b1d3282afd5111d7e4ce542030f3f0ccc] | committer: Michael Niedermayer
h264: fix h264-test
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ba99474b1d3282afd5111d7e4ce542030f3f0ccc
---
libavcodec/h264.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index fe3cd93..1fde745 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3870,6 +3870,7 @@ static inline void fill_mb_avail(H264Context *h){
#undef random
#define COUNT 8000
#define SIZE (COUNT*40)
+extern AVCodec ff_h264_decoder;
int main(void){
int i;
uint8_t temp[SIZE];
@@ -3879,6 +3880,8 @@ int main(void){
DSPContext dsp;
AVCodecContext avctx;
+ avcodec_get_context_defaults3(&avctx, &ff_h264_decoder);
+
dsputil_init(&dsp, &avctx);
init_put_bits(&pb, temp, SIZE);
More information about the ffmpeg-cvslog
mailing list