From 3856a2aaa6a44d80da597e932e9d475bda8546bd Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Mon, 30 Jan 2012 11:10:27 +0100
Subject: [PATCH] h264-test: Remove unused DSP and AVCodec contexts and related
 init calls.

This also avoids a segfault on startup.
---
 libavcodec/h264.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 581848be16f..8b8c4fec1ca 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4109,11 +4109,6 @@ int main(void){
     uint8_t temp[SIZE];
     PutBitContext pb;
     GetBitContext gb;
-    DSPContext dsp;
-    AVCodecContext avctx;
-
-    avctx.av_class = avcodec_get_class();
-    dsputil_init(&dsp, &avctx);
 
     init_put_bits(&pb, temp, SIZE);
     printf("testing unsigned exp golomb\n");
-- 
GitLab