vp9/10: fix encoder crash on flush
the lookahead buffer allocation is deferred to receipt of the first frame to allow profile changes. if the encoder was flushed before supplying any frames the encoder would crash trying to dereference the NULL buffer. vp8 is unaffected. fixes mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1237848 Change-Id: Icee4b64de760476eee0d33b568f0a1010335ff13
Showing
- test/encode_api_test.cc 68 additions, 0 deletionstest/encode_api_test.cc
- test/test.mk 1 addition, 0 deletionstest/test.mk
- vp10/encoder/lookahead.c 1 addition, 1 deletionvp10/encoder/lookahead.c
- vp8/encoder/lookahead.c 1 addition, 0 deletionsvp8/encoder/lookahead.c
- vp9/encoder/vp9_lookahead.c 1 addition, 1 deletionvp9/encoder/vp9_lookahead.c
Loading
Please register or sign in to comment