• Martin Storsjö's avatar
    flvdec: Export new AAC/H.264 extradata as side data on the next packet · 251f320f
    Martin Storsjö authored
    Compared to just overwriting the old extradata, this has the
    advantage of letting the decoder know exactly when the
    extradata changed (otherwise it is changed immediately when the
    new extradata packet is demuxed, even if there's old queued packets
    awaiting to be decoded). This makes it easier for decoders to
    actually react to the change, so they won't have to inspect
    the extradata for each packet to see if it might have changed.
    
    This works when sequentially playing a file with sample rate
    changes, but if seeking past a new extradata packet in the
    file, it obviously doesn't work properly. That case doesn't
    work in flash player either, so it's probably ok not to handle
    it.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    251f320f
Name
Last commit
Last update
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...
RELEASE Loading commit data...
avconv.c Loading commit data...
avplay.c Loading commit data...
avprobe.c Loading commit data...
avserver.c Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...