Fix crash in SpeechRecognizerImpl introduced in AudioParams refactor.
[chromium-blink-merge.git] / third_party / libjpeg / google.jdmarker.patch
blob0a0c073df47514f58f9d965b6b407d096ec6da2b
1 diff --git a/third_party/libjpeg/jdmarker.c b/third_party/libjpeg/jdmarker.c
2 index f4cca8c..c9325af 100644
3 --- a/third_party/libjpeg/jdmarker.c
4 +++ b/third_party/libjpeg/jdmarker.c
5 @@ -342,6 +342,12 @@ get_sos (j_decompress_ptr cinfo)
7 TRACEMS3(cinfo, 1, JTRC_SOS_COMPONENT, cc,
8 compptr->dc_tbl_no, compptr->ac_tbl_no);
10 + /* This CSi (cc) should differ from the previous CSi */
11 + for (ci = 0; ci < i; ci++) {
12 + if (cinfo->cur_comp_info[ci] == compptr)
13 + ERREXIT1(cinfo, JERR_BAD_COMPONENT_ID, cc);
14 + }
17 /* Collect the additional scan parameters Ss, Se, Ah/Al. */