[vlc-commits] xiph_SplitHeaders: do not malloc+memcpy headers

Rafaël Carré git at videolan.org
Fri Oct 25 21:02:54 CEST 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Oct 25 20:46:37 2013 +0200| [0c4c45e3b20d0b0a3aa7a164e67e939a70f7109a] | committer: Rafaël Carré

xiph_SplitHeaders: do not malloc+memcpy headers

Directly point into the provided extra data
The headers were always used then freed immediately

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

 modules/codec/kate.c        |   18 ++++++------------
 modules/codec/opus.c        |    9 ++-------
 modules/codec/speex.c       |   11 ++---------
 modules/codec/theora.c      |    6 +-----
 modules/codec/vorbis.c      |   17 +++++------------
 modules/demux/ogg.c         |   12 +-----------
 modules/demux/xiph.h        |   23 ++++++++---------------
 modules/mux/ogg.c           |    5 -----
 modules/stream_out/rtpfmt.c |   29 +++++++----------------------
 9 files changed, 32 insertions(+), 98 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=0c4c45e3b20d0b0a3aa7a164e67e939a70f7109a


More information about the vlc-commits mailing list