diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-14 23:19:19 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-03-06 00:58:31 +0100 |
commit | aa486b4b66ee3e1f835230856087c5436a522e40 (patch) | |
tree | 2d9e1aab33dbd80d811a6a8f8868392125b4b6fe /libavformat/options.c | |
parent | 4b4f8bd4a570d579eae2efb9f59134134b08df2b (diff) | |
download | ffmpeg-aa486b4b66ee3e1f835230856087c5436a522e40.tar.gz |
h264_mp4toannexb: Simplify extradata insertion
Up until now, h264_mp4toannexb stored the offset of the first SPS and
the first PPS in the (output) extradata in its context and used these
two numbers together with the size of the extradata and the pointer to
the extradata to determine what to insert when inserting extradata. This
led to some very long lines like "s->pps_offset != -1 ? s->pps_offset :
ctx->par_out->extradata_size - s->sps_offset". Therefore now pointers to
SPS and PPS are stored along with their respective sizes, so that e.g.
the above line can be changed to "s->sps_size".
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/options.c')
0 files changed, 0 insertions, 0 deletions