[vlc-commits] transcode: actually do the audio encode flushing
Ilkka Ollakka
git at videolan.org
Wed Oct 24 18:02:20 CEST 2012
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Oct 24 18:56:11 2012 +0300| [edf1a9532a0f69c5ecd7b06d65b40ac7b20e78ae] | committer: Ilkka Ollakka
transcode: actually do the audio encode flushing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=edf1a9532a0f69c5ecd7b06d65b40ac7b20e78ae
---
modules/stream_out/transcode/audio.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/modules/stream_out/transcode/audio.c b/modules/stream_out/transcode/audio.c
index 8635d30..f2aa250 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -340,6 +340,16 @@ int transcode_audio_process( sout_stream_t *p_stream,
block_t *p_block, *p_audio_buf;
*out = NULL;
+ if( unlikely( in == NULL ) )
+ {
+ block_t *p_block;
+ do {
+ p_block = id->p_encoder->pf_encode_audio(id->p_encoder, NULL );
+ block_ChainAppend( out, p_block );
+ } while( p_block );
+ return VLC_SUCCESS;
+ }
+
while( (p_audio_buf = id->p_decoder->pf_decode_audio( id->p_decoder,
&in )) )
{
More information about the vlc-commits
mailing list