aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-07-21 16:50:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-07-21 16:53:24 +0200
commitba99474b1d3282afd5111d7e4ce542030f3f0ccc (patch)
treee25b48764e45ad63c08e3e2bf00a4678c109b8d1 /libavcodec/h264.c
parentf93f6963babf08a7bcf85b9a57f37266dc0a4ae0 (diff)
downloadffmpeg-ba99474b1d3282afd5111d7e4ce542030f3f0ccc.tar.gz
h264: fix h264-test
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index fe3cd93c0f..1fde7455ae 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);