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