mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-08 16:54:03 +02:00
h264dec: rename flush_dpb()
The name is misleading, this function does a lot more than just flushing the DPB.
This commit is contained in:
parent
5e316096fa
commit
4fb05c0d5d
@ -487,8 +487,7 @@ void ff_h264_flush_change(H264Context *h)
|
|||||||
h->mmco_reset = 1;
|
h->mmco_reset = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* forget old pics after a seek */
|
static void h264_decode_flush(AVCodecContext *avctx)
|
||||||
static void flush_dpb(AVCodecContext *avctx)
|
|
||||||
{
|
{
|
||||||
H264Context *h = avctx->priv_data;
|
H264Context *h = avctx->priv_data;
|
||||||
int i;
|
int i;
|
||||||
@ -1065,7 +1064,7 @@ AVCodec ff_h264_decoder = {
|
|||||||
},
|
},
|
||||||
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_EXPORTS_CROPPING |
|
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_EXPORTS_CROPPING |
|
||||||
FF_CODEC_CAP_ALLOCATE_PROGRESS,
|
FF_CODEC_CAP_ALLOCATE_PROGRESS,
|
||||||
.flush = flush_dpb,
|
.flush = h264_decode_flush,
|
||||||
.update_thread_context = ONLY_IF_THREADS_ENABLED(ff_h264_update_thread_context),
|
.update_thread_context = ONLY_IF_THREADS_ENABLED(ff_h264_update_thread_context),
|
||||||
.profiles = NULL_IF_CONFIG_SMALL(ff_h264_profiles),
|
.profiles = NULL_IF_CONFIG_SMALL(ff_h264_profiles),
|
||||||
.priv_class = &h264_class,
|
.priv_class = &h264_class,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user