1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

h264-test: Initialize AVCodecContext.av_class.

This fixes a segfault on startup.

Also remove a commented-out and completely unused variable.
This commit is contained in:
Diego Biurrun 2012-01-07 21:36:31 +01:00
parent 52877251cf
commit a7e3cb9d32

View File

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