• Andreas Rheinhardt's avatar
    avformat/hnm: Only keep and parse what is needed later · d2037837
    Andreas Rheinhardt authored
    The hnm demuxer's context struct contained lots of fields that are
    write-only variables or that are not used outside of parsing the header
    and that can therefore be replaced by local variables of hnm_read_header().
    This commit removes all of these from the context; the second type has
    been replaced by local variables.
    
    An AVPacket (that was initialized when reading the header and for which
    dead code to unreference it existed in hnm_read_close()) is among the
    removed things. Removing it allowed to remove hnm_read_close()
    altogether and also removes another instance of usage of sizeof(AVPacket).
    Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    d2037837
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md 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...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...