]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hevc.c
libavcodec/svq3: clarify unknown_flag by renaming to has_watermark
[ffmpeg] / libavcodec / hevc.c
index 544854ffc4838557f441a0f8a12ea479fdddbf1e..f95034941a41080a8cbef2098a2734d7f70eec40 100644 (file)
@@ -3218,8 +3218,6 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx)
     s->pps = NULL;
     s->vps = NULL;
 
-    av_buffer_unref(&s->current_sps);
-
     av_freep(&s->sh.entry_point_offset);
     av_freep(&s->sh.offset);
     av_freep(&s->sh.size);
@@ -3340,13 +3338,6 @@ static int hevc_update_thread_context(AVCodecContext *dst,
         }
     }
 
-    av_buffer_unref(&s->current_sps);
-    if (s0->current_sps) {
-        s->current_sps = av_buffer_ref(s0->current_sps);
-        if (!s->current_sps)
-            return AVERROR(ENOMEM);
-    }
-
     if (s->sps != s0->sps)
         if ((ret = set_sps(s, s0->sps, src->pix_fmt)) < 0)
             return ret;