]> git.sesse.net Git - ffmpeg/commit
avformat/smacker: Don't read only one byte at a time
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 22 Jun 2020 02:25:22 +0000 (04:25 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 4 Jul 2020 17:19:34 +0000 (19:19 +0200)
commit638ef5f75896e60dc437d0955ced3cb1901a5e25
tree64d00eac90804aae0152f2e2c28c9e1af7308706
parent09a39042db1b34672ba92a29c2b2f8f18a588a40
avformat/smacker: Don't read only one byte at a time

Instead use ffio_read_size to read data into a buffer. Also check that
the desired size was actually successfully read and combine the check
with the check for reading the extradata.

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