Browse Source

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 <jb@videolan.org>
pull/53/head
Tristan Matthews 9 years ago
committed by Jean-Baptiste Kempf
parent
commit
0beabcc772
  1. 2
      modules/codec/vpx.c

2
modules/codec/vpx.c

@ -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;
}

Loading…
Cancel
Save