]> git.sesse.net Git - ffmpeg/commit
mpeg2_metadata: Localize inserting of sequence display extensions
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 19 Jun 2019 23:45:08 +0000 (01:45 +0200)
committerMark Thompson <sw@jkqxz.net>
Sun, 7 Jul 2019 22:04:27 +0000 (23:04 +0100)
commit42114094da35264c2b6710efa3772b2d5de6ba46
treebcb1da736b179db3415993a4ae2d3cef822f4203
parentdd5ce54d2a44ecb8be6c3bb9396839a8d8fb1742
mpeg2_metadata: Localize inserting of sequence display extensions

If a new sequence display extension had to be added, this was up until
now done at two places: One where a sequence display extension was
initialized with default values and one where the actual sequence
display extension was inserted into the fragment. This division of
labour is unnecessary and pointless; it has been changed.

Furthermore, if a sequence display extension has to be added, the
earlier code set some fields to their default value twice. This has been
changed, too.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/mpeg2_metadata_bsf.c