Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-11-07avcodec: remove remaining uses of avcodec_get_chroma_sub_sampleMartin Vignali
Replace them with av_pix_fmt_get_chroma_sub_sample. Signed-off-by: James Almer <jamrial@gmail.com>
2017-10-26avcodec/exif: remove GetByteContext usage from avpriv_exif_decode_ifd()James Almer
This prevents potential ABI issues with GetByteContext. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2017-08-25mjpeg: Add support for ICC side dataDerek Buitenhuis
JPEGs store embedded profiles under the APP2 marker, signified with a "ICC_PROFILE" null-terminated string header, and can be split across multiple APP2 markers, out of order. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2017-07-12avcodec/mjpegdec: Clip DC also on the negative side.Michael Niedermayer
Fixes: runtime error: signed integer overflow: -16711425 + -2130772346 cannot be represented in type 'int' Fixes: 2533/clusterfuzz-testcase-minimized-5372857678823424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-05avcodec/mjpegdec: Check that reference frame matches the current frameMichael Niedermayer
Fixes: out of array read Fixes: 2097/clusterfuzz-testcase-minimized-5036861833609216 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-05-22avcodec/mjpegdec: Fix runtime error: signed integer overflow: -32767 * ↵Michael Niedermayer
130560 cannot be represented in type 'int' Fixes: 1724/clusterfuzz-testcase-minimized-4842395432648704 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-05-04avcodec/mjpegdec: Fix runtime error: signed integer overflow: -24543 * ↵Michael Niedermayer
2031616 cannot be represented in type 'int' Fixes: 943/clusterfuzz-testcase-5114865297391616 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-04-23avcodec: do not use AVFrame accessorMuhammad Faiz
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2017-04-07lavc/mjpegdec: allow failure while decoding APPClément Bœsch
Fix decoding frame.jpg from ticket #267 Regression since 9c7ee3749 / 212c6a1d7
2017-04-07Merge commit '212c6a1d70df011b6f2a2aa02f7677503287bd00'Clément Bœsch
* commit '212c6a1d70df011b6f2a2aa02f7677503287bd00': mjpegdec: Check return values of functions that may fail Merged-by: Clément Bœsch <u@pkh.me>
2017-03-31Merge commit '67deba8a416d818f3d95aef0aa916589090396e2'Clément Bœsch
* commit '67deba8a416d818f3d95aef0aa916589090396e2': Use avpriv_report_missing_feature() where appropriate Merged-by: Clément Bœsch <cboesch@gopro.com>
2017-03-29lavc: fix usages of av_get_codec_tag_string()Clément Bœsch
2017-03-20avcodec/mjpegdec: quant_matrixes can be up to 65535, use uint16_tMichael Niedermayer
Fixes invalid shift Fixes: 870/clusterfuzz-testcase-5649105424482304 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-20avcodec/mjpegdec: Check quant_matrixes values for being non zeroMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-19Merge commit 'b53d8c3ccfeff77874f5ca7c68136b6d87a0a69c'Clément Bœsch
* commit 'b53d8c3ccfeff77874f5ca7c68136b6d87a0a69c': mjpegdec: Drop disabled code The last chunk is replaced with a comment describing the structure. Merged-by: Clément Bœsch <u@pkh.me>
2017-03-10avcodec/mjpegdec: Fix runtime error: left shift of negative value -127Michael Niedermayer
Fixes: 733/clusterfuzz-testcase-4682158096515072 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-03avcodec/mjpegdec: Fix runtime error: left shift of negative value -511Michael Niedermayer
Fixes: 693/clusterfuzz-testcase-6109776066904064 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-02-19avcodec/mjpegdec: Fix runtime error: left shift of negative value -507Michael Niedermayer
Fixes: 611/clusterfuzz-testcase-5613455820193792 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-02-01avcodec/mjpegdec: Check for for the bitstream end in ↵Michael Niedermayer
mjpeg_decode_scan_progressive_ac() Fixes timeout Fixes: 496/clusterfuzz-testcase-5805083497332736 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-29lavc/mjpegdec: consume SOS data even if the frame is discardedMatthieu Bouron
Speeds up next marker search when a SOS marker is found but the frame is discarded (which happens in avformat_find_stream_info).
2017-01-24avcodec/mjpegdec: Check remaining bitstream in ljpeg_decode_yuv_scan()Michael Niedermayer
Fixes timeout Fixes: 445/fuzz-3-ffmpeg_VIDEO_AV_CODEC_ID_MJPEG_fuzzer Fixes: 456/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_JPEGLS_fuzzer Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-01-01lavc/mjpegdec: Do not overread too short JFIF tags.Carl Eugen Hoyos
Fixes ticket #6055.
2016-12-31avcodec/mjpegdec: Check for rgb before flippingMichael Niedermayer
Fixes assertion failure due to unsupported case Fixes: 356/fuzz-1-ffmpeg_VIDEO_AV_CODEC_ID_MJPEG_fuzzer Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-29mjpegdec: Check return values of functions that may failDiego Biurrun
2016-11-08Use avpriv_report_missing_feature() where appropriateDiego Biurrun
2016-09-03Cosmetics: Reindent after e82b181f.Carl Eugen Hoyos
2016-09-03lavc/mjpegdec: Only read JFIF thumbnail size if the segment is long enough.Carl Eugen Hoyos
Fixes ticket #5805.
2016-09-03lavc/mjpegdec: Do not skip reading quantization tables.Carl Eugen Hoyos
They may contain 0xFFs, confusing the start code finding algorithm. Fixes ticket #5819.
2016-08-17mjpegdec: Drop disabled codeDiego Biurrun
2016-06-25Merge commit 'd68fb1475856cf93199e2bc4eee3063902c35df7'Clément Bœsch
* commit 'd68fb1475856cf93199e2bc4eee3063902c35df7': mjpegdec: Properly fail on malloc failure Merged-by: Clément Bœsch <u@pkh.me>
2016-06-21Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch
* commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
2016-05-19mjpegdec: Properly fail on malloc failureDerek Buitenhuis
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-05-04cosmetics: Fix spelling mistakesVittorio Giovara
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2016-05-02avcodec/mjpegdec: Do not try to detect last scan but apply idct after all ↵Michael Niedermayer
scans for progressive jpeg Fixes: IMG-20160418-WA0002.jpg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-03avcodec/mjpegdec: Do not permute quantization tablesMichael Niedermayer
This fixes issues if the permutation changes, as quantizations tables would need to be reread Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-09lavc/mjpegdec: Set sar for multiscope videos.Carl Eugen Hoyos
Fixes decoding of the files from ticket #4535 visually.
2016-03-08lavc/mjpegdec: avoid printing useless message in default log levelMoritz Barsnick
The change of bps from 0 doesn't contain any info useful to the user. This message is now at info log level only if the original value is !=0, otherwise pushed back to debug log level. The original value is displayed additionally. Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-07lavc/mjpegdec: avoid unneeded allocation if the frame is to be skippedMatthieu Bouron
2016-02-28avcodec/mjpegdec: Fix decoding slightly odd progressive jpegMichael Niedermayer
Fixes: ebd58db6-dc86-11e5-91c2-59daeddf50c7.jpg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-28mjpegdec: Do not assume unused plane pointer are NULL.Reimar Döffinger
We do neither document nor check such a requirement and for application-provided get_buffer2 they could contain the result of a malloc(0) or whatever value they had previously. This fixes a use-after-free in e.g. MPlayer: https://trac.mplayerhq.hu/ticket/2262 We might want to consider changing the (documented) API in addition though. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2016-02-25lavc/mjpegdec: Fix decoding images with Adobe_CM tag.Carl Eugen Hoyos
Fixes ticket #5267.
2016-01-28lavc/mjpegdec: use ptrdiff_t instead of ssize_tMatthieu Bouron
Fixes build on msvc.
2016-01-27lavc/mjpegdec: speed up scan data copyMatthieu Bouron
2016-01-27avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis
Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-01-27lavc/mjpegdec: Set SAR even if no resolution is available.Carl Eugen Hoyos
Fixes ticket #4479.
2016-01-22avcodec/mjpegdec: Check for end for both bytes in unescapingMichael Niedermayer
Fixes assertion failure Fixes: c40c779601b77dc6e19aaea0b04b9751/signal_sigabrt_7ffff6ae7cb7_5769_b94f6ec70caecb2d3d76b4771b109ac1.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-10avcodec/mjpegdec: Fix negative shiftMichael Niedermayer
Fixes: mjpeg_left_shift.avi Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-31mjpegdec: extend check for incompatible values of s->rgb and s->lsAndreas Cadhalpun
This can happen if s->ls changes from 0 to 1, but picture allocation is skipped due to s->interlaced. In that case ff_jpegls_decode_picture could be called even though the s->picture_ptr frame has the wrong pixel format and thus a wrong linesize, which results in a too small zero buffer being allocated. This fixes an out-of-bounds read in ls_decode_line. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-12-07mjpegdec: consider chroma subsampling in size checkAndreas Cadhalpun
If the chroma components are subsampled, smaller buffers are allocated for them. In that case the maximal block_offset for the chroma components is not as large as for the luma component. This fixes out of bounds writes causing segmentation faults or memory corruption. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-12-04avcodec: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch