[vlc-commits] packetizer: mpegaudio: initialize all callback fields

Zhao Zhili git at videolan.org
Wed Jun 20 14:45:21 CEST 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Tue Jun 19 20:11:42 2018 +0800| [2b1a177aa52490cb085f5181e43f90b9b4f56a2b] | committer: Thomas Guillem

packetizer: mpegaudio: initialize all callback fields

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b1a177aa52490cb085f5181e43f90b9b4f56a2b
---

 modules/packetizer/mpegaudio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/packetizer/mpegaudio.c b/modules/packetizer/mpegaudio.c
index ab01b5b5c4..cb8dd12c1e 100644
--- a/modules/packetizer/mpegaudio.c
+++ b/modules/packetizer/mpegaudio.c
@@ -646,6 +646,7 @@ static int Open( vlc_object_t *p_this )
     /* Set callback */
     p_dec->pf_packetize    = DecodeBlock;
     p_dec->pf_flush        = Flush;
+    p_dec->pf_get_cc       = NULL;
 
     /* Start with the minimum size for a free bitrate frame */
     p_sys->i_free_frame_size = MPGA_HEADER_SIZE;



More information about the vlc-commits mailing list