[vlc-commits] transcode: set pointers to NULL rather than 0

Rafaël Carré git at videolan.org
Tue Jul 7 10:48:39 CEST 2015


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Jul  7 10:47:50 2015 +0200| [7f4ad868617a5583db087162c99b11802222eb41] | committer: Rafaël Carré

transcode: set pointers to NULL rather than 0

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

 modules/stream_out/transcode/video.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index c0fc480..2c2d4f3 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -127,10 +127,9 @@ int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_sys_t *id )
      */
     id->p_decoder->fmt_out = id->p_decoder->fmt_in;
     id->p_decoder->fmt_out.i_extra = 0;
-    id->p_decoder->fmt_out.p_extra = 0;
+    id->p_decoder->fmt_out.p_extra = NULL;
     id->p_decoder->pf_decode_video = NULL;
     id->p_decoder->pf_get_cc = NULL;
-    id->p_decoder->pf_get_cc = 0;
     id->p_decoder->pf_vout_format_update = video_update_format_decoder;
     id->p_decoder->pf_vout_buffer_new = video_new_buffer_decoder;
     id->p_decoder->p_owner = malloc( sizeof(decoder_owner_sys_t) );



More information about the vlc-commits mailing list