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:
authorAnton Khirnov <anton@khirnov.net>2017-07-29 22:21:50 +0300
committerAnton Khirnov <anton@khirnov.net>2020-04-10 16:53:27 +0300
commit4fb05c0d5d8dd440b23aea748b21bad3407de0e0 (patch)
treeb71374cbf6a562999759c4494ffe198fcc1a2dcb /libavcodec/h264dec.c
parent5e316096fa9ba4493d9dbb48847ad8e0b0e188c3 (diff)
h264dec: rename flush_dpb()
The name is misleading, this function does a lot more than just flushing the DPB.
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r--libavcodec/h264dec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index b8a1879522..d2269b5cae 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -487,8 +487,7 @@ void ff_h264_flush_change(H264Context *h)
h->mmco_reset = 1;
}
-/* forget old pics after a seek */
-static void flush_dpb(AVCodecContext *avctx)
+static void h264_decode_flush(AVCodecContext *avctx)
{
H264Context *h = avctx->priv_data;
int i;
@@ -1065,7 +1064,7 @@ AVCodec ff_h264_decoder = {
},
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_EXPORTS_CROPPING |
FF_CODEC_CAP_ALLOCATE_PROGRESS,
- .flush = flush_dpb,
+ .flush = h264_decode_flush,
.update_thread_context = ONLY_IF_THREADS_ENABLED(ff_h264_update_thread_context),
.profiles = NULL_IF_CONFIG_SMALL(ff_h264_profiles),
.priv_class = &h264_class,