diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-02 05:15:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-02 05:15:57 +0200 |
commit | 3fa9692ae2324b8fcc1a8aa47b9a75826740b32e (patch) | |
tree | c5e623a8aa16151ddef30e419065262363c68821 /libavcodec/hevc.c | |
parent | 92be540636e1968fc83c412a62f82febf8fb9380 (diff) | |
download | ffmpeg-3fa9692ae2324b8fcc1a8aa47b9a75826740b32e.tar.gz |
avcodec/hevc: move HEVCLocalContext declaration into loop
Found-by: CSA
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 06f73e736a..389f3ec837 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -3107,7 +3107,6 @@ fail: static av_cold int hevc_decode_free(AVCodecContext *avctx) { HEVCContext *s = avctx->priv_data; - HEVCLocalContext *lc = s->HEVClc; int i; pic_arrays_free(s); @@ -3148,7 +3147,7 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx) av_freep(&s->sh.size); for (i = 1; i < s->threads_number; i++) { - lc = s->HEVClcList[i]; + HEVCLocalContext *lc = s->HEVClcList[i]; if (lc) { av_freep(&s->HEVClcList[i]); av_freep(&s->sList[i]); |