avformat/av1: Avoid using dynamic buffer when assembling av1c
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 21 Jun 2020 10:58:21 +0000 (12:58 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 26 Jun 2020 05:12:31 +0000 (07:12 +0200)
commit36fa84e7ac805a774820d06b3d58e4e875cb11c9
tree2c60903e06fc25817db77e875ea5f902713ac77d
parent82b64e9bf671e37c078a4aae26b6f5c68723d7f9
avformat/av1: Avoid using dynamic buffer when assembling av1c

Given that AV1 only has exactly one sequence header, it is unnecessary
to copy the content of said sequence header into an intermediate dynamic
buffer; instead the sequence header can be copied from where it is in
the input buffer.

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