]> git.sesse.net Git - ffmpeg/commit
tests/api-flac-test: ensure the frame is writable before writing to it
authorAnton Khirnov <anton@khirnov.net>
Wed, 27 Jan 2021 10:43:03 +0000 (11:43 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 8 Mar 2021 08:29:50 +0000 (09:29 +0100)
commitba30fd6c81261c0896e5755a4e1440c2792e2e89
tree1236ff82266d510c4abea68199c160cdca90bfc0
parent2f004b357e6709083f741c6ed0f5a82d81784ac8
tests/api-flac-test: ensure the frame is writable before writing to it

The encoder may keep a reference to frames that were sent to it, so the
caller cannot modify them without checking first.
tests/api/api-flac-test.c