summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-03-27 19:41:31 -0700
committerKevin Mitchell <kevmitch@gmail.com>2016-03-30 09:01:35 -0700
commitd88934815dc2866f94388ab13705640313b62663 (patch)
tree5d4df508fd9d44ef8c1787402ac65ff517f69c78
parentc0848e18e92987ae7a287c88f17b70acfdc2e7b6 (diff)
downloadmpv-d88934815dc2866f94388ab13705640313b62663.tar.bz2
mpv-d88934815dc2866f94388ab13705640313b62663.tar.xz
dxva2: abort on mp_image_new_custom_ref failure
-rw-r--r--video/dxva2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/dxva2.c b/video/dxva2.c
index 388db67069..d6635ce0c6 100644
--- a/video/dxva2.c
+++ b/video/dxva2.c
@@ -15,8 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <assert.h>
-
#include "common/av_common.h"
#include "dxva2.h"
#include "mp_image.h"
@@ -77,7 +75,7 @@ struct mp_image *dxva2_new_ref(IDirectXVideoDecoder *decoder,
struct mp_image *mpi = mp_image_new_custom_ref(&(struct mp_image){0},
surface, dxva2_release_img);
if (!mpi)
- goto fail;
+ abort();
mp_image_setfmt(mpi, IMGFMT_DXVA2);
mp_image_set_size(mpi, w, h);