ffmpeg/libavformat
John Stebbins 4a9d32baca mov: fix decode of fragments that overlap in time
When keyframe intervals of dash segments are not perfectly aligned,
fragments in the stream can overlap in time. The previous sorting by
timestamp causes packets to be read out of decode order and results
in decode errors.

Insert new "trun" index entries into index_entries in the order that
the trun are referenced by the sidx.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-10-23 12:41:04 +02:00
..
tests movenc-test: Add tests for negative cts offsets 2017-09-28 18:15:45 +02:00
.gitignore
3dostr.c
4xm.c
a64.c
aacdec.c avformat/aacdec: add a custom read_packet function 2017-06-04 11:52:02 -03:00
aadec.c
ac3dec.c
acm.c
act.c
adp.c lavf/adp: Fix the probe function on systems with signed char. 2017-10-09 02:57:48 +02:00
ads.c
adtsenc.c
adxdec.c
aea.c
afc.c
aiff.h
aiffdec.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
aiffenc.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
aixdec.c
allformats.c Add SUP/PGS subtitle muxer 2017-09-09 12:07:14 +02:00
amr.c
anm.c
apc.c
ape.c
apetag.c
apetag.h
apngdec.c
apngenc.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
aqtitledec.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
asfdec_o.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
asfenc.c avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" of "void ff_put_bmp_header()" 2017-08-02 15:26:25 +02:00
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
async.c
au.c
audiointerleave.c
audiointerleave.h
avc.c
avc.h
avformat.h avformat: remove dead av_stream_get_side_data() cruft 2017-10-22 01:36:28 -03:00
avformatres.rc
avi.h
avidec.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
avienc.c avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" of "void ff_put_bmp_header()" 2017-08-02 15:26:25 +02:00
avio_internal.h lavf: make avio_read_partial() public 2017-09-01 17:56:33 +02:00
avio.c lavf/avio: Print the https warning also for missing tls protocol. 2017-10-23 11:48:17 +02:00
avio.h avformat: Drop deprecated feof() AVIO fuction 2017-10-21 22:08:08 -03:00
aviobuf.c avformat: Drop deprecated feof() AVIO fuction 2017-10-21 22:08:08 -03:00
avisynth.c
avlanguage.c
avlanguage.h
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c lavf/bink: fix latest header and add all existing revisions 2017-08-20 11:33:51 +02:00
bintext.c
bit.c lavf/bit: Fix the G.729 bit auto-detection. 2017-09-30 20:41:52 +02:00
bluray.c
bmv.c
boadec.c
brstm.c
c93.c
cache.c libavformat: not treat 0 as EOF 2017-10-19 22:07:21 +02:00
caf.c lavf/caf: Support demuxing Opus. 2017-09-20 03:31:48 +02:00
caf.h
cafdec.c avformat/cafdec: reject multichannel Opus streams 2017-09-19 23:06:42 -03:00
cafenc.c lavf/cafenc: Only allow mono and stereo for Opus. 2017-10-17 23:00:07 +02:00
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c avformat/cinedec: Fix DoS due to lack of eof check 2017-08-27 19:22:08 +02:00
concat.c libavformat: not treat 0 as EOF 2017-10-19 22:07:21 +02:00
concatdec.c avformat/concatdec: add fallback for calculating file duration 2017-08-31 15:33:52 +01:00
crcenc.c
crypto.c
cutils.c
dash.c avformat/dash:add copyright to dash.c 2017-09-01 18:52:56 +08:00
dash.h avformat/dash: move reused API to common file and header file 2017-09-01 10:20:56 +08:00
dashdec.c avformat/dashdec: free resource allocated by xml 2017-09-09 08:34:07 +08:00
dashenc.c Merge commit '7295b7373862ee54903b33d6ef3335531dfa93ad' 2017-09-26 14:13:09 -03:00
data_uri.c
dauddec.c
daudenc.c
dcstr.c
dfa.c
diracdec.c
dnxhddec.c
dsfdec.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
dsicin.c
dss.c
dtsdec.c avcodec/dca: remove GetBitContext usage from avpriv_dca_parse_core_frame_header() 2017-07-21 12:18:10 -03:00
dtshddec.c
dump.c lavf/dump: Remove superfluous cast. 2017-08-29 01:33:47 +02:00
dv.c
dv.h
dvbsub.c
dvbtxt.c
dvenc.c
dxa.c
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c
ffmenc.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
fifo.c libavformat/fifo: Fix initialization of underlying AVFormatContext 2017-07-19 10:08:19 +02:00
file_open.c
file.c avformat/file: increase min/max packet size to 256k for written files 2017-06-24 18:51:29 +02:00
filmstripdec.c
filmstripenc.c
fitsdec.c Add FITS Demuxer 2017-08-30 12:13:01 +02:00
fitsenc.c avformat/fitsenc: fill header line with spaces 2017-09-12 21:39:57 -03:00
flac_picture.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
flac_picture.h
flacdec.c
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c flvdec: Check the avio_seek return value after reading a metadata packet 2017-09-07 08:30:14 +08:00
flvenc.c
format.c
framecrcenc.c
framehash.c
frmdec.c
fsb.c
ftp.c
g722.c
g723_1.c
g726.c lavf/g726: Demuxer for raw G.726 streams, both left- and right-justified. 2017-08-24 12:55:46 +02:00
g729dec.c
gdv.c avformat/gdv: Make FixedSize static 2017-09-07 15:19:22 +02:00
genh.c
gif.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
gifdec.c
golomb_tab.c
gopher.c
gsmdec.c
gxf.c
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hashenc.c
hdsenc.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
hevc.c hevc: Improve stream constraint values in common header 2017-10-17 20:56:29 +01:00
hevc.h
hevcdec.c
hls.c Merge commit 'fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3' 2017-09-26 16:02:40 -03:00
hlsenc.c avformat/hlsenc: support http method for hls fmp4 init file 2017-09-21 23:10:57 +08:00
hlsproto.c
hnm.c
http.c libavformat: not treat 0 as EOF 2017-10-19 22:07:21 +02:00
http.h
httpauth.c
httpauth.h
icecast.c
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
id3v2.h avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c
img2.h
img2dec.c lavf/img2dec: Auto-detect svg images. 2017-10-07 03:42:00 +02:00
img2enc.c avformat/img2enc: remove av_dup_packet() call 2017-09-25 23:44:53 -03:00
ingenientdec.c
internal.h lavf: consider codec framerate for framerate detection 2017-06-07 11:08:06 +02:00
ipmovie.c Interplay MVE: Implement frame format 0x10 2017-06-27 15:09:12 +02:00
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c libavformat : add mov dataformat tag for HapAlphaOnly and HapQAlpha 2017-09-24 21:54:13 +02:00
isom.h mov: fix decode of fragments that overlap in time 2017-10-23 12:41:04 +02:00
iss.c
iv8.c
ivfdec.c
ivfenc.c
jacosubdec.c
jacosubenc.c
jvdec.c
latmenc.c
libavformat.v avformat: Drop deprecated feof() AVIO fuction 2017-10-21 22:08:08 -03:00
libgme.c
libmodplug.c
libopenmpt.c avformat/libopenmpt: Query duration and metadata after selecting subsong 2017-09-24 15:54:38 +01:00
librtmp.c avformat/librtmp: check return value of setsockopt 2017-06-13 19:48:08 +02:00
libsmbclient.c
libssh.c avformat/libssh: check the user provided a password before trying to use it 2017-06-17 17:16:13 -03:00
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
lvfdec.c
lxfdec.c
m4vdec.c
Makefile Merge commit 'b864230c49089b087eef56988a3d6a784f6f9827' 2017-10-21 13:32:13 -03:00
matroska.c
matroska.h
matroskadec.c Merge commit '251849f06ce36ce8dc076e0fca2922119fa7e39e' 2017-10-17 16:47:30 -03:00
matroskaenc.c Merge commit '827a05eaa9482e9ac2a17f7f2e42ead07c1d7574' 2017-10-21 13:19:36 -03:00
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mj2kdec.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c
mov_chan.c
mov_chan.h
mov.c mov: fix decode of fragments that overlap in time 2017-10-23 12:41:04 +02:00
movenc.c movenc: take packet dts shifting into mention in check_pkt 2017-10-04 13:09:29 +02:00
movenc.h movenc: Add an option for enabling negative CTS offsets 2017-09-28 18:15:45 +02:00
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c avformat/mp3dec: Fix definition of MIDDLE_BITS 2017-10-04 02:16:11 +02:00
mp3enc.c avformat/mp3enc: flush buffered packets if referencing fails 2017-10-06 21:59:11 -03:00
mpc8.c
mpc.c
mpeg.c avformat/mpeg: zero initialize idx_pkt 2017-09-23 19:37:21 -03:00
mpeg.h
mpegenc.c
mpegts.c lavf/mpegts: Consider stream_type 0x0f just a hint towards AAC. 2017-09-20 02:20:32 +02:00
mpegts.h
mpegtsenc.c mpegtsenc: Don't pass NULL to memcpy 2017-07-06 21:28:20 -04:00
mpegvideodec.c
mpjpeg.c
mpjpegdec.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
mpl2dec.c
mpsubdec.c
msf.c
msnwc_tcp.c
mtaf.c
mtv.c
musx.c
mux.c avformat: remove ABI portion of the side data merging API 2017-10-22 01:29:41 -03:00
mvdec.c avformat/mvdec: Fix DoS due to lack of eof check 2017-08-27 19:23:37 +02:00
mvi.c
mxf.c
mxf.h
mxfdec.c lavf/mxfdec: Search all components of material track for source package. 2017-10-03 23:29:20 +02:00
mxfenc.c avformat/mxfenc: Fix labels for IEC PAL DV 420 2017-10-03 18:34:37 +02:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nsvdec.c avformat/nsvdec: Fix DoS due to lack of eof check in nsvs_file_offset loop. 2017-09-01 01:48:31 +02:00
nullenc.c
nut.c
nut.h
nutdec.c
nutenc.c
nuv.c
oggdec.c
oggdec.h
oggenc.c avformat/oggenc: check for stream private data in ogg_free() 2017-06-22 16:12:51 -03:00
oggparsecelt.c avformat/oggparsecelt: Do not re-allocate os->private 2017-07-25 22:04:34 +02:00
oggparsedaala.c
oggparsedirac.c
oggparseflac.c
oggparseogm.c
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c
oggparsetheora.c
oggparsevorbis.c
oggparsevp8.c
oma.c
oma.h
omadec.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
omaenc.c
options_table.h avformat: make flush_packets a tri-state and set it to -1 (auto) by default 2017-06-24 18:51:29 +02:00
options.c avformat/options: log filename on open 2017-06-03 23:14:04 +02:00
os_support.c
os_support.h lavf/os_support: Use existing WinRT config value. 2017-07-30 14:31:04 +10:00
paf.c
pcm.c
pcm.h
pcmdec.c avformat/pcmdec: fix memory leak 2017-06-13 19:49:06 +02:00
pcmenc.c
pjsdec.c
pmpdec.c
prompeg.c avformat: Fix Pro-MPEG non-square matrix 2017-06-27 12:54:06 +02:00
protocols.c
psxstr.c
pva.c
pvfdec.c
qcp.c
qtpalette.c
qtpalette.h
r3d.c
rawdec.c lavf: make avio_read_partial() public 2017-09-01 17:56:33 +02:00
rawdec.h
rawenc.c lavf/rawenc: Add little- and big-endian G.726 muxers. 2017-08-26 11:43:09 +02:00
rawenc.h
rawutils.c
rawvideodec.c
rdt.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
rdt.h
realtextdec.c
redspark.c
replaygain.c
replaygain.h
riff.c avformat/riff: remove useless tag correlation 'mpg2'->MPEG1VIDEO. 2017-08-02 15:26:35 +02:00
riff.h Merge commit '0539d84d985e811e5989ef27c13f7e2dda0f9b89' 2017-09-28 00:28:38 -03:00
riffdec.c Merge commit '0539d84d985e811e5989ef27c13f7e2dda0f9b89' 2017-09-28 00:28:38 -03:00
riffenc.c avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" of "void ff_put_bmp_header()" 2017-08-02 15:26:25 +02:00
rl2.c avformat/rl2: Fix DoS due to lack of eof check 2017-08-27 19:23:30 +02:00
rm.c
rm.h
rmdec.c avformat/rmdec: Fix DoS due to lack of eof check 2017-08-27 19:23:13 +02:00
rmenc.c avformat/rmenc: do not access AVIO write buffer directly 2017-06-18 16:16:52 +02:00
rmsipr.c
rmsipr.h
rpl.c
rsd.c
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmpdigest.c Merge commit 'b864230c49089b087eef56988a3d6a784f6f9827' 2017-10-21 13:32:13 -03:00
rtmphttp.c
rtmppkt.c Merge commit 'a1a143adb0fd11c474221431417cff25db7d920f' 2017-09-26 18:29:05 -03:00
rtmppkt.h Merge commit 'a1a143adb0fd11c474221431417cff25db7d920f' 2017-09-26 18:29:05 -03:00
rtmpproto.c Merge commit 'b864230c49089b087eef56988a3d6a784f6f9827' 2017-10-21 13:32:13 -03:00
rtp.c
rtp.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c
rtpdec_dv.c
rtpdec_formats.h
rtpdec_g726.c
rtpdec_h261.c
rtpdec_h263_rfc2190.c
rtpdec_h263.c
rtpdec_h264.c avformat/rtpdec_h264: Fix heap-buffer-overflow 2017-08-23 22:19:33 +02:00
rtpdec_hevc.c
rtpdec_ilbc.c
rtpdec_jpeg.c
rtpdec_latm.c
rtpdec_mpa_robust.c
rtpdec_mpeg4.c
rtpdec_mpeg12.c
rtpdec_mpegts.c
rtpdec_qcelp.c
rtpdec_qdm2.c
rtpdec_qt.c
rtpdec_rfc4175.c
rtpdec_svq3.c
rtpdec_vc2hq.c
rtpdec_vp8.c
rtpdec_vp9.c
rtpdec_xiph.c
rtpdec.c
rtpdec.h
rtpenc_aac.c
rtpenc_amr.c
rtpenc_chain.c
rtpenc_chain.h
rtpenc_h261.c
rtpenc_h263_rfc2190.c
rtpenc_h263.c
rtpenc_h264_hevc.c
rtpenc_jpeg.c
rtpenc_latm.c
rtpenc_mpegts.c
rtpenc_mpv.c
rtpenc_vc2hq.c
rtpenc_vp8.c
rtpenc_vp9.c
rtpenc_xiph.c
rtpenc.c lavf/rtpenc: Add support for little-endian G.726. 2017-10-07 20:47:10 +02:00
rtpenc.h
rtpproto.c
rtpproto.h
rtsp.c rtsp: Move message parsing to a separate function 2017-10-06 00:22:10 -03:00
rtsp.h Merge commit '79331df362fb05a0d04ca9489c87e5b80077a3f4' 2017-10-03 23:08:06 -03:00
rtspcodes.h
rtspdec.c rtspdec: Fix return error 2017-07-10 15:02:29 -04:00
rtspenc.c
s337m.c avformat/s337m: fix potentially undefined pointer arithmetic 2017-07-26 21:23:07 +03:00
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c
sccdec.c
sccenc.c
sctp.c
sdp.c lavf/rtpenc: Add support for little-endian G.726. 2017-10-07 20:47:10 +02:00
sdr2.c
sdsdec.c
sdxdec.c
segafilm.c
segment.c Fix several typos 2017-09-21 16:17:02 -08:00
shortendec.c
sierravmd.c
siff.c
smacker.c
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c Remove some unneeded casts of bit_rate. 2017-09-22 01:33:22 +02:00
smush.c
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c
spdifenc.c
srtdec.c
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c libavformat/subfile: return AVERROR_EOF on EOF 2017-06-17 22:36:54 +02:00
subtitles.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
supenc.c Add SUP/PGS subtitle muxer 2017-09-09 12:07:14 +02:00
svag.c
swf.c
swf.h
swfdec.c Use the new AVIOContext destructor. 2017-09-01 02:16:33 -03:00
swfenc.c
takdec.c
tcp.c
tedcaptionsdec.c
tee_common.c
tee_common.h
tee.c
teeproto.c
thp.c
tiertexseq.c
tls_gnutls.c lavf/tls_gnutls: fix warnings from version check 2017-09-26 15:05:32 +02:00
tls_openssl.c
tls_schannel.c avformat/tls_schannel: log unknown error codes 2017-05-31 12:07:43 +02:00
tls_securetransport.c
tls.c
tls.h
tmv.c
tta.c
ttaenc.c
tty.c
txd.c
udp.c
uncodedframecrcenc.c
unix.c
url.c
url.h avformat/aviobuf: add support for specifying minimum packet size and marking flush points 2017-06-24 18:51:29 +02:00
urldecode.c
urldecode.h
utils.c avformat: remove dead av_stream_get_side_data() cruft 2017-10-22 01:36:28 -03:00
v210.c
vag.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h avformat: remove dead av_stream_get_side_data() cruft 2017-10-22 01:36:28 -03:00
vivo.c
voc_packet.c
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vpcc.c
vpcc.h
vpk.c
vplayerdec.c
vqf.c Remove some unneeded casts of bit_rate. 2017-09-22 01:33:22 +02:00
w64.c
w64.h
wavdec.c avcodec/wmaprodec: support multichannel XMA stream configurations 2017-10-09 17:06:19 +02:00
wavenc.c avformat/wavenc: replace literal numbers with enum constants 2017-10-05 09:49:22 +02:00
wc3movie.c
webm_chunk.c
webmdashenc.c webmdashenc: Fix memory leak 2017-07-16 16:09:17 +01:00
webpenc.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_vqa.c
wsddec.c
wtv_common.c
wtv.h
wtvdec.c libavformat/wtvdec: return AVERROR_EOF on EOF 2017-10-13 17:23:54 +02:00
wtvenc.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
wv.c
wv.h
wvdec.c
wvedec.c
wvenc.c
xa.c
xmv.c
xvag.c
xwma.c
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c