summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* | avcodec/dsputil: add 12bit simple idctMichael Niedermayer2013-09-06
| | | | | | | | | | | | Will be needed for jpeg Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: Simplify masking in ljpeg_decode_yuv_scan()Michael Niedermayer2013-09-05
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: fix rgb ljpeg prediction 5/6/7 with point_transformMichael Niedermayer2013-09-05
| | | | | | | | | | | | untested due to lack of sample Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: fix yuv ljpeg prediction 5/6/7 with point transformsMichael Niedermayer2013-09-05
| | | | | | | | | | | | Fixes Ticket2826 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/jpeg2000dec: make SOC finding code more robustMichael Niedermayer2013-09-05
| | | | | | | | | | | | Fixes file from Ticket860 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: make "unknown colorspace" error more informativeMichael Niedermayer2013-09-05
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mjpegdec: Add some sanity checks to ljpeg_decode_rgb_scan()Michael Niedermayer2013-09-05
| | | | | | | | | | | | | | These prevent the rgb ljpeg code from being run on parameters that it doesnt support. No testcase available but it seems possible to trigger these. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: make avcodec_close() more tolerant.Clément Bœsch2013-09-04
| | | | | | | | See previous commit.
* | avcodec/avpacket: zero memory in av_packet_new_side_data()Michael Niedermayer2013-09-04
| | | | | | | | | | | | This ensures that no uninitialized bytes cause non-deterministic behavior. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/avfft: init context to 0.Nicolas George2013-09-04
| | | | | | | | Prevent an invalid free in case of init failure.
* | lavc/libvorbisdec: do not return empty frames.Nicolas George2013-09-04
| | | | | | | | | | | | Some parts of the code have been known to react badly to empty frames; they should not, but there is no need to take risks.
* | avcodec: fix AVpacket → AVPacket typo.Clément Bœsch2013-09-04
| |
* | avcodec: add emuedge_linesize_typeMichael Niedermayer2013-09-04
| | | | | | | | | | | | | | | | | | | | Currently all uses of the emu edge code as well as the code itself assume int linesize changing some but not changing all would introduce a security issue once all use this typedef a simple search and replace can be done to switch them all to ptrdiff_t Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'af11fa5409cc72fc45ca7f3527400beca10967b9'Michael Niedermayer2013-09-04
|\| | | | | | | | | | | | | | | | | | | | | * commit 'af11fa5409cc72fc45ca7f3527400beca10967b9': mjpegb: Detect changing number of planes in interlaced video Conflicts: libavcodec/mjpegdec.c See: ecc31630f9a16ead4272a078c281afcb4db87f21 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mjpegb: Detect changing number of planes in interlaced videoMichael Niedermayer2013-09-03
| | | | | | | | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '35cbc98b720db95b923cb2d745f77bb2ee4363dc'Michael Niedermayer2013-09-04
|\| | | | | | | | | | | | | | | | | | | | | * commit '35cbc98b720db95b923cb2d745f77bb2ee4363dc': alac: Check that the channels fit at the given offset Conflicts: libavcodec/alac.c See: b53f89710b03c4c832bb03e4e132b1ace17fb4e4 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * alac: Check that the channels fit at the given offsetMartin Storsjö2013-09-03
| | | | | | | | | | | | | | | | | | | | | | | | | | The code tries to decode a number of channels at the offset given by the ff_alac_channel_layout_offsets table. Even if the number of channels decoded so far doesn't exceed the total number of channels, we need to check that we actually can decode that number of channels at this offset as well. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'f7c5883126f9440547933eefcf000aa78af4821c'Michael Niedermayer2013-09-04
|\| | | | | | | | | | | | | | | * commit 'f7c5883126f9440547933eefcf000aa78af4821c': alac: Limit max_samples_per_frame See: 3920d1387834e2bc334aff9f518f4beb24e470bd Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * alac: Limit max_samples_per_frameMartin Storsjö2013-09-03
| | | | | | | | | | | | | | | | | | | | Otherwise buffer size calculations in allocate_buffers could overflow later, making the code think a large enough buffer actually was allocated. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'cehoyos/master'Michael Niedermayer2013-09-04
|\ \ | | | | | | | | | | | | | | | | | | * cehoyos/master: Show subtitle resolution in avcodec_string(). Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | Show subtitle resolution in avcodec_string().Carl Eugen Hoyos2013-09-04
| | |
* | | avcodec/pictordec: remove y checks, which have become redundantMichael Niedermayer2013-09-04
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/pictordec: run av_image_check_size() unconditionallyMichael Niedermayer2013-09-04
|/ / | | | | | | | | | | | | This ensures that no invalid size leaks through (This issue is hypothetical, ive no testcase) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: H265 demuxerDirk Farin2013-09-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/simple_idct: use LOCAL_ALIGNED instead of DECLARE_ALIGNEDPaul B Mahol2013-09-03
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/vcr1: simplify code drop buf variableMichael Niedermayer2013-09-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vcr1: simplify code, drop buf_sizeMichael Niedermayer2013-09-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/vcr1: return the actual number of consumed bytesMichael Niedermayer2013-09-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '7df9e693a34c84c698da60426c78140c950f95ed'Michael Niedermayer2013-09-03
|\| | | | | | | | | | | | | * commit '7df9e693a34c84c698da60426c78140c950f95ed': cosmetics: Fix ATRAC codec name spelling Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Fix ATRAC codec name spellingDiego Biurrun2013-09-02
| |
| * pictordec: pass correct context to avpriv_request_sampleAnton Khirnov2013-09-02
| | | | | | | | | | | | | | Fixes invalid reads. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* | Merge commit '5f7aecde02a95451e514c809f2794c1deba80695'Michael Niedermayer2013-09-03
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5f7aecde02a95451e514c809f2794c1deba80695': pictordec: break out of both decoding loops when y drops below 0 Conflicts: libavcodec/pictordec.c The added check is redundant. It shows the error path more clearly though See: f3f488423a12af9bb4eed6e6868cfa86ece3571b Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pictordec: break out of both decoding loops when y drops below 0Anton Khirnov2013-09-02
| | | | | | | | | | | | | | | | Otherwise picmemset can get called with negative y, resulting in an invalid write. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* | avcodec/vcr1: replace redundant checks from libav ↵Michael Niedermayer2013-09-03
| | | | | | | | | | | | (8aba7968dd604aae91ee42cbce0be3dad7dceb30) by asserts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '8aba7968dd604aae91ee42cbce0be3dad7dceb30'Michael Niedermayer2013-09-03
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '8aba7968dd604aae91ee42cbce0be3dad7dceb30': vcr1: add sanity checks Conflicts: libavcodec/vcr1.c See: 845724c82c1a732ab398c9e8cedd178f96f1626d See: 8e09482e4d27d65bbce2ce5c2f4392216011ed09 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vcr1: add sanity checksAnton Khirnov2013-09-02
| | | | | | | | | | | | | | Fixes invalid reads with corrupted files. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * pcm-dvd: Fix build on big endianMartin Storsjö2013-08-31
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | avpacket: Fixing side data copy when src == dstVignesh Venkatasubramanian2013-09-02
| | | | | | | | | | | | | | | | | | | | Fixing av_packet_copy_side_data to work correctly when source and destination are the same. This makes sure that there is no memory leak and double frees. Signed-off by: Vignesh Venkatasubramanian <vigneshv@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/pnmdec: fix unaligned readMichael Niedermayer2013-09-02
| | | | | | | | | | | | Fixes fate-lavf-pam on alpha Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/pnmdec: use a more specific pointer type than void in samplecpy()Michael Niedermayer2013-09-02
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Avoid a deadlock when decoding wma.Carl Eugen Hoyos2013-09-02
| | | | | | | | Fixes ticket #2925.
* | lavc: add teletext decoder using libzvbiMarton Balint2013-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on a patch by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>. http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2012-December/136677.html The original patch was rebased by Tudor SUCIU <tudor.suciu@gmail.com>. Lots of additional features and fixes are made by me. Fixes ticket #2086. Changes since last version: - change default page to all pages Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ffv1dec: reorganize thread init/updateMichael Niedermayer2013-09-01
| | | | | | | | | | | | | | | | | | This moves some allocations to init, reducing possible failure modes in update. Always copies from the previous context instead of just during init Fixes Ticket2923 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/ffv1dec: move initial_states init to init_thread_copy()Michael Niedermayer2013-09-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pcm-dvd: use av_freep()Paul B Mahol2013-09-01
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | pcm-dvd: remove redundant log messagePaul B Mahol2013-09-01
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/pcm-dvd: discard buffer if block size changedMichael Niedermayer2013-09-01
| | | | | | | | | | | | This prevents a potential crash Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pcm-dvd: Fix build on big endianMartin Storsjö2013-09-01
| | | | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'a42e3a6700547e4e49445bda81d3a89ec3e081a9'Michael Niedermayer2013-09-01
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'a42e3a6700547e4e49445bda81d3a89ec3e081a9': pcm_dvd: consolidate pieces from pcm.c and mpeg.c Conflicts: libavcodec/pcm.c libavcodec/version.h libavformat/mpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pcm_dvd: consolidate pieces from pcm.c and mpeg.cChristian Schmidt2013-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the header decoding for PCM audio from mpeg.c and the 20/24bit parts from pcm.c and merge them into a new decoder in pcm-dvd.c. The decoder has added support for samples that span multiple packets and modified 20/24bit group decoding. Both is needed to decode samples that have been generated with DVD-Lab Pro 2. The decoding of 16bit PCM and two channel 24bit is identical to before. No other samples are known to verify the correctness of the encoding this software does. The complete list of tested formats is 48kHz/16bit/2-8 channels 48kHz/24bit/2-5 channels 96kHz/16bit/2-4 channels 96kHz/24bit/2 channels Signed-off-by: Luca Barbato <lu_zero@gentoo.org>