Unified · Split
| @@ -15,6 +15,8 @@ · 14 unmodified lines | |||
| 15 | int vp8dx_start_decode(BOOL_DECODER *br, const unsigned char *source, | 15 | int vp8dx_start_decode(BOOL_DECODER *br, const unsigned char *source, |
| 16 | unsigned int source_sz, vpx_decrypt_cb decrypt_cb, | 16 | unsigned int source_sz, vpx_decrypt_cb decrypt_cb, |
| 17 | void *decrypt_state) { | 17 | void *decrypt_state) { |
| 18 | if (source_sz && !source) return 1; | ||
| 19 | |||
| 18 | // To simplify calling code this fuction can be called with |source| == null | 20 | // To simplify calling code this fuction can be called with |source| == null |
| 19 | // and |source_sz| == 0. This and vp8dx_bool_decoder_fill() are essentially | 21 | // and |source_sz| == 0. This and vp8dx_bool_decoder_fill() are essentially |
| 20 | // no-ops in this case. | 22 | // no-ops in this case. |
| @@ -27,8 +29,6 @@ int vp8dx_start_decode(BOOL_DECODER *br, const unsigned char *source, · 6 unmodified lines | |||
| 27 | br->decrypt_cb = decrypt_cb; | 29 | br->decrypt_cb = decrypt_cb; |
| 28 | br->decrypt_state = decrypt_state; | 30 | br->decrypt_state = decrypt_state; |
| 29 | 31 | ||
| 30 | if (source_sz && !source) return 1; | ||
| 31 | |||
| 32 | /* Populate the buffer */ | 32 | /* Populate the buffer */ |
| 33 | vp8dx_bool_decoder_fill(br); | 33 | vp8dx_bool_decoder_fill(br); |
| 34 | 34 | ||