Michael Niedermayer
61f70416f8
avcodec/dca_lbr: Fix off by 1 error in freq check
...
Fixes out of array read
Fixes: 510/clusterfuzz-testcase-5737865715646464
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-02 15:48:50 +01:00
Michael Niedermayer
0126cd95cc
avcodec/ituh263dec: Correct timestamp recovery for B frames
...
Improves u263_b-frames_5.avi
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-01 22:01:34 +01:00
Michael Niedermayer
4f651c723b
avcodec/h263: Remove disabled and wrong code from ff_h263_loop_filter()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-01 19:09:27 +01:00
Michael Niedermayer
901c625494
avcodec/ituh263dec: Use correct error codes in ff_h263_decode_mb()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-01 19:09:27 +01:00
Michael Niedermayer
e00c516d1e
avcodec/ituh263dec: Correct indention
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-01 19:09:27 +01:00
Michael Niedermayer
b28ae1e09b
avcodec/ituh263dec: Implement B frame support with UMV
...
Fixes: u263_b-frames_1.avi
Fixes part of Ticket1536
return -1 is used here as it is used in similar code in this function, I intend
to replace it by proper error codes in the whole function.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-01 17:35:54 +01:00
Michael Niedermayer
536ac72f46
Revert "Merge commit '0a39c9ac0bfd7345fe676b4e2707d9cec3cbb553'"
...
The assumption this is based on is wrong, the code is not always run with bitexact flags
This reverts commit a956164e1e , reversing
changes made to f6005907fd .
Approved-by: James Almer <jamrial@gmail.com >
2017-02-01 02:01:07 +01:00
Michael Niedermayer
3782656631
avcodec/mjpegdec: Check for for the bitstream end in 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-02-01 01:36:50 +01:00
Michael Niedermayer
8bdba1092f
tools/target_dec_fuzzer: Only audio uses the return value to decode packets in pieces, correct the code to match that
...
Fixes: Timeout
Fixes: 483/fuzz-0-ffmpeg_VIDEO_AV_CODEC_ID_H263I_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-31 23:43:41 +01:00
Michael Niedermayer
4818840809
MAINTAINERS: Add myself for boadec.c
...
It seems ive written this thing though i cannot really remember
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-31 18:41:49 +01:00
Michael Niedermayer
06c143e505
avformat/mov: Fix integer truncation in mov_read_uuid()
...
Fixes Ticket6102
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-30 23:19:01 +01:00
Michael Niedermayer
bbd4d92304
doc/examples/decoder_targeted: Disable error concealment after 20 frames
...
This allows testing EC and non EC. Avoids spending most time in EC on
high res samples and reduces the likelyhood of hitting timeouts
Fixes: Timeout in 467/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_H263_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-29 16:09:55 +01:00
Michael Niedermayer
6294247730
avfilter/vf_gblur: Increase supported pixel count from 31bit to 32bit in filter_postscale()
...
Fixes CID1396252
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-27 22:16:37 +01:00
Michael Niedermayer
f28299da8d
avcodec/h264dec: Clear ref_count on slice header processing failure
...
Fixes using freed memory
Introduced in 7448019890
Fixes: 471/fuzz-1-ffmpeg_VIDEO_AV_CODEC_ID_H264_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-27 00:52:49 +01:00
Michael Niedermayer
2080bc3371
avcodec/utils: correct align value for interplay
...
Fixes out of array access
Fixes: 452/fuzz-1-ffmpeg_VIDEO_AV_CODEC_ID_INTERPLAY_VIDEO_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-25 00:56:37 +01:00
Michael Niedermayer
9e6a242755
avcodec/vp56: Check for the bitstream end, pass error codes on
...
Fixes timeout
Fixes: 446/fuzz-3-ffmpeg_VIDEO_AV_CODEC_ID_VP6_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-24 23:01:04 +01:00
Michael Niedermayer
755933cb5c
avcodec/mjpegdec: Check remaining bitstream in ljpeg_decode_yuv_scan()
...
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-24 17:50:03 +01:00
Michael Niedermayer
25f4f08ba5
avcodec/h264dec: Fix regression with "make fate-h264-attachment-631 THREADS=8"
...
This treats the case of no slices like no frames which it basically is.
The field is added to the context as other nal related fields are also there
and passing the has_slices field per *arguments is ugly and not consistent
Found-by: ubitux
Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-24 12:13:59 +01:00
Michael Niedermayer
e371f031b9
avcodec/pngdec: Fix off by 1 size in decode_zbuf()
...
Fixes out of array access
Fixes: 444/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_PNG_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-23 01:43:35 +01:00
Michael Niedermayer
a0341b4d74
avcodec/error_resilience: update indention after last commit
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-22 21:43:06 +01:00
Michael Niedermayer
d9d9fd9446
avcodec/error_resilience: Optimize motion recovery code by using blcok lists
...
This makes the code 7 times faster with the testcase from libfuzzer
and should reduce the amount of timeouts we hit in automated fuzzing.
(for example 438/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_RV40_fuzzer)
The code is also faster with more realistic input though the difference
is small here as that is far from the worst cases the fuzzers pick out
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-22 21:39:43 +01:00
Michael Niedermayer
0a5add45c7
avfilter/af_hdcd: Fix leak of memory allocated by ff_make_format_list()
...
Fixes CID1396265
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-22 02:28:53 +01:00
Michael Niedermayer
61164112a5
avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()
...
Fixes CID1396261
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-21 23:07:02 +01:00
Michael Niedermayer
e740e9c798
avfilter/vf_palettegen: Fix leak and simplify code
...
Fixes CID1270818
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-21 22:40:14 +01:00
Michael Niedermayer
cde007dcd3
avcodec: Add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM to most h263 based codecs
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-21 02:30:38 +01:00
Michael Niedermayer
5f2b360fc0
avfilter/avfiltergraph: Add assert to write down in machine readable form what is assumed about sample rates in swap_samplerates_on_filter()
...
Fixes CID1397292
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-21 01:35:52 +01:00
Michael Niedermayer
1df3d636d4
avcodec/speedhq: Fix warning about "initialization from incompatible pointer type"
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-19 19:49:55 +01:00
Michael Niedermayer
b05d8e7184
libavformat/mpegtsenc: support hevc with missing in stream headers like h.264
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-17 20:36:34 +01:00
Michael Niedermayer
f48b6b8b91
avcodec/tiff: Perform multiply in tiff_unpack_lzma() as 64bit
...
This should make no difference as the value should not be able to be that large
but its more correct this way
Fixes CID1348138
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-10 00:55:15 +01:00
Michael Niedermayer
762bf6f4af
avcodec/bsf: Fix av_bsf_list_free()
...
Negate null check
Fixes CID1396248
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-08 15:26:01 +01:00
Michael Niedermayer
bd83c295fc
avcodec/omx: Do not pass negative value into av_malloc()
...
Fixes CID1396849
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-08 15:25:14 +01:00
Michael Niedermayer
bc6b53ae99
avfilter/asrc_flite: Fix textbuf leak
...
Fixes CID1244189
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-06 16:26:05 +01:00
Michael Niedermayer
7ca2a23aaa
avcodec/bitstream: Document the values supported for *_size in ff_init_vlc_sparse()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-05 12:08:24 +01:00
Michael Niedermayer
8f1d18a91b
avcodec/bitstream: assert that *_size in ff_init_vlc_sparse() is valid
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-05 12:08:23 +01:00
Michael Niedermayer
4221c68edb
avformat/flvenc: Check for extradata allocation failure
...
Fixes CID1396539
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-03 03:25:25 +01:00
Michael Niedermayer
aa95292043
avcodec/x86/vc1dsp_mc: Fix build with NASM 2.09.10
...
make fate passes
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-02 22:37:55 +01:00
Michael Niedermayer
3d8a8fd27e
avfilter/vf_pad: Fix segfault if reconfiguration fails
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-02 18:42:31 +01:00
Michael Niedermayer
68cdeb06de
avcodec/tests/fft: Fix indention of dct_init()
...
Fixes CID1396253
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-01-01 23:04:31 +01:00
Michael Niedermayer
7525517593
libavutil/random_seed: Ensure that get_generic_seed() spends at least 1/32 sec gathering entropy
...
This may fix the failures on windows
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-31 17:20:06 +01:00
Michael Niedermayer
af7a75cb51
configure: Check build with some header not just preprocessing for testing --std=c11
...
Fixes build failure on FreeBSD with gcc 4.7
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-31 13:11:37 +01:00
Michael Niedermayer
25d9643f11
avcodec/mjpegdec: Check for rgb before flipping
...
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-12-31 03:21:05 +01:00
Michael Niedermayer
ffc3337e0b
avfilter/vf_pad: Add eval=frame support
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-30 02:29:19 +01:00
Michael Niedermayer
a830ab3f3b
ffmpeg: remove stop_encoding variable and related code, it is dead / unused code
...
Fixes: CID1396243
Reviewed-by: compn <tempn@mi.rr.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-28 19:19:15 +01:00
Michael Niedermayer
b347ca9341
avformat/matroskadec: Fix OOM on long streams
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-27 02:48:19 +01:00
Michael Niedermayer
11103a493d
ffmpeg: Check avcodec_parameters_to_context() for failure
...
Fixes CID1396241
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-26 20:45:23 +01:00
Michael Niedermayer
89d4d7d759
doc/examples/http_multiclient: Fix resource leak
...
Fixes CID1396269
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-26 18:29:00 +01:00
Michael Niedermayer
6e26b6e43f
avcodec/error_resilience: Move variable initialization down, remove unneeded inits
...
This makes the code faster and easier to read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-25 22:58:52 +01:00
Michael Niedermayer
d5ecffbac6
avcodec/error_resilience: Merge surrounding status checks
...
Simplifies code and is also faster
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-25 21:04:32 +01:00
Michael Niedermayer
cafc72bd7b
avcodec/error_resilience: Factor block parity check out
...
This makes the code noticably faster when there are lots of blocks
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-25 21:04:32 +01:00
Michael Niedermayer
c4152fc42e
avutil/random_seed: Reduce the time needed on systems with very low precission clock()
...
This should fix issues on BSD
CLOCKS_PER_SEC is 128 on BSD while SUSv2 requires it to be a million
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-24 14:46:25 +01:00
Michael Niedermayer
87f6f15460
tools/zmqsend: Do not truncate fgetc() return
...
Fixes CID1396836
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-24 14:46:25 +01:00
Michael Niedermayer
03ce71e4a1
swscale/swscale: Fix dereference of stride array before null check
...
Fixes: CID1396263
Fixes: CID1396271
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-23 21:47:47 +01:00
Michael Niedermayer
c193132ce5
avutil/tests/random_seed: eliminate goto
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-23 21:47:26 +01:00
Michael Niedermayer
f9315ea984
ffserver_config: Check for failure to allocate FFServerIPAddressACL
...
Fixes CID1396537
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-22 19:23:08 +01:00
Michael Niedermayer
da73d95bad
avutil/random_seed: Improve get_generic_seed() with higher precission clock()
...
Tested-by: Thomas Turner <thomastdt@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-22 12:40:48 +01:00
Michael Niedermayer
9b9e4a71c5
avformat/mpegenc: Check for av_mallocz() failure
...
Fixes CID1257787
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-21 23:41:49 +01:00
Michael Niedermayer
fd1fcb59dc
avformat/img2dec: Remove dead code from psd_probe()
...
Fixes CID1397124
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-21 22:40:14 +01:00
Michael Niedermayer
54931fd0fb
avutil/random_seed: Use uint64 instead of uint8 for struct to avoid potential alignment issues
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-21 03:37:54 +01:00
Michael Niedermayer
99af260d0b
doc/examples/decoder_targeted: Limit max pixels for fuzzing
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-19 19:59:06 +01:00
Michael Niedermayer
d4c1cc2b87
avutil/imgutils: Clarify doxy for av_image_check_size2()
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-16 02:07:32 +01:00
Michael Niedermayer
eb7aa6bde4
avcodec/h263dec: Return the correct error code in explode mode
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-15 22:13:17 +01:00
Michael Niedermayer
c869e00f88
avcodec/smvjpegdec: return the packet size instead of 0
...
Most decoders return the amount of data used.
This is more consistent
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-15 22:12:48 +01:00
Michael Niedermayer
0888c5a242
avcodec/tdsc: return the packet size instead of 0
...
Most decoders return the amount of data used.
This is more consistent
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-15 22:12:12 +01:00
Michael Niedermayer
2eebcda10a
avcodec/screenpresso: return the packet size instead of 0
...
Most decoders return the amount of data used.
This is more consistent
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-15 22:11:26 +01:00
Michael Niedermayer
c62beba49a
avcodec/rscc: return the packet size instead of 0
...
Most decoders return the amount of data used.
This is more consistent
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-15 22:10:40 +01:00
Michael Niedermayer
457e933919
Bump for psd demuxer and decoder
...
Found-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-14 11:43:33 +01:00
Michael Niedermayer
f0bdd53871
avformat/utils: Print verbose error message if stream count exceeds max_streams
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-13 15:55:42 +01:00
Michael Niedermayer
30581c51e7
avformat/options_table: Set the default maximum number of streams to 1000
...
Fixes CVE-2016-9561, Note the security relevance of this is disputed as
running out of memory can happen with valid files
Suggested-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-13 15:55:42 +01:00
Michael Niedermayer
4cf3def805
avutil/tests/imgutils: Remove unused variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-13 00:06:53 +01:00
Michael Niedermayer
2f07830e69
avcodec: Add max_pixels options
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-10 22:24:10 +01:00
Michael Niedermayer
f542b152aa
avutil: Add av_image_check_size2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-10 22:24:10 +01:00
Michael Niedermayer
1b39a30247
fate: add av_image_check_size() test
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-10 22:24:10 +01:00
Michael Niedermayer
5b73ba9887
avcodec/mpeg12dec: Add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
...
This decreases the amount of computations and memory needed for analysing mpeg1/2 streams
the properties update is moved from code that is skiped if skip_frame is set
to code that is not skiped so the change doesnt loose that
from being executed
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-10 04:58:52 +01:00
Michael Niedermayer
65e33d8e23
swresample/resample_template: Add filter values in parallel
...
This is faster 2871 -> 2189 cycles for int16 matrixbench -> 23456hz
Fixes a integer overflow in a artificial corner case
Fixes part of 668007-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-10 02:44:21 +01:00
Michael Niedermayer
34db650784
swresample/resample_template: Reorder operations to avoid one addition
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-10 02:05:17 +01:00
Michael Niedermayer
b3928a1cc6
swresample/swresample: Check count before memcpy()
...
Fixes undefined operation
Fixes part of 668007-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-10 02:05:17 +01:00
Michael Niedermayer
8258e36385
avcodec/mpeg4videodec: Fix undefined shifts in mpeg4_decode_sprite_trajectory()
...
Fixes: part of 670190.ogg
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-09 17:44:54 +01:00
Michael Niedermayer
ee2a6f5df8
avformat/oggdec: Skip streams in duration correction that did not had their duration set.
...
Fixes: part of 670190.ogg
Fixes integer overflow
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-09 17:43:47 +01:00
Michael Niedermayer
38a7834bbb
avcodec/ffv1enc: Allocate smaller packet if the worst case size cannot be allocated
...
We are checking during encoding if there is enough space as version 4 needs that
check.
Fixes Ticket6005
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-09 01:59:40 +01:00
Michael Niedermayer
cff1c0edaa
avcodec/ffv1enc: Fix size of first slice
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-09 01:59:30 +01:00
Michael Niedermayer
1296f84495
avformat: Add max_streams option
...
This allows user apps to stop OOM due to excessive number of streams
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-08 18:25:30 +01:00
Michael Niedermayer
3ab1311aba
avcodec/golomb: Consume invalid data in get_ur_golomb_jpegls()
...
Fixes slow loops on fuzzed data
Fixes: 245/fuzz-3-ffmpeg_AUDIO_AV_CODEC_ID_FLAC_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-12-08 02:47:47 +01:00
Michael Niedermayer
c188f358aa
avcodec/wavpack: Treat the first block coding too many channels as an error
...
Fixes memleak
Fixes: 236/8aeebc9ca49b91bf71c114dcefac56c154a3a563
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-07 13:16:32 +01:00
Michael Niedermayer
7679c38b3b
tests/api/api-seek-test: check all compute_crc_of_packets() calls
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 15:42:07 +01:00
Michael Niedermayer
5952b8da0b
tests/api/api-seek-test: Silence compiler warnings about uninitialized variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 15:41:32 +01:00
Michael Niedermayer
108db37586
tests/api/api-seek-test: Fix use of uinitialized value
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 15:41:31 +01:00
Michael Niedermayer
a5d25faa3f
ffserver: Check chunk size
...
Fixes out of array access
Fixes: poc_ffserver.py
Found-by: Paul Cher <paulcher@icloud.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-05 21:30:12 +01:00
Michael Niedermayer
a5f27a9c3a
Avoid using the term "file" and prefer "url" in some docs and comments
...
This should make it less ambigous that these are URLs
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-05 21:30:12 +01:00
Michael Niedermayer
7d57ca4d9a
avformat/rtmppkt: Check for packet size mismatches
...
Fixes out of array access
Found-by: Paul Cher <paulcher@icloud.com >
Reviewed-by: Paul Cher <paulcher@icloud.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-05 21:30:12 +01:00
Michael Niedermayer
1f5630af51
avcodec/flacdec: Fix undefined shift in decode_subframe()
...
Fixes undefined behavior
Fixes: 639961-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-04 00:12:06 +01:00
Michael Niedermayer
c72fa43234
avcodec/get_bits: Fix get_sbits_long(0)
...
Fixes undefined behavior
Fixes: 640889-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 23:45:43 +01:00
Michael Niedermayer
6567c59c49
avcodec/flac: forward errors from ff_flac_parse_streaminfo()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 23:39:11 +01:00
Michael Niedermayer
020d53ebdb
avcodec/flac: Check bps in ff_flac_parse_streaminfo()
2016-12-03 23:37:27 +01:00
Michael Niedermayer
9859f54db3
avformat/ffmdec: Silence "may be used uninitialized in this function" warnings
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 19:45:31 +01:00
Michael Niedermayer
b98510de5c
avformat/ffmdec: cleanup on extradata memory allocation failure
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 19:45:31 +01:00
Michael Niedermayer
fdf588d7cf
avformat/ffmdec: Forward error code from ffm_read_header()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 19:45:31 +01:00
Michael Niedermayer
83a75bf6c3
avcodec/flacdec: Fix signed integer overflow in decode_subframe_fixed()
...
Fixes undefined behavior
Fixes: 640912-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 17:26:39 +01:00
Michael Niedermayer
acc163c6ab
avcodec/flacdsp_template: Fix undefined shift in flac_decorrelate_indep_c
...
Fixes: left shift of negative value
Fixes: 668346-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 17:25:40 +01:00
Michael Niedermayer
c143e7939f
avformat/ffmdec: remove last use of st->codec
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 17:25:40 +01:00
Michael Niedermayer
6c15618b90
ffserver: remove one avcodec_context_copy()
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 14:05:15 +01:00