]> git.sesse.net Git - ffmpeg/commit
h264_metadata: Localize code for display orientation
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 17 Jun 2019 03:42:14 +0000 (05:42 +0200)
committerMark Thompson <sw@jkqxz.net>
Sun, 7 Jul 2019 21:17:07 +0000 (22:17 +0100)
commit3c8a2a1180f03ca6b299ebc27eef21ae86635ca0
treec0290cabe814ad0ec3191d79dfda82d1ad6b110e
parenta72cc47a275a62c9a36f9df8c912e6f1cd820fc7
h264_metadata: Localize code for display orientation

The recent changes to h264_metadata (enabled by the recent changes to
ff_cbs_write_packet) made it possible to add side_data to the output
packet at any place, not only after the output packet has been written
and the properties of the input packet copied. This means that one can
now localize the code to add display orientation side-data to the packet
to the place dealing with said display-orientation.

Furthermore, the documentation of av_display_rotation_set states that
the matrix will be fully overwritten by it, so there is no need to
allocate it with av_mallocz.

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