If decoding failed because end_picture() failed, set the picture to nonexisting, this way output_picture() will be skipped. This avoids confusing special cases in output_picture() implementation.
If decoding failed because end_picture() failed, set the picture to nonexisting, this way output_picture() will be skipped. This avoids confusing special cases in output_picture() implementation.