avformat/av1: Fix leak of dynamic buffer in case of parsing failure