[vlc-devel] [PATCH 1/8] decoder: add a flag allowing decoders to use their own picture pool
Steve Lhomme
robux4 at ycbcr.xyz
Mon Jul 27 15:45:22 CEST 2020
---
include/vlc_codec.h | 3 +++
src/input/decoder.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/vlc_codec.h b/include/vlc_codec.h
index 81c2cb5d142..8ebdc111709 100644
--- a/include/vlc_codec.h
+++ b/include/vlc_codec.h
@@ -114,6 +114,9 @@ struct decoder_t
/* Tell the decoder if it is allowed to drop frames */
bool b_frame_drop_allowed;
+ /* The decoder uses its own picture pool */
+ bool b_external_pool;
+
/**
* Number of extra (ie in addition to the DPB) picture buffers
* needed for decoding.
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 99c5f12e12f..d24fa8feb34 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -428,7 +428,7 @@ static int ModuleThread_UpdateVideoFormat( decoder_t *p_dec, vlc_video_context *
// configure the new vout
- if ( p_owner->out_pool == NULL )
+ if ( p_owner->out_pool == NULL && !p_dec->b_external_pool )
{
unsigned dpb_size;
switch( p_dec->fmt_in.i_codec )
--
2.26.2
More information about the vlc-devel
mailing list