Clément Bœsch
cd4d6cba12
lavf: fix usages of av_get_codec_tag_string()
8 years ago
Andreas Cadhalpun
ee5f0f1d35
rsd: limit number of channels
...
Negative values don't make sense and too large values can cause
overflows. For AV_CODEC_ID_ADPCM_THP this leads to a too small extradata
buffer being allocated, causing out-of-bounds writes.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Paul B Mahol
323b8c95e4
avformat: add AVFormatContext to ff_get_extradata()
...
Needed for av_log() inside that function.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
b885d9ced5
avformat/rsd: implement seeking
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
James Almer
183827e689
avformat/rsd: reindent after the last commit
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
01c63e69f1
avformat/rsd: GADP files are adpcm_thp_le
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
2905c51204
avformat/rsd: XMA2 is actually stored, not XMA1
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
0cfd4a993f
avformat/rsd: add XMA support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
bb1d3f1078
avformat/rsd: add VAG support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
92a26261d1
avformat/rsd: Check av_new_packet() return value
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
8297f560cc
avformat/rsd: propagate return values of extradata helper functions
...
They can return errors other than ENOMEM
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
3a63890154
avformat/rsd: add WADP support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
a99226133e
avformat/rsd: support XADP tag
...
It appears that Xbox ADPCM is same as WAV adpcm.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Clément Bœsch
edbbb11488
avformat/rsd: make tag_buf string larger
...
av_get_codec_tag_string() uses more that 1 char for unprintable characters.
10 years ago
James Almer
d34ec64a22
replace calls to url_feof() with avio_feof()
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
2e2cab6e4f
avformat/rsd: use ff_get_extradata()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
eb96802355
avformat/rsd: increase the score for odd samplerate/channels to max/8
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
7b7697646b
avformat/rsd: increase probe score, as misdetections are fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
50a3c4c5d2
avformat/rsd: Check channels and sample_rate fields
...
Fixes probetest failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Paul B Mahol
a807c68253
avformat: use ff_alloc_extradata()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
James Almer
67fad0d221
ADPCM IMA Radical decoder
...
Signed-off-by: James Almer <jamrial@gmail.com>
12 years ago
James Almer
d3710c51d9
RSD demuxer
...
Signed-off-by: James Almer <jamrial@gmail.com>
12 years ago