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>
8 years ago
Marton Balint
f1214ad5d9
ffplay: fix indentation after last commit
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago
Marton Balint
076fc75bdb
ffplay: do not preallocate video texture
Since the uploads happen in the main display function, it does not matter much.
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Dave Yeo
7ff018c1cb
OS/2: Try to commit memory above 1GB
Signed-off-by: Dave Yeo <dave.r.yeo@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years ago
Paul B Mahol
7f9978b0bd
avformat: add MIDI Sample Dump Standard demuxer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Jonathan Campbell
d5d474aea5
avcodec/ac3dec: add consistent noise generation option.
use av_lfg_init_from_data() to seed AC-3 dithering from the AC-3 frame
data to make it consistent given the same AC-3 frame, if option is set.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Jonathan Campbell
76c5a69e26
libavutil: add av_lfg_init_from_data() function
seeds an AVLFG from binary data.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
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>
8 years ago
Mark Thompson
d40a1ae7ec
vaapi_mpeg4: Restore changes overwritten by merge
From 2aa8e33d7d
.
8 years ago
Michael Niedermayer
61164112a5
avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()
Fixes CID1396261
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
e740e9c798
avfilter/vf_palettegen: Fix leak and simplify code
Fixes CID1270818
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Paul B Mahol
d60f090dd1
avcodec/fraps: add support for PAL8
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
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>
8 years ago
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>
8 years ago
Matthieu Bouron
cf3affabb4
lavc/h264dec: re-indent after previous commit
8 years ago
Matthieu Bouron
639e262971
lavc/h264dec: make sure a slice is decoded before finishing setup
Fixes regression in fate-h264-attachment-631 with THREADS=8 introduced
by bdbbb8f11e
.
8 years ago
Paul B Mahol
8869f5efec
avformat/wavdec: enable seeking with XMA2
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
18cfcc6458
avcodec/wmaprodec: add xma_flush for seeking in XMA2
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
5d2609929d
avcodec: add XMA2 parser
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
96fe4432f5
avcodec/wmaprodec: unbreak XMA mono decoding
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
bnnm
cab0f3abc5
avcodec/atrac3: allow 6 channels (non-joint stereo)
Raises max channels to 6 (for non joint-stereo only),
there is no difference decoding 1 or N discrete channels.
Fixes trac issue #5840
Signed-off-by: bnnm <bananaman255@gmail.com>
8 years ago
Daniil Cherednik
9a619bef54
dcaenc: Use Huffman codes for Bit Allocation Index
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years ago
Timo Rothenpieler
6b0a3ee6f8
avcodec/nvenc: add logging for more error cases
8 years ago
Timo Rothenpieler
5403d90f32
avcodec/nvenc: make gpu indices independend of supported capabilities
8 years ago
Alexandra Hájková
fd8de7f2d8
dxtory: Convert to the new bitstream reader
9 years ago
Alexandra Hájková
4d49a4c550
apedec: Convert to the new bitstream reader
9 years ago
Steven Liu
1c1031003b
avformat/hlsenc: fix too many open files bug
When use http method to delete the old segments,
there is only io_open, hove not io_close yet,
this patch is used to fix it
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
8 years ago
Paul B Mahol
8a1759ad46
avcodec/exr: export writer info into frame metadata
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
546e29d1f5
avcodec/exr: make it aware of 2 additional compressions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Aleksandr Slobodeniuk
545511f57a
avcodec/avcodec: fix lil typo in comment
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
1df3d636d4
avcodec/speedhq: Fix warning about "initialization from incompatible pointer type"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Paul B Mahol
45f4bf94af
avcodec/wmaprodec: check number of channels for XMA streams
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
0fe50e56e9
avcodec/pixlet: use av_clip_uintp2_c explicitly
Found-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
a340987e37
avcodec/pixlet: use av_clip_uintp2()
Found-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
be46eb7101
avcodec/pixlet: clip chroma before shifting
Fixes artifacts.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
1daa08bd96
avcodec/wmapro: redone stream selection for XMA1/2
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Clément Bœsch
e5ac554ba7
lavc/h264: simplify find_unused_picture()
8 years ago
Anton Khirnov
b4a911c189
mpegvideoenc: make a table const
9 years ago
Anton Khirnov
296eff4d9d
zmbvenc: get rid of a global table
9 years ago
Derek Buitenhuis
00b775dda2
hevc: Mark as having threadsafe init
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years ago
Piotr Bandurski
bcfa8551a1
avformat/caf: add 'aacl' codec tag
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Tobias Rapp
c324e2c5db
ffmpeg: pass output stream duration as a hint to the muxer
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Paul B Mahol
6c43f33ac2
avcodec/wmaprodec: >2 channel support for XMA
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Steven Liu
90096e42e1
avfilter:vf_drawtext: add new line space size set parameter
add line_spacing parameter to set the space between two lines
Based on an idea by: Leandro Santiago <leandrosansilva@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
8 years ago
Steven Liu
b05d0274ce
avformat/hlsenc: fix bug of hlsenc http delete old segments
when push hls to http server, the old segemnts can not delete by hls formats.
so add the http option into hls_delete_old_segments
Reported-by: Yin Jiaoyuan <yinjiaoyuan@163.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
8 years ago
Clément Bœsch
c3050fcbdc
lavc/h264dec: remove flush goto in decode callback
8 years ago
Steven Liu
83a9cf3603
avformat/hlsenc: remove debug message used error level log
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
8 years ago
Mark Thompson
f7e9275f83
hwcontext_vdpau: Fix missing subscripts
Also remove the redundant casts which were hiding the error here.
(cherry picked from commit 7081620aca
)
8 years ago
Mark Thompson
2a4a8653b6
lavc: Remove old vaapi decode infrastructure
Deprecates struct vaapi_context and the installed header vaapi.h,
to be removed at the next version bump.
(cherry picked from commit 851960f6f8
)
8 years ago
Mark Thompson
542a65d0b3
ffmpeg_vaapi: Convert to use hw_frames_ctx only
Most of the functionality here has moved into lavc.
(cherry picked from commit 3e8651a7cc
)
9 years ago