diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-08-19 04:59:01 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-08-19 21:32:47 +0300 |
commit | 6e8d420a419329d95ac35d520c7a26588f7a51cc (patch) | |
tree | fa56028f11f839101ee3f8a8a9a64848655588fb /libmpdemux/demux_gif.c | |
parent | 6ec60c976f6fa990ed1c7efa0ceb7e7634d163c7 (diff) | |
download | mpv-6e8d420a419329d95ac35d520c7a26588f7a51cc.tar.bz2 mpv-6e8d420a419329d95ac35d520c7a26588f7a51cc.tar.xz |
demux: avoid a copy of demux packets with lavf, reduce padding
When demux_lavf read a new packet it used to copy the data from
libavformat's struct AVPacket to struct demux_packet and then free the
lavf packet. Change it to instead keep the AVPacket allocated and
point demux_packet fields to the buffer in that.
Also change MP_INPUT_BUFFER_PADDING_SIZE to 8 which matches
FF_INPUT_BUFFER_PADDING SIZE; demux_lavf packets won't have more
padding now anyway (it was increased from 8 earlier when
FF_INPUT_BUFFER_PADDING_SIZE was increased in libavcodec, but that
change was reverted).
Diffstat (limited to 'libmpdemux/demux_gif.c')
0 files changed, 0 insertions, 0 deletions