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