aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mpegts: prevent division by zeroAndreas Cadhalpun2016-11-271-2/+11
| | | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 1bbb18fe82fc77a10d45fa53bd2738d2c54de6c6) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* matroskadec: fix NULL pointer dereference in webm_dash_manifest_read_headerAndreas Cadhalpun2016-11-271-0/+5
| | | | | | | | | The code assumes that s->streams[0] is valid. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit ff100c9dd97d2f1f456ff38b192edf84f9744738) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mpegaudio_parser: don't return AVERROR_PATCHWELCOMEAndreas Cadhalpun2016-11-271-1/+1
| | | | | | | | | | | The API does not allow returning AVERROR codes. It triggers an assert in av_parser_parse2. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 5249706e9d2ec5ed1b07d8ffdbb8fb9104261f6d) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mxfdec: fix NULL pointer dereferenceAndreas Cadhalpun2016-11-271-1/+1
| | | | | | | | | Metadata streams have priv_data set to NULL. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 0efb6106118c17308b3fdc3190f5e5bf84b01d5c) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lzf: update pointer p after reallocAndreas Cadhalpun2016-11-271-0/+2
| | | | | | | | | This fixes heap-use-after-free detected by AddressSanitizer. Reviewed-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit bb6a7b6f75ac544c956e3eefee297700ef4d3468) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* diracdec: check return code of get_buffer_with_edgeAndreas Cadhalpun2016-11-271-1/+3
| | | | | | | | | If it fails, buffers aren't allocated, causing NULL pointer dereferencing. Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit db79dedb1ae5dd38432eee3f09155e26f3f2d95a) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* ppc: pixblockdsp: do unaligned block accesses correctly againAndreas Cadhalpun2016-11-271-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | This was broken by the following Libav commit: 4c387c7 ppc: dsputil: do unaligned block accesses correctly The following tests fail due to this: fate-checkasm fate-vsynth1-dnxhd-2k-hr-hq fate-vsynth1-dnxhd-edge1-hr fate-vsynth1-dnxhd-edge2-hr fate-vsynth1-dnxhd-edge3-hr fate-vsynth1-dnxhd-hr-sq-mov fate-vsynth1-dnxhd-hr-hq-mov fate-vsynth2-dnxhd-2k-hr-hq fate-vsynth2-dnxhd-edge1-hr fate-vsynth2-dnxhd-edge2-hr fate-vsynth2-dnxhd-edge3-hr fate-vsynth2-dnxhd-hr-sq-mov fate-vsynth2-dnxhd-hr-hq-mov fate-vsynth3-dnxhd-2k-hr-hq fate-vsynth3-dnxhd-edge1-hr fate-vsynth3-dnxhd-edge2-hr fate-vsynth3-dnxhd-edge3-hr fate-vsynth3-dnxhd-hr-sq-mov fate-vsynth3-dnxhd-hr-hq-mov Fixes trac ticket #5508. Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 3932ccc472ad4f4d370dcfc1c2f574b0f3acb88c) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* interplayacm: increase bitstream buffer size by AV_INPUT_BUFFER_PADDING_SIZEAndreas Cadhalpun2016-11-271-1/+1
| | | | | | | | | This fixes out-of-bounds reads by the bitstream reader. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 60178e78f2fe9a7bfb9da0abc985835e2ebfd2f1) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* interplayacm: validate number of channelsAndreas Cadhalpun2016-11-271-0/+5
| | | | | | | | | | The number of channels is used as divisor in decode_frame, so it must not be zero to avoid SIGFPE crashes. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 5540d6c1343e6d1e06d6601b7d35884761711e3e) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* interplayacm: check for too large bAndreas Cadhalpun2016-11-271-0/+12
| | | | | | | | | This fixes out-of-bounds reads. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 14e4e26559697cfdea584767be4e68474a0a9c7f) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mpeg12dec: unref discarded picture from extradataAndreas Cadhalpun2016-11-271-0/+1
| | | | | | | | | | Otherwise another frame gets referenced into picture, triggering an assert (from commit 13aae8) in av_frame_ref. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit a92f8edf0c51781e152651cce2e753ad6e359eb2) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* cavsdec: unref frame before referencing againAndreas Cadhalpun2016-11-271-0/+2
| | | | | | | | | | This fixes asserts (from commit 13aae8) in av_frame_ref and av_frame_move_ref. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 1966ea012fd72abc8003e95dc3c8ad9e9f197913) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avformat: prevent triggering request_probe assert in ff_read_packetAndreas Cadhalpun2016-11-271-1/+1
| | | | | | | | | | | | | | | If probe_codec is called with pkt == NULL, it sets probe_packets to 0 and request_probe to -1. However, request_probe can change when calling s->iformat->read_packet and thus a probe_packets value of 0 doesn't guarantee a request_probe value of -1. In that case calling probe_codec again is necessary to prevent triggering the assert. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit a5b4476a602f31e451b11ca0c18bc92be130a50e) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avcodec/avpacket: fix leak on realloc in av_packet_add_side_data()James Almer2016-11-191-3/+4
| | | | | | | | | | | If realloc fails, the pointer is overwritten and the previously allocated buffer is leaked, which goes against the expected behavior of keeping the packet unchanged in case of error. Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 574929d8b6de32ae712fcca7ab09f01a3e4616be)
* doc/examples/demuxing_decoding: Drop AVFrame->pts usen3.0.4Michael Niedermayer2016-10-181-3/+2
| | | | | | | | | This code is not correct for git master Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 2bd99564540a365d5b80d9aad6c19264b15955af) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Changelog: update for recent commitsAndreas Cadhalpun2016-10-171-0/+3
| | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* libopenjpegenc: fix out-of-bounds reads when filling the edgesAndreas Cadhalpun2016-10-171-9/+9
| | | | | | | | | | | | | | The calculation of width/height should round up, not round down to prevent setting width or height to 0. Also image->comps[compno].w is unsigned (at least in openjpeg2), so the calculation could silently wrap around without the explicit cast to int. Reviewed-by: Michael Bradshaw <mjbshaw@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 56706ac0d5723cb549fec2602e798ab1bf6004cd) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* libopenjpegenc: stop reusing image data buffer for openjpeg 2Andreas Cadhalpun2016-10-171-10/+29
| | | | | | | | | | openjpeg 2 sets the data pointers of the image components to NULL, causing segfaults if the image is reused. Reviewed-by: Michael Bradshaw <mjbshaw@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 69c8505f3bf54f316e9dc8bec1c71dfa1febec63) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* configure: fix detection of libopenjpegAndreas Cadhalpun2016-10-173-8/+5
| | | | | | | | | | | | | | | Use check_lib2 to test the header together with the function. This is necessary, because '-DOPJ_STATIC' changes what the included header does. Also add '-DOPJ_STATIC' to CPPFLAGS, so that it isn't necessary to hardcode this in libavcodec/libopenjpeg{dec,enc}.c. Finally, check for non-static openjpeg 2.1, too. Reviewed-by: Michael Bradshaw <mjbshaw@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 7a65aef00d113a38e0d1a54df49eead9df6aa15c) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* Changelog: update for recent commitsMichael Niedermayer2016-10-171-0/+7
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* cmdutils: fix typosMoritz Barsnick2016-10-092-4/+4
| | | | | | | Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 3e5d27d7a7350e096eac9f8999d02bf48c3b3a69) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavfi: fix typosMoritz Barsnick2016-10-092-4/+4
| | | | | | | Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit f4e4bde1f4cff99d4ec59ed361ff9228b2050e6b) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc: fix typosMoritz Barsnick2016-10-092-2/+2
| | | | | | | Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 3305f71025289970fb34473adce5d9c65d1af016) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools: fix grammar errorMoritz Barsnick2016-10-091-1/+1
| | | | | | | Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit f71c98ee12f9a9e950b4a8fb6b1548fee91ba1f8) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffmpeg: remove unused and errorneous AVFrame timestamp checkHendrik Leppkes2016-10-071-6/+1
| | | | | | | | | Decoders have previously not used AVFrame.pts, and with the upcoming deprecation of pkt_pts (in favor of pts), this would lead to an errorneous interpration of timestamps. (cherry picked from commit 04a3577263782cd6d70722d4ae18d75fee03dbc4) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Support for MIPS cpu P6600Shivraj Patil2016-10-061-1/+5
| | | | | | | Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 6803a298f4338c19c3032d2417c6e857eb6d95be) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/mips/generic_macros_msa: rename macro variable which causes segfault ↵Shivraj Patil2016-10-061-6/+6
| | | | | | | | | for mips r6 Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c1cc13cd2a9b8d6d2810ec42454f328a1a0d5efa) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Update for 3.0.4Michael Niedermayer2016-09-283-2/+21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avidec: Check nb_streams in read_gab2_sub()Michael Niedermayer2016-09-281-0/+2
| | | | | | | | | | Fixes null pointer dereference Fixes: 1/null_point.avi Found-by: 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 2679ad4773aa356e7c3da5c68bc81f02a194617f) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avidec: Remove ancient assertMichael Niedermayer2016-09-281-1/+0
| | | | | | | | | | | | | This assert can with crafted files fail, a warning is already printed for this case. Fixes assertion failure Fixes:1/assert.avi Found-by: 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 14bac7e00d72eac687612d9b125e585011a56d4f) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avidec: Fix memleak with dv in aviMichael Niedermayer2016-09-281-0/+1
| | | | | | | Found-by: 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit b98dafe04564d5fe3e5bf5073d871dd93a4a62de) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/movtextdec.c: Avoid infinite loop on invalid data.Sasi Inguva2016-09-281-0/+4
| | | | | | Signed-off-by: Sasi Inguva <isasi@google.com> (cherry picked from commit 7e9e1b7070242a79fa6e3acd749d7fe76e39ea7b) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ansi: Check dimensionsMichael Niedermayer2016-09-281-0/+3
| | | | | | | | | Fixes: 1.avi Found-by: 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 69449da436169e7facaa6d1f3bcbc41cf6ce2754) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cavsdsp: use av_clip_uint8() for idctMichael Niedermayer2016-09-281-9/+8
| | | | | | | | | | | Fixes out of array read Fixes: 1.swf Found-by: 连一汉 <lianyihan@360.cn> Tested-by: 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 0e318f110bcd6bb8e7de9127f2747272e60f48d7) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/movenc: Check packet in mov_write_single_packet() tooMichael Niedermayer2016-09-281-0/+4
| | | | | | | | | | Fixes assertion failure Found-by: durandal117 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 28343139330f557e00293933a4697c7d0fc19c56) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/movenc: Factor check_pkt() outMichael Niedermayer2016-09-281-6/+18
| | | | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit deabcd2c05b2b01689d91394bbf3908da17234ed) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: fix timebase error in avformat_seek_file()Xinzheng Zhang2016-09-281-0/+1
| | | | | | | | | | When there is only one stream and stream_index has not specified, The ts has been transferd by the timebase of stream0 without modifying the stream_index In this condation it cause seek failure. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit ecc04b4f2f29ac676e6c1d1ebf20ec45f5385f1e) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/g726: Add missing ADDB output maskMichael Niedermayer2016-09-281-1/+1
| | | | | | | | | | Fixes: 1.poc Fixes out of array read Found-by: 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit a5af1240fce845f645440364c1335e0f8e44ee6c) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/avpacket: clear side_data_elemsMichael Niedermayer2016-09-281-2/+5
| | | | | | | | | Fixes null pointer dereference Found-by: 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 5e1bf9d8c0d2cdbbf17b06a5dfdf87a635b3203b) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/movenc: Check first DTS similar to dts differenceMichael Niedermayer2016-09-281-0/+7
| | | | | | | | | | Fixes assertion failure Fixes: b84b53855a0b74560e64c6f45f505a13/signal_sigabrt_7ffff6ae7c37_3837_ef4e243ea5b4fa8d0becf4afe9166604.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 68f4c2163ec6d4534ae1756dbcf259845f2e4d2c) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ccaption_dec: Use simple array instead of AVBufferMichael Niedermayer2016-09-281-16/+11
| | | | | | | | | | | | This is simpler and fixes an out of array read, fixing it with AVBuffers would be more complex Fixes: e00d9e6e50e5495cc93fea41147b97bb/asan_heap-oob_12dcdbb_8798_b32a97ea722dd37bb5066812cc674552.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 752e6dfa3ea97e7901870bdd9e5a51f860607240) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: Fix potential integer overflow in mov_read_keysSergey Volk2016-09-281-1/+1
| | | | | | | | | Actual allocation size is computed as (count + 1)*sizeof(meta_keys), so we need to check that (count + 1) won't cause overflow. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 347cb14b7cba7560e53f4434b419b9d8800253e7) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled: Try to fix Rgb16ToPlanarRgb16Wrapper() with slicesMichael Niedermayer2016-09-281-0/+8
| | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit e57d99dd4e0d8fe2992da0d65b563580e35ce728) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled: Fix packed_16bpc_bswap() with slicesMichael Niedermayer2016-09-281-0/+1
| | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 47bc1bdafb0950ccf128eaa491d8fd7cc0978813) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/utils: Avoid an overflow for huge negative durations.Carl Eugen Hoyos2016-09-241-1/+1
| | | | | Fixes ticket #5135. (cherry picked from commit 267da70ea8c36caaa645a3c4f1c5f0ca8bae156a)
* Changelog: updaten3.0.3Michael Niedermayer2016-09-051-0/+13
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avidec: Fix infinite loop in avi_read_nikon()Michael Niedermayer2016-09-051-2/+2
| | | | | | | | | Fixes: 360/test.poc Found-by: 连一汉 <lianyihan@360.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit e4e4a9cad7f21593d4bcb1f2404ea0d373c36c43) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: End probing if the expected codec surpasses ↵Michael Niedermayer2016-09-051-1/+4
| | | | | | | | | | AVPROBE_SCORE_STREAM_RETRY Fixes Ticket5800 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c75273310cf1becffee79bab0e2bba0b1606afb7) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/aacenc: Tighter input checksMichael Niedermayer2016-09-051-2/+2
| | | | | | | | | | Fixes occurance of NaN/Inf leading to assertion failures and out of array access Fixes: d1c38a09acc34845c6be3a127a5aacaf/signal_sigsegv_3982225_6121_d18bd5451d4245ee09408f04badd1b83.wmv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 77bf96b04710b98a52aaddb93bfd32da0d506191) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/wtvdec: Check pointer before useMichael Niedermayer2016-09-051-1/+1
| | | | | | | | | | Fixes out of array read Fixes: 049fdf78565f1ce5665df236d90f8657/asan_heap-oob_10a5a97_1026_42f9d4855547329560f385768de2f3fb.wtv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit cc5e5548df4af48674c7aef518e831b19e99f9fc) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>