takdec: check av_samples_get_buffer_size() return value