From a7e3cb9d32366209015a395f1435323887e66d4f Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 7 Jan 2012 21:36:31 +0100 Subject: h264-test: Initialize AVCodecContext.av_class. This fixes a segfault on startup. Also remove a commented-out and completely unused variable. --- libavcodec/h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 82b7acd1ee..cee16e7577 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -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); -- cgit v1.2.3