aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-01-07 21:36:31 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-07 22:13:10 +0100
commita7e3cb9d32366209015a395f1435323887e66d4f (patch)
treee50b6b81f2ca471f5113ce01716d2e2aee321706 /libavcodec
parent52877251cfc309bd9d8b57905f6805222857aeb2 (diff)
downloadffmpeg-a7e3cb9d32366209015a395f1435323887e66d4f.tar.gz
h264-test: Initialize AVCodecContext.av_class.
This fixes a segfault on startup. Also remove a commented-out and completely unused variable.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
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);