videoio: fix some issues in ffmpeg error processing
videoio: fix some issues in ffmpeg error processing

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv