[vlc-devel] [PATCH 6/6] transcode: remove redundant decoder picture allocation
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jun 25 13:53:17 CEST 2019
The core can do it by default.
---
modules/stream_out/transcode/video.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 9f1f72b8cf..108eabada9 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -95,11 +95,6 @@ static int video_update_format_decoder( decoder_t *p_dec )
return chain_works;
}
-static picture_t *video_new_buffer_decoder( decoder_t *p_dec )
-{
- return picture_NewFromFormat( &p_dec->fmt_out.video );
-}
-
static picture_t *video_new_buffer_encoder( transcode_encoder_t *p_enc )
{
return picture_NewFromFormat( &transcode_encoder_format_in( p_enc )->video );
@@ -154,7 +149,6 @@ int transcode_video_init( sout_stream_t *p_stream, const es_format_t *p_fmt,
{
.video = {
.format_update = video_update_format_decoder,
- .buffer_new = video_new_buffer_decoder,
.queue = decoder_queue_video,
},
};
--
2.17.1
More information about the vlc-devel
mailing list