cook: use the bytestream2 API for reading extradata
authorAnton Khirnov <anton@khirnov.net>
Sun, 14 Aug 2016 08:18:39 +0000 (10:18 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 18 Aug 2016 15:06:46 +0000 (17:06 +0200)
commit409d1cd2c955485798f8b0b0147c2b899b9144ec
tree45b78bc0947fcc5fc4c09a297d7fe511184bfc1d
parentbba9d8bdfb208b0ec2ccf182530347151ee3528b
cook: use the bytestream2 API for reading extradata

Fixes possible invalid reads in corrupted files.

CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
libavcodec/cook.c