mpv/audio
wm4 6f6632b8dd ad_lavc: re-unsimplify, fix libavcodec API usage
It turns out that some code that was removed earlier was still needed.
avcodec_decode_audio4() can decode packets "partially". In that case,
you have to "slice" the packet and call the decode function again.

Codecs which need this are obscure and in low numbers. One sample that
needs it is here:

   rsync://fate-suite.ffmpeg.org/fate-suite/lossless-audio/luckynight-partial.shn

(This one decodes in rather small increments.)

The new code is much simpler than what has been removed earlier,
though. The fact that we own the packet returned by the demuxer helps
a lot.

Not sure what should happen if avcodec_decode_audio4() returns 0.
Currently, we throw away the packet in this case. We don't want to be
stuck in an endless loop (could happen if the decoder produces no
output either).
2013-07-11 19:20:41 +02:00
..
decode ad_lavc: re-unsimplify, fix libavcodec API usage 2013-07-11 19:20:41 +02:00
filter af_lavfi: add libavfilter bridge 2013-05-23 17:44:06 +02:00
out ao_jack: allow more control about channel layouts 2013-07-07 18:37:55 +02:00
audio.c audio: add channel map selection function 2013-05-12 21:24:57 +02:00
audio.h audio/filters: add af_force 2013-05-12 21:24:56 +02:00
chmap.c chmap: fix oddity due to ambiguous 6.1 ffmpeg channel layout 2013-05-13 23:55:39 +02:00
chmap.h audio/out: channel map selection 2013-05-12 21:24:57 +02:00
chmap_sel.c ao_jack: allow more control about channel layouts 2013-07-07 18:37:55 +02:00
chmap_sel.h audio: add channel map selection function 2013-05-12 21:24:57 +02:00
fmt-conversion.c audio: add double sample format 2013-05-12 21:24:57 +02:00
fmt-conversion.h ad_lavc: use fmt-conversion to map sample formats 2013-04-13 04:21:27 +02:00
format.c audio: fix af_fmt_seconds_to_bytes 2013-06-16 19:28:04 +02:00
format.h audio: fix af_fmt_seconds_to_bytes 2013-06-16 19:28:04 +02:00
mixer.c audio/out: switch to channel map 2013-05-12 21:24:54 +02:00
mixer.h mplayer: keep volume persistent, even when using --volume 2013-04-10 21:29:04 +02:00
reorder_ch.c audio: fix compilation with older libavresample versions 2013-05-13 00:39:07 +02:00
reorder_ch.h audio: fix compilation with older libavresample versions 2013-05-13 00:39:07 +02:00