Marvin Scholz
312c06ef52
avcodec: remove avcodec-fast support
The avcodec-fast option, if enabled, sets the AV_CODEC_FLAG2_FAST
option. Using AV_CODEC_FLAG2_FAST can cause use of unsafe code in
avcodec which could lead to crashes.
6 years ago
Steve Lhomme
8115ad9d34
core: remove the avcodec-hw variable
Now the modules only load if they are given a compatible decoder device.
This decoder device is loaded with the --dec-dev option.
7 years ago
Steve Lhomme
5363279805
remove the $Id$ in the source code
7 years ago
Francois Cartegnie
398e1b7cc5
codec: avcodec: disable rawvideo
reversed lookup can't match masks
8 years ago
Rémi Denis-Courmont
e66e6b6b03
config: remove advanced from add_module()
8 years ago
Thomas Guillem
c6e4f56957
avcodec: rename entry functions
This fixes duplicate symbols with a static build.
8 years ago
Francois Cartegnie
cb65a8a4e9
codec: avcodec: default to show-corrupted
as with 2.2,
since we still have broken frame dropping for the worse.
8 years ago
Steve Lhomme
da427d95a9
avcodec: be more explicit of what the frame skip values are
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years ago
Rémi Denis-Courmont
3b4420ccf9
decoder: use "spu decoder" capability for SPU decoders
9 years ago
Rémi Denis-Courmont
ac866164aa
decoder: use "video decoder" capability for video decoders
9 years ago
Rémi Denis-Courmont
89504cd744
decoder: use "audio decoder" capability for audio decoders
This avoids probing video or SPU decoders for audio format and vice-
versa.
9 years ago
Rémi Denis-Courmont
79eed1a3f3
avcodec: split decoder in submodules per ES type
9 years ago
Rémi Denis-Courmont
025fde2a54
avcodec: revector, no functional changes
9 years ago
Rémi Denis-Courmont
bdf4249de7
avcodec: revector, no functional changes
9 years ago
Rémi Denis-Courmont
cf8cfdafb1
avcodec: remove AVCODEC_COMMON_MEMBERS
9 years ago
Rémi Denis-Courmont
8dc541c67f
avcodec: pass explicit parameters to ffmpeg_OpenCodec()
This avoids relying on p_sys.
9 years ago
Rémi Denis-Courmont
2b8f8d1c75
avcodec: remove ffmpeg_CloseCodec()
avcodec_free_context() already takes care to close the context if it was
opened.
9 years ago
Rémi Denis-Courmont
f97ee88000
avcodec: expand context deletion code
9 years ago
Rémi Denis-Courmont
b2a5f8ed1f
avcodec: use avcodec_is_open() instead of custom flag
9 years ago
Rémi Denis-Courmont
04ee03f257
avcodec: add explicit subtitle close function
9 years ago
Rémi Denis-Courmont
c2c55f32f3
avcodec: use var_InheritString()
9 years ago
Rémi Denis-Courmont
1ec771668d
avcodec: simplify decoder codec look-up
9 years ago
Rémi Denis-Courmont
2826791f59
avcodec: search codec mapping by category
Category is now an input rather than output parameter.
9 years ago
Francois Cartegnie
967bc30bd8
codec: avcodec: add corrupted frames output option
9 years ago
Francois Cartegnie
afcdb682ba
codec/demux: output version and provider in debug
9 years ago
Hugo Beauzée-Luyssen
667c3a73b1
avcodec: vlc_av_get_options: Append to a potentially existing dict
9 years ago
Francois Cartegnie
809ee11563
codec: avcodec: adapt audio code to new API
adapting to the new API requires more than local
patches.
The block is always passed in full, and we can
expect more than a single frame when push returns
EAGAIN.
Requires then more interpolation for timestamps before
using next input packet pts.
Should also be correct when dequeing end of stream.
Implements decoder draining
10 years ago
Steve Lhomme
4919758a95
ffmpeg: only free the options if there were any
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Thomas Guillem
080f21c3be
decoder: remove b_need_packetized
When needed (fmt->b_packetized == false), create a packetizer before creating a
decoder. The fmt_in of the decoder is copied either from the fmt_out of the
packetizer, or from the fmt of CreateDecoder.
11 years ago
Jean-Baptiste Kempf
361829e7ef
Add avparser.h to prepare for submodulification
11 years ago
Ilkka Ollakka
20f32dd168
avcodec: use qscale=3 as default if videobitrate isn't provided
If user doesn't give videobitrate use some reasonable default to get ok output
from avcodec transcode (for example mpeg4 video).
12 years ago
Rémi Denis-Courmont
97ef362841
avcodec: map AV_CODEC_ID_NONE
12 years ago
Rémi Denis-Courmont
a9ac943471
avcodec: fix double free
12 years ago
Rémi Denis-Courmont
2cab85e881
avcodec: fix pointer aliasing
av_freep() requires a pointer to void *. Nothing else is defined.
12 years ago
Rémi Denis-Courmont
dcd503d803
avcodec: close acceleration back-end after the context
12 years ago
Rémi Denis-Courmont
f8fa5d7361
avcodec: free extradata after closing the context
12 years ago
Rémi Denis-Courmont
10b5fe8201
avcodec: move debug message to correct place
12 years ago
Rémi Denis-Courmont
fbd4154ef2
avcodec: use avcodec_free_context() where applicable
Fix leak on error, fix mismatched free function on success.
12 years ago
Rémi Denis-Courmont
894a06046f
avcodec: remove redundant codec_id parameter
12 years ago
Rémi Denis-Courmont
757a94aaef
avcodec: remove redundant codec name parameter
12 years ago
Rémi Denis-Courmont
e13caffb31
avcodec: constify decoder_sys_t.p_codec
12 years ago
Rémi Denis-Courmont
d1d268a31b
avcodec: remove redundant decoder_sys_t.i_cat
12 years ago
Rémi Denis-Courmont
ec7c51f4c9
avcodec: remove deprecated motion vector visualization option
12 years ago
Rémi Denis-Courmont
c9a16c71a3
avcodec: make decoder callbacks static
12 years ago
Rémi Denis-Courmont
c779bd781c
avcodec: move audio-specific code to audio.c
12 years ago
Rémi Denis-Courmont
9478802c33
avcodec: move video-specific code to video.c
12 years ago
Jean-Baptiste Kempf
e7fc1ae05d
Upgrade requirements for libavcodec and libavutil
12 years ago
Rémi Denis-Courmont
84b23f9606
transcode: disable hardware decoding by default
It can still be enabled manually in the preferences as in previous
versions. Only it will not be used with the default ("auto") setting.
12 years ago
Rémi Denis-Courmont
8512cab6af
avcodec: remove the VLC DSP mask (except on Android on ARM)
libavutil will always check for all CPU features that it understands,
even those VLC masked. Thus masking features provides no savings.
libavutil runs more tests than VLC. Depending on the platform and
operating system combination, libavutil is either as conservative or
more conservative than VLC. As such masking features provides no extra
safety.
So overall, GetVlcDspMask() is useless, at least nowadays.
Android ARM NEON seems controversial so it is kept for now.
12 years ago
Rémi Denis-Courmont
cac559118e
avutil: vector and serialize CPU flags initialization
av_set_cpu_flags_mask() is not thread-safe. So are the first call to
av_get_cpu_flags() after loading libavutil, and the first call to
av_get_cpu_flags() after a call to av_set_cpu_flags_mask(). So call
those under the avcodec lock during initialization.
12 years ago