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:
parent
52877251cf
commit
a7e3cb9d32
@ -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…
x
Reference in New Issue
Block a user