summaryrefslogtreecommitdiff
path: root/libavcodec/pcm-dvd.c
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-09-13
|\ | | | | | | | | | | | | * qatar/master: pcm-dvd: Minor leftovers Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pcm-dvd: Minor leftoversChristian Schmidt2013-09-13
| | | | | | | | Drop a pointless branch in uninit and use the compact copyright.
* | Merge commit 'd9cdb7d8d6d828bb5497ea3f0fd7edd2f3f6cc30'Michael Niedermayer2013-09-13
|\| | | | | | | | | | | | | * commit 'd9cdb7d8d6d828bb5497ea3f0fd7edd2f3f6cc30': pcm-dvd: Support channel configuration changes Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pcm-dvd: Support channel configuration changesChristian Schmidt2013-09-13
| | | | | | | | | | | | | | | | | | | | The sample buffering logic does not take into account that the blocksize could change. Reset the buffer if the channel configuration changes, since if there are leftover samples, it is most likely a broken or misconcatenated stream. This could lead to negative numbers for missing_samples during decoding. Thanks to Michael Niedermeyer for pointing these out.
| * pcm-dvd: Fix build on big endianMartin Storsjö2013-08-31
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | pcm-dvd: use av_freep()Paul B Mahol2013-09-01
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | pcm-dvd: remove redundant log messagePaul B Mahol2013-09-01
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/pcm-dvd: discard buffer if block size changedMichael Niedermayer2013-09-01
| | | | | | | | | | | | This prevents a potential crash Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pcm-dvd: Fix build on big endianMartin Storsjö2013-09-01
| | | | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'a42e3a6700547e4e49445bda81d3a89ec3e081a9'Michael Niedermayer2013-09-01
|/ | | | | | | | | | | | * commit 'a42e3a6700547e4e49445bda81d3a89ec3e081a9': pcm_dvd: consolidate pieces from pcm.c and mpeg.c Conflicts: libavcodec/pcm.c libavcodec/version.h libavformat/mpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* pcm_dvd: consolidate pieces from pcm.c and mpeg.cChristian Schmidt2013-08-31
Remove the header decoding for PCM audio from mpeg.c and the 20/24bit parts from pcm.c and merge them into a new decoder in pcm-dvd.c. The decoder has added support for samples that span multiple packets and modified 20/24bit group decoding. Both is needed to decode samples that have been generated with DVD-Lab Pro 2. The decoding of 16bit PCM and two channel 24bit is identical to before. No other samples are known to verify the correctness of the encoding this software does. The complete list of tested formats is 48kHz/16bit/2-8 channels 48kHz/24bit/2-5 channels 96kHz/16bit/2-4 channels 96kHz/24bit/2 channels Signed-off-by: Luca Barbato <lu_zero@gentoo.org>