History

Merge "vp8: move error check earlier"

Johann Koenig committed 6 years ago

Commit d99a0bc2 parents 67aa6c8 d1e872e1 file · +2 −2Browse files

Unified · Split

vp8/decoder/dboolhuff.c+2−2
@@ -15,6 +15,8 @@ · 14 unmodified lines
1515 int vp8dx_start_decode(BOOL_DECODER *br, const unsigned char *source,
1616 unsigned int source_sz, vpx_decrypt_cb decrypt_cb,
1717 void *decrypt_state) {
18+ if (source_sz && !source) return 1;
19+
1820 // To simplify calling code this fuction can be called with |source| == null
1921 // and |source_sz| == 0. This and vp8dx_bool_decoder_fill() are essentially
2022 // no-ops in this case.
@@ -27,8 +29,6 @@ int vp8dx_start_decode(BOOL_DECODER *br, const unsigned char *source, · 6 unmodified lines
2729 br->decrypt_cb = decrypt_cb;
2830 br->decrypt_state = decrypt_state;
2931
30− if (source_sz && !source) return 1;
31−
3232 /* Populate the buffer */
3333 vp8dx_bool_decoder_fill(br);
3434

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t