vlc | branch: master | Steve Lhomme <[email protected]> | Fri Feb 8 13:57:03 2019 +0100| [e958f654639eb9a7334d8521b3215ebb9a3a8702] | committer: Steve Lhomme
oggspots: fix variable shadowing warning > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e958f654639eb9a7334d8521b3215ebb9a3a8702 --- modules/codec/oggspots.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/codec/oggspots.c b/modules/codec/oggspots.c index fc54fe2b62..3dc133229d 100644 --- a/modules/codec/oggspots.c +++ b/modules/codec/oggspots.c @@ -267,12 +267,12 @@ static int ProcessHeader(decoder_t* p_dec) * latter are underspecified. */ if (p_sys->b_packetizer) { - void* p_extra = realloc(p_dec->fmt_out.p_extra, + void* p_new_extra = realloc(p_dec->fmt_out.p_extra, p_dec->fmt_in.i_extra); - if (unlikely(p_extra == NULL)) { + if (unlikely(p_new_extra == NULL)) { return VLC_ENOMEM; } - p_dec->fmt_out.p_extra = p_extra; + p_dec->fmt_out.p_extra = p_new_extra; p_dec->fmt_out.i_extra = p_dec->fmt_in.i_extra; memcpy(p_dec->fmt_out.p_extra, p_dec->fmt_in.p_extra, p_dec->fmt_out.i_extra); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
