summaryrefslogtreecommitdiff
path: root/libavformat/brstm.c
Commit message (Collapse)AuthorAge
* avformat: Remove unnecessary av_packet_unref()Andreas Rheinhardt2020-02-10
| | | | | | | | | Since bae8844e the packet will always be unreferenced when a demuxer returns an error, so that a lot of calls to av_packet_unref() in lots of demuxers are now redundant and can be removed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat: Forward errors where possibleAndreas Rheinhardt2019-12-12
| | | | | | | | | | It is not uncommon to find code where the caller thinks to know better what the return value should be than the callee. E.g. something like "if (av_new_packet(pkt, size) < 0) return AVERROR(ENOMEM);". This commit changes several instances of this to instead forward the actual error. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf: Constify the probe function argument.Carl Eugen Hoyos2019-03-21
| | | | | Reviewed-by: Lauri Kasanen Reviewed-by: Tomas Härdin
* Fix all -Wformat warnings raised by DJGPPClément Bœsch2017-03-29
|
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-10
| | | | | | | | | | | | | | | | * commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avformat/brstm: lower magic number, fixes decoding of some filesPaul B Mahol2016-04-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* brstm: fix missing closing braceAndreas Cadhalpun2016-01-04
| | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* brstm: also allocate b->table in read_packetAndreas Cadhalpun2016-01-04
| | | | | | | | This fixes NULL pointer dereferencing if the codec is forced to adpcm_thp even though a different one was detected. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* brstm: make sure an ADPC chunk was read for adpcm_thpAndreas Cadhalpun2016-01-04
| | | | | | | This fixes NULL pointer dereferencing. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* brstm: reject negative sample rateAndreas Cadhalpun2015-11-10
| | | | | | | A negative sample rate causes assertion failures in av_rescale_rnd. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes2015-10-27
|
* avformat/brstm: fix overflowPaul B Mahol2015-09-23
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/brstm: Remove unused variableMichael Niedermayer2015-07-12
| | | | | | Fixes "libavformat/brstm.c:128:35: warning: variable info_size set but not used" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/brstm: if the file lies about the last block's size, correct itRodger Combs2015-06-27
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavf/brstm: expose the loop point when presentRodger Combs2015-06-25
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* brstm: fix use of uninitialized variablesJames Almer2015-06-24
| | | | | | Fixes valgrind complaining about "Conditional jump or move depends on uninitialised value(s)" Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/brstm: support little-endian s16 PCMPaul B Mahol2015-06-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavf/brstm: handle a BFSTM endianness oddityRodger Combs2015-06-21
|
* lavf/brstm: add support for seekingRodger Combs2015-06-21
|
* lavf/brstm: cleanup; fix short-block demuxingRodger Combs2015-06-21
|
* lavf/brstm: move bfstm var to a localRodger Combs2015-06-21
|
* lavf/brstm: allow larger block sizesRodger Combs2015-06-20
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavf/brstm: support little-endian files (BCSTM; 3DS)Rodger Combs2015-06-20
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavf/brstm: add support for BFSTM filesRodger Combs2015-06-17
| | | | | Previous version reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* replace calls to url_feof() with avio_feof()James Almer2014-08-08
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fix various typosLou Logan2014-06-03
| | | | | Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavc & lavf: replace deprecated av_log* functionsPaul B Mahol2013-03-15
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* brstm: ask for samples for version != 1.0Michael Niedermayer2012-12-16
| | | | | | This also avoids 2 unused variable warnings. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* brstm: add missing new line to request for sample messagesPaul B Mahol2012-12-16
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* brstm: fix number of samples for the last blockJames Almer2012-12-16
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* brstm: do not return partial packetsPaul B Mahol2012-12-07
| | | | | | Such packets are useless. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* BRSTM demuxerPaul B Mahol2012-11-29
Signed-off-by: Paul B Mahol <onemda@gmail.com>