Commit 0beabcc7 authored by Tristan Matthews's avatar Tristan Matthews Committed by Jean-Baptiste Kempf

vpx: treat unsupported bitstream error as fatal

Otherwise it will keep trying to decode blocks that the library is
incapable of decoding (e.g., 10-bit without --enable-vp9-highbitdepth).
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 01f41620
......@@ -191,6 +191,8 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block)
if (err != VPX_CODEC_OK) {
free(pkt_pts);
VPX_ERR(dec, ctx, "Failed to decode frame");
if (err == VPX_CODEC_UNSUP_BITSTREAM)
dec->b_error = true;
return NULL;
}
......
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