Michael Niedermayer
8f2c045a0e
avformat/mov: Implement a same origin policy for references instead of only allowing a subset of relative pathes in references
...
Fixes Ticket4671
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
90dd6ad22c
avformat/utils: inform the user if the protocol cannot be determined
...
Assuming the wrong protocol can lead to suboptimal seeking performance
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
901922e047
avformat/utils: adjust short skip threshold in ff_configure_buffers_for_index() to avoid seeking if a packet is skiped
...
Fixes Ticket4126
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
c9c7263e58
avformat/mov: Fix opening relative references
...
Possibly fixes Ticket4671
the removed check is wrong and insufficient
Based on patch by Maksym Veremeyenko <verem@m1.tv>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
wm4
130a8e0eef
avformat: don't crash API users when demuxing mp4
...
This code is one big chunk of WTF.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
15629129dd
avformat/mov: Fix deallocation when MOVStreamContext failed to allocate
...
Fixes: 260813283176b57b3c9974fe284eebc3_signal_sigsegv_7ffff713351a_991_xtrem_e2_m64q15_a32sxx.3gp with memlimit of 262144
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
32d023eb6d
avformat/oggdec: Check buf before copying data in to it
...
Fixes null pointer dereference
Fixes: aace024653cc62947336b86f8de812ab_signal_sigsegv_a0500f_343_WobblyWindowsIntro.ogg with memlimit 262144
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Luca Barbato
a5a6a786bf
mp3: Forward seeking errors
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Alexandra Hájková
c571424c7f
asfdec: prevent memory leaks found with Coverity Scan
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Michael Niedermayer
b513661251
avformat/utils: Skip ff_configure_buffers_for_index() for local files
...
Theres no known case where its use on local files improves performance
if you know of such a case, please contact us
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
488cc05192
avformat/mov: Use ff_configure_buffers_for_index()
...
Fixes Ticket2513
Fixes Ticket4432
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
b183fb4767
avformat: Add ff_configure_buffers_for_index()
...
This allows configuring the io buffer in such way that few seeks are needed for playback
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Ganesh Ajjanagadde
4547cf68a0
avformat/isom: utilize bitrate hints
...
Fixes Ticket4546
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
839d6bc192
avformat/riffde: Fix integer overflow in bitrate
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Andreas Cadhalpun
189420cb56
riffdec: prevent negative bit rate
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Ronald S. Bultje
3a18d3fa04
ivfenc: write duration at end-of-stream.
...
At the beginning, the value is not initialized.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Hendrik Leppkes
796268654c
asfdec: always reset packet state after seeking
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Michael Niedermayer
cdb0d7e439
avformat/brstm: Remove unused variable
...
Fixes "libavformat/brstm.c:128:35: warning: variable info_size set but not used"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Michael Niedermayer
944a1aa3c5
avformat/yuv4mpegdec: Use 64bit for file offset
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Paul B Mahol
3666974230
avformat/yuv4mpegdec: remove unused variable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Andreas Cadhalpun
f1bdc23437
riff: Validate bitrate
10 years ago
Luca Barbato
c1d647b15a
mp3: Make the seek more robust
...
Try to parse up to 4 packets to find the closest packet.
Reported-By: jan.schlueter@ofai.at
10 years ago
Luca Barbato
d80811c94e
riff: Use the correct logging context
10 years ago
Michael Niedermayer
9b8b804cfb
avformat/yuv4mpegdec: Remove unused variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Ronald S. Bultje
733c5d889b
yuv4mpeg: add rough duration estimate and seeking.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Alexandra Hájková
872fab4a3d
asfdec: Fix reading from the pipe
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Carl Eugen Hoyos
e786e96be7
lavf/rtpenc_jpeg: Error out for non-standard Huffman tables.
...
Related to ticket #3823 .
10 years ago
Carl Eugen Hoyos
ad7c5cba4e
lavf/rtpenc_jpeg: Do not check the table number when checking precision.
10 years ago
Carl Eugen Hoyos
6253f511e0
Cosmetics: Reindent after last commit.
10 years ago
Carl Eugen Hoyos
da46370e94
lavf/matroskaenc: Do not needlessly allocate memory for cuepoints.
...
Fixes ticket #4690 .
10 years ago
Chris Watkins
4f5c2e651a
oggparsedirac: check return value of init_get_bits
...
If init_get_bits fails the GetBitContext is invalid and must not be
used. Check the return value in dirac_header and propogate the error.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
compn
0054d5ac02
avformat/movenc: fix mime-types in movenc.c
...
https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarioniPhone.html
says video/mp4
suggested by BBB on irc.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Anton Khirnov
0e7c0ec344
lavf/hevc: pad the RBSP buffer as required by the bistream reader
10 years ago
Michael Niedermayer
656e9a68c4
avformat/swfdec: Fix "}else" style
...
Found-by: durandal_170
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
6a1204a1a4
avformat/swfdec: Do not error out on pixel format changes
...
Instead print an error and continue
Fixes Ticket4702
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Carl Eugen Hoyos
1d5edad8cc
lavf/mpegtsenc: Only fail aac muxing if the first frame is invalid.
...
Fixes ticket #3957 .
10 years ago
Frank Heckenbach
161a301d44
mpjpeg: Write the Content-length
10 years ago
Luca Barbato
d09b4cce21
mpjpeg: Simplify using avio_printf
10 years ago
Vittorio Giovara
f046c3b5ac
lavc: Move deprecation warning disabling to files including the table
...
Unbreak build from 7a5902c556
.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Paul B Mahol
5233f2534c
avformat/yuv4mpegenc: use avio_printf()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Alexandra Hájková
016cac75c6
asfdec: prevent the infinite loop in detect unknown_subobject
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Alexandra Hájková
9752d2e6cc
asfdec: prevent possible memory leak in the asf_read_metadata_obj
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Michael Niedermayer
1f69b7baa1
avformat/asfdec_f: Fix memleak
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
John Adlum
72cad80016
avformat/asfdec_f: Add ASFDataType, use named types for metadata
...
This is based on asfdec_o.c, but uses a proper type instead of defines
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
John Adlum
59fffefdb4
avformat/asfdec_f: Use dynamic allocation in asf_read_metadata() instead of a fixed size buffer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
John Adlum
c8eca438a9
avformat/asfdec_f: factor error checking out of main header parsing loop
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
838c5f3df7
avformat/utils: Redesign scoring in av_find_default_stream_index()
...
This avoids empty streams from being selected if a equivalent non empty one is available
The new system is also clearer and more systematic
This may need finetuning, which should be easy to do ...
Fixes Ticket2687
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Paul B Mahol
5165c600eb
avformat/rtmpproto: increase hardcoded url/path lengths
...
Fixes #4103 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
John Adlum
811008b8ee
avformat/asfdec_f: Assert that packet positions match in asf_read_pts()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
John Adlum
28206b75e8
avformat/asfdec_f: Correct skip to key code
...
Fixes Ticket3978
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago