diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-03-21 06:17:36 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-02 21:22:52 +0200 |
commit | d20378373ea26c48078fbac6d6a59f8592eadacc (patch) | |
tree | 8ea390a8d6a1f388faaa7ff7d270ff7b872d725e /tests | |
parent | da4ba2431c92017379a0bd0b3c0fb74ce6093f09 (diff) | |
download | ffmpeg-d20378373ea26c48078fbac6d6a59f8592eadacc.tar.gz |
avformat/hnm: Only keep and parse what is needed later
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: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions