h264-test: Initialize AVCodecContext.av_class.

This fixes a segfault on startup.

Also remove a commented-out and completely unused variable.
pull/3/head
Diego Biurrun 13 years ago
parent 52877251cf
commit a7e3cb9d32
  1. 2
      libavcodec/h264.c

@ -4109,10 +4109,10 @@ int main(void){
uint8_t temp[SIZE]; uint8_t temp[SIZE];
PutBitContext pb; PutBitContext pb;
GetBitContext gb; GetBitContext gb;
// int int_temp[10000];
DSPContext dsp; DSPContext dsp;
AVCodecContext avctx; AVCodecContext avctx;
avctx.av_class = avcodec_get_class();
dsputil_init(&dsp, &avctx); dsputil_init(&dsp, &avctx);
init_put_bits(&pb, temp, SIZE); init_put_bits(&pb, temp, SIZE);

Loading…
Cancel
Save