h264: fix h264-test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-07-21 16:50:00 +02:00
parent f93f6963ba
commit ba99474b1d
1 changed files with 3 additions and 0 deletions

View File

@ -3870,6 +3870,7 @@ static inline void fill_mb_avail(H264Context *h){
#undef random #undef random
#define COUNT 8000 #define COUNT 8000
#define SIZE (COUNT*40) #define SIZE (COUNT*40)
extern AVCodec ff_h264_decoder;
int main(void){ int main(void){
int i; int i;
uint8_t temp[SIZE]; uint8_t temp[SIZE];
@ -3879,6 +3880,8 @@ int main(void){
DSPContext dsp; DSPContext dsp;
AVCodecContext avctx; AVCodecContext avctx;
avcodec_get_context_defaults3(&avctx, &ff_h264_decoder);
dsputil_init(&dsp, &avctx); dsputil_init(&dsp, &avctx);
init_put_bits(&pb, temp, SIZE); init_put_bits(&pb, temp, SIZE);