minor error handling improvements
Yuv_file::extract_buffer() improved