DescriptionNon DCTSIZE multiple width support for JPEG YUV decoding
Since jpeg_read_raw_data reads blocks of memory, we have to make sure
that the memory allocated is a multiple of the DCT block size. For
example, if DCTSIZE is 8, which is generally the case, we have to make
sure that the allocated memory to read the raw JPEG data has a width
rounded up to the next multiple of 8 (if it's not already a multiple
of 8) to avoid writing data out of the bounds of the memory. If this
isn't done properly, the end of some decode image lines can overwrite
the beginning of the following lines.
BUG=411189
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181749
Patch Set 1 #
Total comments: 15
Patch Set 2 : Fixed some comments #Patch Set 3 : Fixed some comments #
Total comments: 1
Patch Set 4 : Tidying up the code #
Messages
Total messages: 18 (3 generated)
|