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

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


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

packetizer: avparser: initialize all callback fields

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

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

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

diff --git a/modules/packetizer/avparser.c b/modules/packetizer/avparser.c
index 5ec26f4874..fb6f0b5a86 100644
--- a/modules/packetizer/avparser.c
+++ b/modules/packetizer/avparser.c
@@ -128,6 +128,7 @@ int avparser_OpenPacketizer( vlc_object_t *p_this )
     }
     p_dec->pf_packetize = Packetize;
     p_dec->pf_flush = FlushPacketizer;
+    p_dec->pf_get_cc = NULL;
     p_sys->p_parser_ctx = p_ctx;
     p_sys->p_codec_ctx = p_codec_ctx;
     p_sys->i_offset = 0;



More information about the vlc-commits mailing list