nu774
e0686318dd
avformat/vapoursynth: properly initialize err variable in read_header_vs()
...
The variable "err" is not initialized, and set only when something went wrong.
When everything is OK, nobody sets it, so using it result in UB.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Jun Zhao
4fd6df6934
doc/encoders: Update docs for libxavs2
...
Update standard libavcodec options for libxavs2
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
6 years ago
Jun Zhao
796da4f3e0
lavc/libxavs2: Cosmetics: Fix indentation for switch statement
...
Cosmetics: Fix indentation for switch statement like the Linux
kerenl style.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
6 years ago
Jun Zhao
807b57a31b
lavc/libdavs2: Cosmetics: Fix indentation for switch statement
...
Cosmetics: Fix indentation for switch statement like the Linux
kerenl style.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
6 years ago
Gyan Doshi
1087b792c3
doc/ffmpeg: clarify behaviour of -discard
...
Discarding all frames is universally supported as it happens in fftools
whereas selective discarding relies on the demuxer.
6 years ago
Gyan Doshi
d7ef10f16d
doc/ffmpeg: update entry for stream disable options
...
-vn/-an/-sn/-dn can now be used to block input streams from a file.
6 years ago
Steven Liu
b9523f2fd3
avformat/hlsenc: free variant streams after write all variant streams info
...
fix ticket: 7631
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
6 years ago
Steven Liu
eb81fd792f
avcodec/fft_template: improve performance of the ff_fft_init in fft_template
...
Before patch:
init nbits = 17, get 10000 samples, average cost: 16175 us
After patch:
init nbits = 17, get 10000 samples, average cost: 14989 us
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
6 years ago
Steven Liu
2780cd33d9
fate: add tests/fate/hlsenc.mak for hls FATE
...
init add three test examples:
1. check no endlist at the end
2. check endlist at the end
3. check hls_list_size 0 full list
Tested-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
6 years ago
James Almer
ef67af31ff
x86/af_afir: use three operand form forat some instructions
...
Fixes compilation with old yasm versions.
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
Manoj Gupta
6fcf813110
libavcodec: Remove dynamic relocs from aarch64/h264idct_neon.S
...
Some of the assembly functions e.g. ff_h264_idct_dc_add_neon
has code like:
movrel x14, X(ff_h264_idct_add_neon)
Linker cannot resolve them fully at link time and emits dynamic
relocations.
Use explicit labels instead so that no dynamic relocations are
needed at all.
This avoids lld complains about text relocations.
For background, see https://crbug.com/917919
Signed-off-by: Manoj Gupta <manojgupta@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Oliver Collyer
bf96937a96
avdevice/dshow: Fixed some minor memory leaks
...
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
5402c1886b
x86/af_afir: add ff_fcmul_add_avx()
...
fcmul_add_c: 1228.8
fcmul_add_sse3: 334.3
fcmul_add_avx: 186.3
Tested on a Core i5 4460 @ 3.2GHz
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
ba89dc27b5
checkasm: add an af_afir test
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
82043dfd2e
avfilter/af_afir: split off fcmul_add into a DSP context
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
9b5bd665e1
x86/af_afir: fix processing the last element
...
ff_fcmul_add_sse3() is now identical to the C version.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
Gyan Doshi
3ba5eef2c7
ffmpeg: allow disabling streams by type for inputs
...
-vn/-an/-sn/-dn now works for input. Streams are still registered in
input_streams but they can't be automatically selected or mapped or
filtered.
6 years ago
Gyan Doshi
54109b1d14
ffmpeg: skip disabled streams
...
Fully discarded streams can't be selected for output or mapped or filtered.
Previously, a few packets from such streams, probably buffered for
stream probing, would get smuggled into output files.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Derek Buitenhuis
8f585c3c55
mov: Remove duration-of-last-frame heuristic hack
...
This breaks totally valid files that get caught in its heuristic.
This, according to the commit message, is my own doing, having asked
Michael to implement this check and providing a sample that was
"wrong". I am now atoning for my sins, and removing this hack, having
seen the light (aka that this was silly to do in the first place).
Resotores correct behavior on valid files.
This reverts commit 8e5e84c2a2
.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years ago
Paul B Mahol
37af319086
avformat/anm: use ff_get_extradata()
6 years ago
Paul B Mahol
e8d36ba477
avformat/yop: use ff_get_extradata()
6 years ago
Paul B Mahol
1139887ace
avformat/acm: use ff_get_extradata()
6 years ago
Paul B Mahol
25c7aa9974
aformat/bfi: use ff_get_extradata()
6 years ago
Paul B Mahol
af5b6b45b4
avfilter/vf_detelecine: fix obvious frame memory leaks
6 years ago
Michael Niedermayer
1dcb5b7dca
avcodec/bfi: Provide non NULL context to av_log()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
b89fc3d01b
avcodec/bink: Provide non NULL context to av_log()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
9446c5887f
avcodec/mss2: Provide non NULL context to av_log()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
052ad4d255
avcodec/imc: Provide non NULL context to av_log()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
33d1fb0627
avcodec/aacdec_fixed: Provide context to av_log()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
044be48fae
avcodec/acelp_pitch_delay: Minor simplification by using ff_exp10()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
1b6695354d
avfilter/af_biquads: minor simplification by using ff_exp10()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
5785e0e9c4
avfilter/af_crossfeed: Use ff_exp10()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
796807022c
avfilter/ebur128: Simplify by using log10()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
47c3a10b16
avfilter/vf_tonemap_opencl: Make static tables const
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
b33de55747
doc/indevs: fix upto typo
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
3ee3235839
avcodec/eacmv: Return more specific error codes and forward error codes
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
eb49d259f4
avcodec/eatqi: Return more specific error code from tqi_decode_mb()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
8b1099c288
avcodec/dcaenc: Return specific error code from subband_bufer_alloc()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
0505b35a38
avcodec/dct: Propagate error code from ff_rdft_init()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
bb2d8708f7
avcodec/binkaudio: Use assert instead of return for use of compile time disabled codecs
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
2d9fe6321e
avcodec/adpcm: use assert for codec id instead or error return
...
A unsupported codec_id is a internal error and should not happen
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
5079eca22a
avcodec/alac: Avoid unspecific error codes and forward error codes
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
8e1b5ba538
libavcodec/ac3dec.c: Avoid unspecific -1 error code
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
c6db2e97dc
avcodec/ac3enc: Use specific error code in validate_float_option()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
34f942c6c4
avcodec/assenc: Return more specific error codes for ass_encode_frame()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
6747a63397
avcodec/asvenc: Replace bitstream space check by assert
...
This should never be untrue, if it is, thats a bug
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
9520d51e21
avcodec/avpacket: Avoid unspecific return -1 for av_grow_packet()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
057328b29d
avcodec/bitstream: Return specific error codes when building vlc tables
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
5d9a69167c
avcodec/aacps: Return more specific error codes.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
fe17f9b956
swscale/yuv2rgb: Return a more specific error code from ff_yuv2rgb_c_init_tables()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago