examples/decoding_encoding: check av_samples_get_buffer_size() for a negative value