Jai Menon
49b3b98b18
AVCodec : Allow delayed opening of audio codecs.
Additionally, enable delayed opening for AAC which fixes decoding
of media where we rely on decoder configuration being supplied by
the packetizer instead of the container.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
16 years ago
Jai Menon
6233041035
AVCodec : Set audio related parameters in ffmpeg_OpenCodec and use it for audio decoder initialization.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
16 years ago
Jai Menon
506f2f69a5
AVCodec : Factor decoder configuration setup code into a separate function.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
16 years ago
Rémi Duraffort
4d85871d1b
s/informations/information/
16 years ago
Laurent Aimar
cc4676bf4a
Moved out avcodec SampleFormat -> VLC formats to its own function.
16 years ago
Jean-Baptiste Kempf
ad0b21e090
Avcodec: bump required version to 52.2.0
This removes outdated code.
It isn't nice to FFmpeg programmers to allow people to keep such old versions of lavc
52.2.0 allows the Audio Channel Layout to be defined.
16 years ago
Laurent Aimar
3f9174473e
Fixed non initialized date_t in some corner case with avcodec.
16 years ago
Laurent Aimar
b89c2b2ac3
Do not realloc a block already given to ffmpeg.
It avoids a potential segfault after a silent avcodec audio API breakage.
17 years ago
Laurent Aimar
5964d90680
Fixed avcodec audio decoder after API behavior change.
It fixes at least WMAP decoding.
17 years ago
Rémi Denis-Courmont
6c9479be6c
i_nb_bytes -> i_buffer
(Yeah, some automatic variables were renamed too)
17 years ago
Rémi Denis-Courmont
38c0878998
aout_buffer_t: store length instead of end timestamp
aout_buffer_t now looks very much like a subset of block_t at the
source code level. By the way, we might want to revisit the return value
of date_Increment()...
17 years ago
Ilkka Ollakka
2186305af6
avcodec: set codec_id and codec_type in context also
it's checked to match from r19973 on libavcodec
17 years ago
Rémi Denis-Courmont
8146a7f0e8
aout_buffer_t.start_data -> aout_buffer_t.i_pts
This will be needed to replace aout_buffer_t with block_t.
We also need to replace end_date with i_length, which is a bit more
involved.
17 years ago
Jean-Baptiste Kempf
d9ddc5ae83
Typo again...
I must have done something wrong with my VIM.
17 years ago
Rémi Duraffort
c141073fcd
avcodec: use AV_VERSION_INT.
17 years ago
Jean-Baptiste Kempf
09ec87b09d
Avcodec: safeguard for people not using the latest libavcodec
17 years ago
Jean-Baptiste Kempf
5300a9e008
10l: Fix typo
17 years ago
Jean-Baptiste Kempf
40d06d44b0
WMAPro: increase the i_output_max to have a proper decoding
17 years ago
Laurent Aimar
b881303107
Used date_t instead of audio_date_t in codecs.
17 years ago
Jean-Baptiste Kempf
8674d65e90
AVcodec version needed for 1.1 is 51.48.0 so far.
17 years ago
Laurent Aimar
698c89004f
Made sure that our output buffer is large enough with TTA.
It allows playing multi-channels TTA and fixed a segfault as the decoder
does not check for sufficient space.
17 years ago
Laurent Aimar
ae61892407
Used av_malloc/free for avcodec_decode_audio2 output buffer.
It is needed to ensure valid buffer alignment.
17 years ago
Laurent Aimar
cd2f14472d
Fixed avcodec wrapper with unrecognized audio layout.
17 years ago
Laurent Aimar
cee16ae695
Replaced AOUT_FMT_*_NE/IE by by VLC_CODEC equivalents.
17 years ago
Laurent Aimar
724461bdf2
Used VLC_CODEC_* and vlc_fourcc_GetCodec when suitable.
There will be some regressions, I used automatic sed replacement with manual
checks but there was a lot to change.
It's only the first pass.
17 years ago
Laurent Aimar
60c14553e2
Fixed typo in avcodec audio.
17 years ago
Laurent Aimar
e5e22fe508
Try to fix compilation with older ffmpeg version.
17 years ago
Laurent Aimar
68dec8670a
Fixed a regression with avcodec due to 83f58a5076
17 years ago
Laurent Aimar
83f58a5076
Use audio channel layout only when supported by avcodec.
Butw ithout it, the layout of multichannels audio are probably wrong.
17 years ago
Laurent Aimar
868b85c2f2
Fixed typo in avcodec audio.
17 years ago
Laurent Aimar
96c92ae914
Try to setup avcodec audio format as soon as possible.
It will help the buggy transcode stream_out module.
17 years ago
Laurent Aimar
d9271cf680
Added support for avcodec audio channel layout.
17 years ago
Laurent Aimar
6616fd00d4
Used a better audio output frame size in avcodec depending on the codec.
17 years ago
Rémi Denis-Courmont
bf7164b792
avcodec, switcher: use the global avcodec lock
17 years ago
Laurent Aimar
4e033b0745
Support output bits per sample changes in ffmpeg ( close #2493 ).
17 years ago
Laurent Aimar
6a5e468ddc
Support delaying codec open until extradata are present (avcodec).
It fixes support for VC-1 and Theora and Vorbis in avcodec decoder.
18 years ago
Laurent Aimar
e01af7eba9
Added support for avcodec SAMPLE_FMT_*.
18 years ago
Laurent Aimar
875bcdf157
Correctly reset date after a discontinuity in audio decoder.
18 years ago
Laurent Aimar
1f8490d632
Allow up to 8 channels with ffmpeg decoder.
18 years ago
Laurent Aimar
17485fb47d
Added decoder_NewAudioBuffer/decoder_DeleteAudioBuffer helpers.
18 years ago
Rémi Denis-Courmont
e398428451
Use static mutexes
18 years ago
Laurent Aimar
f6cc8a3950
Convert stream to system timestamp after the decoder.
- This is needed for proper seek/pause/fast forward/...
- The decoder/packetizer do not need to scale packet length anymore as the
decoder thread do it.
18 years ago
Alexis Ballier
fa68d1aeab
ffmpeg: API change
Fix build with libavcodec 52: few renamings, the way to specify trellis quantization has changed. error_resilience has been renamed to error_recognition; I've left the option named ffmpeg-error-resilience since I am not sure if it is worth renaming the option here.
Signed-off-by: Derk-Jan Hartman <hartman@videolan.org>
18 years ago
Justus Piater
5f8cd3991a
Declared many static variables const
Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
18 years ago
Laurent Aimar
df7648f066
Fixed ALAC. ( close #633 )
18 years ago
Rémi Denis-Courmont
3ccefd743a
Format string fixes
18 years ago
Laurent Aimar
37402ad5d3
Check against 0 sample rate (returned by ffmpeg).
18 years ago
Rémi Duraffort
37a2578ce4
Remove unneeded msg_Err.
Fix potential segfault (check malloc return value).
18 years ago
Antoine Cellerier
f7d5f3e7ca
Move avcodec module files to modules/codec/avcodec. (The 3 shared
headers, avutil.h, chroma.h and fourcc.h are also located in that
directory.) This should be the last commit in the "Move all the old
ffmpeg modules source code files around to make it seem like you're
working while you're not".
18 years ago
Antoine Cellerier
11aac010ac
Some more seperation of the different ffmpeg based modules. They're now completely disjoint except for the common chroma.h and fourcc.h headers.
18 years ago