Ticket #961: mpeg12.diff
File mpeg12.diff, 683 bytes (added by , 20 years ago) |
---|
-
libs/libavcodec/mpeg12.c
2188 2188 const uint8_t *buf_ptr= *pbuf_ptr; 2189 2189 2190 2190 buf_ptr++; //gurantees that -1 is within the array 2191 buf_end -= 2; // gurantees that +2is within the array2191 buf_end -= 3; // gurantees that +3 is within the array 2192 2192 2193 2193 while (buf_ptr < buf_end) { 2194 2194 if(*buf_ptr==0){ … … 2202 2202 } 2203 2203 buf_ptr += 2; 2204 2204 } 2205 buf_end += 2; //undo the hack above2205 buf_end += 3; //undo the hack above 2206 2206 2207 2207 *pbuf_ptr = buf_end; 2208 2208 return -1;