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
2016-01-15avfilter: add ahistogram multimedia filterPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-15x86/intmath: add missing early clobber to output operandsJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2016-01-15avcodec/x86/fmtconvert: Add emms to int32_to_float_fmul_array8_sse()Michael Niedermayer
this should fix checkasm on x86_64-archlinux-gcc-valgrind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15avfilter/vaf_spectrumsynth: Fix mixed declaration and statmentMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15avformat/hls: Even stricter URL checksMichael Niedermayer
This fixes a null pointer dereference at least Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15avformat/hls: More strict url checksMichael Niedermayer
No case is known where these are needed Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15avcodec/rmdec: add missing av_log argumentJames Almer
Also change the format specifier to expect an unsigned int Signed-off-by: James Almer <jamrial@gmail.com>
2016-01-15lavf/mov: Confine 0x00000000 to raw/twos fourcc mapping to version 0 sample ↵Mats Peterson
descriptions Confine the 0x00000000 to 'raw '/'twos' fourcc mapping to old version 0 sound sample descriptions, since they are the only valid sample descriptions for this type of mapping. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15avcodec/pngenc: Fix mixed up linesizesMichael Niedermayer
Fixes out of array accesses Fixes: 0cf176e6d3ab9fe924f39738e513f547/asan_generic_4a54aa_3431_aaa28be1cb32e307a9890cad06f84fba.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15avcodec/pngenc: Replace memcpy by av_image_copy()Michael Niedermayer
Fixes out of array access Fixes: 0cf176e6d3ab9fe924f39738e513f547/asan_generic_4a54aa_3431_aaa28be1cb32e307a9890cad06f84fba.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15asfdec_o: check for too small size in asf_read_unknownAndreas Cadhalpun
This fixes infinite loops due to seeking back. Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-15asfdec_o: break if EOF is reached after asf_read_packet_headerAndreas Cadhalpun
asf_read_payload can unset eof_reached, so check it also before calling that function. This fixes infinite loops. Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-15asfdec_o: make sure packet_size is non-zero before seekingAndreas Cadhalpun
This fixes infinite loops due to seeking back. Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-15asfdec_o: prevent overflow causing seekbackAndreas Cadhalpun
This fixes infinite loops. Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-15asfdec_o: check avio_skip in asf_read_simple_indexAndreas Cadhalpun
The loop can be very long, even though the file is very short. Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-15asfdec_o: reject size > INT64_MAX in asf_read_unknownAndreas Cadhalpun
Both avio_skip and detect_unknown_subobject use int64_t for the size parameter. This fixes a segmentation fault due to infinite recursion. Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-15asfdec_o: only set asf_pkt->data_size after sanity checksAndreas Cadhalpun
Otherwise invalid values are used unchecked in the next run. This can cause NULL pointer dereferencing. Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-15lavu: prevent overflow in av_clip_intp2_cAndreas Cadhalpun
This fixes ubsan runtime error: signed integer overflow: 8388608 + 2140274688 cannot be represented in type 'int' Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-15lavc/aacenc: use isfinite to simplify isnan/isinf logicGanesh Ajjanagadde
Reviewed-by: Claudio Freire <klaussfreire@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2016-01-15avformat/rmdec: Fix Packet memleak at close()Michael Niedermayer
Fixes: asan_heap-oob_445b39_1741_d00eb645ab48eb2203b4a04a5b997103.ivr Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15avformat/rmdec: Check size in ivr_read_packet() before useMichael Niedermayer
Fixes out of array access Fixes: asan_heap-oob_445b39_1741_d00eb645ab48eb2203b4a04a5b997103.ivr Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15swscale/vscale: Use matching sliceY/chrSliceY for luma/chromaMichael Niedermayer
No case known where that makes a difference Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-15lavc/ccaption_dec: clear all unused rows during rollupAman Gupta
Sometimes rollup captions can move around the screen. This fixes "ghost" captions from below the current rollup area from continuing to be captured when a rollup moves higher up on the screen.
2016-01-15lavc/ccaption_dec: clean up whitespaceAman Gupta
2016-01-15fate: add test for realtime ccaption decoderAman Gupta
2016-01-15lavc/ccaption_dec: implement real_time optionAman Gupta
This new mode is useful for realtime decoding of closed captions so they can be display along with mpeg2 frames. Closed caption streams contain two major types of captions: - POPON captions, which are buffered off-screen and displayed only after EOC (end of caption, aka display buffer) - PAINTON/ROLLUP captions, which are written to the display as soon as they arrive. In a typical real-time eia608 decoder, commands like EOC (end of caption; display buffer), EDM (erase display memory) and EBM (erase buffered memory) perform their expected functions as soon as the commands are processed. This is implemented in the real_time branches added in this commit. Before this commit, and in the !real_time branches after this commit, the decoder cleverly implements its own version of the decoder which is specifically geared towards buffered decoding. It does so by actively ignoring commands like EBM (erase buffered memory), and then re-using the non-display buffer to hold the previous caption while the new one is received. This is the opposite of the real-time decoder, which uses the non-display buffer to hold the new caption while the display buffer is still showing the current caption. In addition to ignoring EBM, the buffered decoder also has custom implementations for EDM and EOC. An EDM (erase display memory) command flushes the existing contents before clearing the screen, and EOC similarly always flushes the active buffer (the previous subtitle) before flipping buffers.
2016-01-15avfilter/vf_fftfilt: this is video filter so use pixels instead of samplesPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-15avfilter/vf_fftfilt: use the name 's' for the pointer to the private contextPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-15lavc/ccaption_dec: flush context on seekAman Gupta
2016-01-14swscale/vscale: Check that 2 tap filters are bilinear before using bilinear codeMichael Niedermayer
Fixes: out of array reads Fixes: 07e8b9c5d348ccdf7add0f37de20cf6c/asan_heap-oob_27e8df7_6849_e56653f768070ec8cb52f587048444c2.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14swscale/output: Assert that yalpha and uvalpha are within their expected rangeMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14swscale/vscale: Add fixme comment to "ugly" codeMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14swscale/slice: Fix indentionMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14swscale/slice: Fix doc typoMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14swscale: Move Contexts used only in hscale.c into itMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14swscale: Move VScalerContext into vscale.cMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14avfilter: add spectrumsynth filterPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-14swscale/utils: Detect and skip unneeded sws_setColorspaceDetails() callsMichael Niedermayer
This avoids running various table inits unnecessarily Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14swscale/yuv2rgb: Increase YUV2RGB table headroomMichael Niedermayer
This makes SWS more robust Fixes: 07650a772d98aa63b0fed6370dc89037/asan_heap-oob_27ddeaf_2657_2c81ff264dee5d9712cb3251fb9c3bbb.264 Fixes: out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14swscale/yuv2rgb: Factor YUVRGB_TABLE_LUMA_HEADROOM outMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14avfilter/af_dynaudnorm: fix possible null pointer dereferencePaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-01-14avcodec/aacenc_is: replace pow(x, 0.75) by x/sqrtf(sqrtf(x))Claudio Freire
This is quite an accurate approximation; testing shows ~ 2ulp error in the floating point result. Tested with FATE. Alternatively, if one wants "full accuracy", one can use powf, or sqrt instead of sqrtf. With powf, one gets 1 ulp error (theoretically should be 0, as 0.75 is exactly representable) on GNU libm, with sqrt, 0 ulp error. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Abstracted into pos_pow34 utility function Signed-off-by: Claudio Freire <klaussfreire@gmail.com>
2016-01-14lavu/libm: add isfinite fallbackGanesh Ajjanagadde
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2016-01-14dca: fix misaligned access in avpriv_dca_convert_bitstreamAndreas Cadhalpun
src and dst are only 8-bit-aligned, so accessing them as uint16_t causes SIGBUS crashes on architectures like sparc. This fixes ubsan runtime error: load of misaligned address for type 'const uint16_t', which requires 2 byte alignment Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-01-14avformat/hls: forbid all protocols except http(s) & fileMaxim Andreev
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14avcodec/aacenc: Check for +-Inf tooMichael Niedermayer
Fixes out of array read Fixes: 04442da73d935b776d2236282588d4f9/signal_sigsegv_2625a69_8790_ae85ffc889070663319b3417ede777b0.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-14avcodec/wavpackenc: print channel count in av_log callJames Almer
Fixes a warning with -Wformat-extra-args
2016-01-13avcodec/diracdec: Handle the 0 vlc case at the top of coeff_unpack_golomb()Michael Niedermayer
decoding changes from 17 to 20 fps Reviewed-by; Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-13avcodec/diracdec: Factor +2 out of the inner loopMichael Niedermayer
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-01-13avcodec/diracdec: Inline svq3_get_ue_golomb() and merge the sign bit ↵Michael Niedermayer
decoding into it This avoids closing and opening the bit reader Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>