[vlc-devel] [V2 06/14] codec: lpcm: prepare to put pf_packetize and pf_decode into a union
Zhao Zhili
quinkblack at foxmail.com
Fri Jun 8 11:47:12 CEST 2018
---
modules/codec/lpcm.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index bb92b13..9499616 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -295,8 +295,10 @@ static int OpenCommon( decoder_t *p_dec, bool b_packetizer )
}
/* Set callback */
- p_dec->pf_decode = DecodeFrame;
- p_dec->pf_packetize = Packetize;
+ if( !b_packetizer )
+ p_dec->pf_decode = DecodeFrame;
+ else
+ p_dec->pf_packetize = Packetize;
p_dec->pf_flush = Flush;
return VLC_SUCCESS;
--
2.9.5
More information about the vlc-devel
mailing list