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>
9 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>
9 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>
9 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>
9 years ago
Ganesh Ajjanagadde
4547cf68a0
avformat/isom: utilize bitrate hints
...
Fixes Ticket4546
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
839d6bc192
avformat/riffde: Fix integer overflow in bitrate
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 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>
9 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>
9 years ago
Hendrik Leppkes
796268654c
asfdec: always reset packet state after seeking
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 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>
9 years ago
Michael Niedermayer
944a1aa3c5
avformat/yuv4mpegdec: Use 64bit for file offset
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
3666974230
avformat/yuv4mpegdec: remove unused variable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Andreas Cadhalpun
f1bdc23437
riff: Validate bitrate
9 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
9 years ago
Luca Barbato
d80811c94e
riff: Use the correct logging context
9 years ago
Michael Niedermayer
9b8b804cfb
avformat/yuv4mpegdec: Remove unused variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 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>
9 years ago
Alexandra Hájková
872fab4a3d
asfdec: Fix reading from the pipe
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Carl Eugen Hoyos
e786e96be7
lavf/rtpenc_jpeg: Error out for non-standard Huffman tables.
...
Related to ticket #3823 .
9 years ago
Carl Eugen Hoyos
ad7c5cba4e
lavf/rtpenc_jpeg: Do not check the table number when checking precision.
9 years ago
Carl Eugen Hoyos
6253f511e0
Cosmetics: Reindent after last commit.
9 years ago
Carl Eugen Hoyos
da46370e94
lavf/matroskaenc: Do not needlessly allocate memory for cuepoints.
...
Fixes ticket #4690 .
9 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>
9 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>
9 years ago
Anton Khirnov
0e7c0ec344
lavf/hevc: pad the RBSP buffer as required by the bistream reader
9 years ago
Michael Niedermayer
656e9a68c4
avformat/swfdec: Fix "}else" style
...
Found-by: durandal_170
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 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>
9 years ago
Carl Eugen Hoyos
1d5edad8cc
lavf/mpegtsenc: Only fail aac muxing if the first frame is invalid.
...
Fixes ticket #3957 .
9 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
Vadim Belov
db64af6395
avformat/concatdec: copy stream metadata when using concat
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
60ec3007e6
avformat/nutdec: Check ff_gen_search() for failure
...
Fixes assertion failure
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
2f8c81637c
avformat/matroskadec: Fix undefined shift in read_sint()
...
Fixes: asan_heap-oob_17212bc_2243_cov_594210248_h264_TTA.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Vittorio Giovara
a1e2caa93e
mov: Log format rather than fourcc in stsd in trace mode
...
This will fix remaining format warnings.
10 years ago
Vittorio Giovara
2eef75fd7e
mov: Adjust variable types to fix format warnings
10 years ago
Vittorio Giovara
df22e30172
dump: Use the correct abs() version
...
Fix warning from clang "absolute value function 'abs' given an argument
of type 'long long' but has parameter of type 'int' which may cause
truncation of value [-Wabsolute-value]".
10 years ago
Luca Barbato
e95c7a6185
mov: Preserve the metadata even when bit-exactness is requested
...
Make sure to not write the custom `encoder` string in that case.
Bug-Id: 845
CC: libav-stable@libav.org
10 years ago
John Högberg
42bc768e52
mpegts: Add jpeg2000 stream type
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago