1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00
mpv/audio/decode
wm4 a522483629 demux: remove facility for partial packet reads
Partial packet reads were needed because the video/audio parsers were
working on top of them. So it could happen that a parser read a part of
a packet, and returned that to the decoder. With libavformat/libavcodec,
packets are already parsed, and everything is much simpler.

Most of the simplifications in ad_spdif could have been done earlier.
Remove some other stuff as well, like the questionable slave mode start
time reporting (could be replaced by proper code, but we don't bother).
Remove the unused skip_audio_frame() functionality as well (it was used
by old demuxers). Some functions become private to demux.c, like
demux_fill_buffer(). Introduce new packet read functions, which have
simpler semantics. Packets returned from them are owned by the caller,
and all packets in the demux.c packet queue are considered unread.
Remove special code that dropped subtitle packets with size 0. This
used to be needed because it caused special cases in the old code.
2013-07-11 19:10:33 +02:00
..
ad_internal.h audio/decode: remove vararg from ad_control() 2013-04-12 20:35:59 +02:00
ad_lavc.c demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
ad_mpg123.c demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
ad_spdif.c demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
ad.c core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
ad.h demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
dec_audio.c demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
dec_audio.h core: make options.c compile standalone 2013-06-08 17:08:20 +02:00