diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-27 23:51:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-28 00:04:58 +0200 |
commit | 0e7444f6e400b16282f6349e3c53bcb72e6e2ad9 (patch) | |
tree | 2ae35e1ed2e9659ff56611ac9b705f7ce80944d1 /libavcodec/hevc.c | |
parent | 2879a4ecb9c31430dae75af79696ef4f94ce6b46 (diff) | |
download | ffmpeg-streaming-0e7444f6e400b16282f6349e3c53bcb72e6e2ad9.zip ffmpeg-streaming-0e7444f6e400b16282f6349e3c53bcb72e6e2ad9.tar.gz |
avcodec/hevc: Remove current_sps
The variable should not be needed anymore
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 544854f..f950349 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -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; |