]> git.sesse.net Git - ffmpeg/commit
av1_metadata: Error out if fragment is empty
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 19 Jun 2019 23:45:00 +0000 (01:45 +0200)
committerMark Thompson <sw@jkqxz.net>
Sun, 7 Jul 2019 21:40:55 +0000 (22:40 +0100)
commit3f81cc8c94586ccd500827b606c1eabfb6e2dadb
tree25e2dc4f973b71653a5a3778f5f605f02e94f85e
parent3c8a2a1180f03ca6b299ebc27eef21ae86635ca0
av1_metadata: Error out if fragment is empty

If the fragment is empty after parsing (i.e. it contains no OBUs), then
the check for the type of the fragment's first OBU is nonsensical; so
error out in this case just as h264_metadata and hevc_metadata do.

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