[vlc-commits] transcode: remove redundant decoder picture allocation
Steve Lhomme
git at videolan.org
Wed Jun 26 07:24:21 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 25 09:10:47 2019 +0200| [fa4389810209f6dcdf9afd7786ed072370097a6f] | committer: Steve Lhomme
transcode: remove redundant decoder picture allocation
The core can do it by default.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fa4389810209f6dcdf9afd7786ed072370097a6f
---
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,
},
};
More information about the vlc-commits
mailing list