vlc | branch: master | Tristan Matthews <[email protected]> | Thu Dec 22 23:06:53 2016 -0500| [0beabcc7725a00de4b03f4a2f5da14756295d640] | committer: 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 <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0beabcc7725a00de4b03f4a2f5da14756295d640 --- modules/codec/vpx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c index 14c7fd4..fa494d8 100644 --- a/modules/codec/vpx.c +++ b/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; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
