[vlc-commits] aom: treat unsupported bitstream errors as fatal
Tristan Matthews
git at videolan.org
Tue Jul 24 17:10:03 CEST 2018
vlc/vlc-3.0 | branch: master | Tristan Matthews <tmatth at videolan.org> | Tue Jul 3 10:18:37 2018 -0400| [7eaef538fbf038e79b8bce888864ba596c6c8bbc] | committer: Francois Cartegnie
aom: treat unsupported bitstream errors as fatal
This avoids repeatedly trying to decode an impossible to decode stream.
Cherry-picked from 0beabcc7725a00de4b03f4a2f5da14756295d640
(cherry picked from commit 1b09b95e0e6c53b5c22ec8bd80c5e71647230514)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7eaef538fbf038e79b8bce888864ba596c6c8bbc
---
modules/codec/aom.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/codec/aom.c b/modules/codec/aom.c
index 003e655eb0..b76b19c954 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -149,7 +149,10 @@ static int Decode(decoder_t *dec, block_t *block)
if (err != AOM_CODEC_OK) {
free(pkt_pts);
AOM_ERR(dec, ctx, "Failed to decode frame");
- return VLCDEC_SUCCESS;
+ if (err == AOM_CODEC_UNSUP_BITSTREAM)
+ return VLCDEC_ECRITICAL;
+ else
+ return VLCDEC_SUCCESS;
}
const void *iter = NULL;
More information about the vlc-commits
mailing list