]> granicus.if.org Git - libvpx/commit
examples: use die() on dec/enc_init() failure
authorJames Zern <jzern@google.com>
Wed, 6 May 2020 20:01:57 +0000 (13:01 -0700)
committerJames Zern <jzern@google.com>
Fri, 8 May 2020 00:15:42 +0000 (17:15 -0700)
commitcbc276a3d4e3ff91d155e6f0d66f9033cec8b32b
tree6ef2a68989652cc9eaf7d451ce21fccb87b5c684
parentb130f71bf0c9eb0911fc27b17fc543366ceffc3e
examples: use die() on dec/enc_init() failure

rather than die_codec(). calling any api functions with an uninitialized
codec context is undefined. this avoids a crash in a call to
vpx_codec_error_detail().

BUG=webm:1688

Change-Id: I4a4feeabc1cafa44c8d2f24587fad79e313dba6d
examples/decode_with_drops.c
examples/postproc.c
examples/set_maps.c
examples/simple_decoder.c
examples/simple_encoder.c
examples/twopass_encoder.c
examples/vp8cx_set_ref.c
examples/vp9_lossless_encoder.c
examples/vp9cx_set_ref.c
examples/vpx_temporal_svc_encoder.c