Commit 2a09b420 authored by Thomas Guillem's avatar Thomas Guillem

mediacodec: abort if there is no valid video size

parent 431812a1
...@@ -732,10 +732,12 @@ static int OpenDecoder(vlc_object_t *p_this) ...@@ -732,10 +732,12 @@ static int OpenDecoder(vlc_object_t *p_this)
case VLC_CODEC_VC1: case VLC_CODEC_VC1:
case VLC_CODEC_VP8: case VLC_CODEC_VP8:
case VLC_CODEC_VP9: case VLC_CODEC_VP9:
break; if (p_dec->fmt_in.video.i_width && p_dec->fmt_in.video.i_height)
break;
default: default:
msg_Dbg(p_dec, "codec %4.4s not supported", msg_Dbg(p_dec, "codec %4.4s or resolution (%dx%d) not supported",
(char *)&p_dec->fmt_in.i_codec); (char *)&p_dec->fmt_in.i_codec,
p_dec->fmt_in.video.i_width, p_dec->fmt_in.video.i_height);
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment