FFmpeg git repo
Go to file
Rafaël Carré 91d4cfb812 apedec: do not buffer decoded samples over AVPackets
Only consume an AVPacket when all the samples have been read.

When the rate of samples output is limited (by the default value
of max_samples), consuming the first packet immediately will cause
timing problems:

- The first packet with PTS 0 will output 4608 samples and be
consumed entirely
- The second packet with PTS 64 will output the remaining samples
(typically, a lot, that's why max_samples exist) until the decoded
samples of the first packet have been exhausted, at which point the
samples of the second packet will be decoded and output when
av_decode_frame is called with the next packet).

That means there's a PTS jump since the first packet is 'decoded'
immediately, which can be seen with avplay or mplayer: the timing
jumps immediately to 6.2s (which is the size of a packet).

Sample: http://streams.videolan.org/issues/6348/Goldwave-MAClib.ape
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
2013-08-28 15:00:34 -04:00
compat Revert "w32pthread: help compiler figure out undeeded code" 2013-08-27 23:12:49 +03:00
doc doc: document the asf demuxer 2013-08-28 11:02:56 +02:00
libavcodec apedec: do not buffer decoded samples over AVPackets 2013-08-28 15:00:34 -04:00
libavdevice libavutil: Make avpriv_open a library-internal function on msvcrt 2013-08-10 00:53:33 +03:00
libavfilter vf_fps: use double constants for default/min/max for start_time 2013-08-28 17:54:47 +03:00
libavformat rtmpproto: Fix limelight authentication with abbreviated app names 2013-08-28 17:54:51 +03:00
libavresample Give less generic names to global library option arrays 2013-08-02 19:19:02 +02:00
libavutil libavutil: Make avpriv_open a library-internal function on msvcrt 2013-08-10 00:53:33 +03:00
libswscale swscale: Move extern declarations for tables to swscale_internal.h 2013-08-15 14:38:03 +02:00
presets
tests matroskaenc: Fix writing TRACKDEFAULTFLAG 2013-08-27 14:00:31 +02:00
tools ismindex: Replace mkdir ifdeffery by os_support.h #include 2013-08-05 11:38:00 +02:00
.gitignore Integrate lcov/gcov into Libav 2013-04-05 18:55:11 +02:00
arch.mak
avconv_filter.c avconv: support -t as an input option. 2013-08-05 10:54:19 +02:00
avconv_opt.c avconv: support -t as an input option. 2013-08-05 10:54:19 +02:00
avconv.c avconv: support -t as an input option. 2013-08-05 10:54:19 +02:00
avconv.h avconv: support -t as an input option. 2013-08-05 10:54:19 +02:00
avplay.c miscellaneous typo fixes 2013-07-25 19:43:32 +02:00
avprobe.c cmdutils: wrap exit explicitly 2013-07-07 21:43:23 +02:00
avserver.c avserver: do not use a static string as a default for a string option 2013-08-04 18:47:22 +02:00
Changelog Voxware MetaSound decoder 2013-08-08 10:52:44 +02:00
cmdutils_common_opts.h
cmdutils.c cmdutils: Only do the windows-specific commandline parsing on _WIN32 2013-08-08 10:59:03 +03:00
cmdutils.h cmdutils: wrap exit explicitly 2013-07-07 21:43:23 +02:00
common.mak Integrate lcov/gcov into Libav 2013-04-05 18:55:11 +02:00
configure configure: x86: Fix handling of i686 and cpunop features 2013-08-28 17:03:05 +02:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL
library.mak build: Move setting of SRC_DIR to the only place it is used 2013-03-27 14:49:13 +01:00
LICENSE
Makefile w32pthreads: move from lavc to compat/ 2013-05-24 09:26:54 +02:00
README
RELEASE
version.sh

Libav README
------------

1) Documentation
----------------

* Read the documentation in the doc/ directory.

2) Licensing
------------

* See the LICENSE file.