Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-28 00:51:09 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-28 01:04:58 +0300
commit0e7444f6e400b16282f6349e3c53bcb72e6e2ad9 (patch)
tree2ae35e1ed2e9659ff56611ac9b705f7ce80944d1 /libavcodec/hevc_ps.c
parent2879a4ecb9c31430dae75af79696ef4f94ce6b46 (diff)
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_ps.c')
-rw-r--r--libavcodec/hevc_ps.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 3d4f3e7ffb..de81e011f0 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -88,12 +88,7 @@ static void remove_sps(HEVCContext *s, int id)
if (s->pps_list[i] && ((HEVCPPS*)s->pps_list[i]->data)->sps_id == id)
remove_pps(s, i);
- if (s->sps_list[id] && s->sps == (HEVCSPS*)s->sps_list[id]->data) {
- av_buffer_unref(&s->current_sps);
- s->current_sps = av_buffer_ref(s->sps_list[id]);
- if (!s->current_sps)
- s->sps = NULL;
- }
+ av_assert0(!(s->sps_list[id] && s->sps == (HEVCSPS*)s->sps_list[id]->data));
}
av_buffer_unref(&s->sps_list[id]);
}