mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-27 20:01:50 +02:00
avcodec/hevc: move HEVCLocalContext declaration into loop
Found-by: CSA Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
92be540636
commit
3fa9692ae2
@ -3107,7 +3107,6 @@ fail:
|
|||||||
static av_cold int hevc_decode_free(AVCodecContext *avctx)
|
static av_cold int hevc_decode_free(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
HEVCContext *s = avctx->priv_data;
|
HEVCContext *s = avctx->priv_data;
|
||||||
HEVCLocalContext *lc = s->HEVClc;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
pic_arrays_free(s);
|
pic_arrays_free(s);
|
||||||
@ -3148,7 +3147,7 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx)
|
|||||||
av_freep(&s->sh.size);
|
av_freep(&s->sh.size);
|
||||||
|
|
||||||
for (i = 1; i < s->threads_number; i++) {
|
for (i = 1; i < s->threads_number; i++) {
|
||||||
lc = s->HEVClcList[i];
|
HEVCLocalContext *lc = s->HEVClcList[i];
|
||||||
if (lc) {
|
if (lc) {
|
||||||
av_freep(&s->HEVClcList[i]);
|
av_freep(&s->HEVClcList[i]);
|
||||||
av_freep(&s->sList[i]);
|
av_freep(&s->sList[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user