Michael Niedermayer
d3316c3f85
Merge commit '19fc283dbb53a5f7d6658fd4edcfa59b99369b58' into release/2.4
...
* commit '19fc283dbb53a5f7d6658fd4edcfa59b99369b58':
lavf: replace rename() with ff_rename()
Conflicts:
libavformat/hdsenc.c
libavformat/internal.h
See: 95d2fc6a76
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 01:22:14 +01:00
Michael Niedermayer
324797eb83
Merge commit 'b9b689550e7531b1a2cc893d2af623e37f266936' into release/2.4
...
* commit 'b9b689550e7531b1a2cc893d2af623e37f266936':
img2dec: check av_new_packet return value
Conflicts:
libavformat/img2dec.c
See: 3f8148911c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 01:19:51 +01:00
Michael Niedermayer
298f7f1fac
Merge commit '7c710c38f6481b892e01d3c1e4781ad160b2935e' into release/2.4
...
* commit '7c710c38f6481b892e01d3c1e4781ad160b2935e':
audiointerleave: check av_new_packet return value
Conflicts:
libavformat/audiointerleave.c
See: 3ca8a23288
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 01:19:11 +01:00
Michael Niedermayer
275cd55a0f
Merge commit '556a5090f2b0a20fd9998e1a327875f5b0c8d1d5' into release/2.4
...
* commit '556a5090f2b0a20fd9998e1a327875f5b0c8d1d5':
mp3dec: fix reading the Xing tag
Conflicts:
libavformat/mp3dec.c
See: 19ff479f69
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 01:10:56 +01:00
Michael Niedermayer
749fadaa65
Merge commit '1551602b423755c4ed98c5b7b2c2d6504416726e' into release/2.4
...
* commit '1551602b423755c4ed98c5b7b2c2d6504416726e':
nutdec: check av_new_packet return value
Conflicts:
libavformat/nutdec.c
See: bb502411dd
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 01:10:10 +01:00
Michael Niedermayer
8120061be2
Merge commit '4cd0041d38664adcb6f4b3038e277631b85d5dc8' into release/2.4
...
* commit '4cd0041d38664adcb6f4b3038e277631b85d5dc8':
rmdec: check av_new_packet return value
Conflicts:
libavformat/rmdec.c
See: c01a462cda
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 01:04:15 +01:00
Michael Niedermayer
153a012384
Merge commit '6cf27b550d66963b89b5917568b85c4b49fb18ba' into release/2.4
...
* commit '6cf27b550d66963b89b5917568b85c4b49fb18ba':
aviobuf: check context before using it
See: 7441d1ec33
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 01:02:42 +01:00
Michael Niedermayer
1da83d52bc
Merge commit 'b31bb39bdd7b5a53e0d282acc0f0f62b32b17acc' into release/2.4
...
* commit 'b31bb39bdd7b5a53e0d282acc0f0f62b32b17acc':
rtsp: Check a memory allocation
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 00:36:31 +01:00
Michael Niedermayer
564d943b27
avformat/rmdec: Check for overflow in ff_rm_read_mdpr_codecdata()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 03abf55f25
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 00:26:12 +01:00
Michael Niedermayer
aded1110a3
avformat/rmdec: rm_read_extradata: add error message for oversized extradata
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 50f9de59a0
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 00:25:55 +01:00
Michael Niedermayer
365e0652f9
Merge commit '036f5c5420e4529f05fa5180f5fa28ca2c5c4065' into release/2.4
...
* commit '036f5c5420e4529f05fa5180f5fa28ca2c5c4065':
rm: Use the correct codec_data_size signedness
Conflicts:
libavformat/rm.h
libavformat/rmdec.c
See: a6f730730b
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 00:25:10 +01:00
Michael Niedermayer
705e0e0513
avformat/mpeg: do not count PES packets inside PES packets during probing
...
Fixes: misdetection of test2.mp3
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit e15b29bb18
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-18 00:11:01 +01:00
Michael Niedermayer
c69fff3790
Merge commit 'cbf31d5f15774b3ffd1e2009159dc7154a767b09' into release/2.4
...
* commit 'cbf31d5f15774b3ffd1e2009159dc7154a767b09':
rtpdec_h263_rfc2190: Clear the stored bits if discarding buffered data
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 23:23:27 +01:00
Michael Niedermayer
cc598bf7dc
Merge commit 'f6c82b34a320f105af266997f5951cbe7dfc8a05' into release/2.4
...
* commit 'f6c82b34a320f105af266997f5951cbe7dfc8a05':
segment: Fix the failure paths
Conflicts:
libavformat/segment.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 22:56:52 +01:00
wm4
b96163f055
avformat/utils: check for malloc failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit a66893ac94
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-17 22:39:23 +01:00
Luca Barbato
19fc283dbb
lavf: replace rename() with ff_rename()
...
The new function wraps errno so that its value is correctly reported
when other functions overwrite it (eg. in case of logging).
CC: libav-stable@libav.org
Bug-Id: CID 1135748
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-01-13 00:04:24 +01:00
Vittorio Giovara
b9b689550e
img2dec: check av_new_packet return value
...
CC: libav-stable@libav.org
Bug-Id: CID 1087077
2015-01-13 00:03:10 +01:00
Vittorio Giovara
7c710c38f6
audiointerleave: check av_new_packet return value
...
CC: libav-stable@libav.org
Bug-Id: CID 1087078
2015-01-13 00:02:45 +01:00
Anton Khirnov
556a5090f2
mp3dec: fix reading the Xing tag
...
The quality scale field is only supposed to be present if the fourth bit
is set. In practice, lame always sets it, but other tools might not.
CC:libav-stable@libav.org
2015-01-13 00:02:16 +01:00
Vittorio Giovara
1551602b42
nutdec: check av_new_packet return value
...
CC: libav-stable@libav.org
Bug-Id: CID 733713
2015-01-13 00:01:33 +01:00
Vittorio Giovara
4cd0041d38
rmdec: check av_new_packet return value
...
CC: libav-stable@libav.org
Bug-Id: CID 733714
2015-01-13 00:01:18 +01:00
Vittorio Giovara
6cf27b550d
aviobuf: check context before using it
...
Avoid a possible null pointer dereference.
CC: libav-stable@libav.org
Bug-Id: CID 1135769
2015-01-13 00:00:56 +01:00
Michael Niedermayer
5aceced0a0
avio: fix sizeof argument
...
CC: libav-stable@libav.org
Bug-Id: CID 732284
2015-01-13 00:00:43 +01:00
Luca Barbato
bb823e26b1
avformat: Make avformat_free_context handle NULL
...
Work as the other free()-like functions.
Bug-Id: CID 1087081
CC: libav-stable@libav.org
2015-01-12 23:58:25 +01:00
Michael Lynch
b31bb39bdd
rtsp: Check a memory allocation
...
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-01-12 23:58:05 +01:00
Luca Barbato
036f5c5420
rm: Use the correct codec_data_size signedness
...
The function takes a size and not an offset.
CC: libav-stable@libav.org
Sample-Id: rm_deadlock.rm
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-12 23:18:01 +01:00
Luca Barbato
da35008c31
latm: Do not give a score for a single instance
...
Bug-Id: 773
CC: libav-stable@libav.org
2015-01-12 23:18:01 +01:00
Luca Barbato
4baee1124b
mp3: Tweak the probe scores
...
Having more than 10 consecutive frames decoded as mp3 should be
considered a clear signal that the sample is mp3 and not mpegps.
Reported-By: Florian Iragne <florian@iragne.fr >
CC: libav-stable@libav.org
2015-01-12 23:18:01 +01:00
Martin Storsjö
cbf31d5f15
rtpdec_h263_rfc2190: Clear the stored bits if discarding buffered data
...
If we throw away the buffered incomplete frame, make sure to also
throw away the buffered bits of an incomplete byte at the same
time.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
(cherry picked from commit df07c07b3d
)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-12 23:14:38 +01:00
Luca Barbato
f6c82b34a3
segment: Fix the failure paths
...
A failure in segment_end() or segment_start() would lead to freeing
a dangling pointer and in general further calls to seg_write_packet()
or to seg_write_trailer() would have the same faulty behaviour.
CC: libav-stable@libav.org
Reported-By: luodalongde@gmail.com
(cherry picked from commit b3f0465736
)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-12 22:21:39 +01:00
Martin Storsjö
932caa50a5
libavformat: Check for malloc failures in avformat_new_stream
...
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
(cherry picked from commit 9f810a9b37
)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-01-12 22:19:11 +01:00
Michael Niedermayer
0b0293ceaf
avformat/movenc: workaround bug in "PathScale EKOPath(tm) Compiler Suite Version 4.0.12.1"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 7824dc5150
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-10 05:02:19 +01:00
Michael Niedermayer
86f4ac9365
avformat/mov: Fix mixed declaration and statement warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit db27f50e06
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Michael Niedermayer
4506958289
avformat/utils: Clear pointer in ff_alloc_extradata() to avoid leaving a stale pointer in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit bbfca8e84b
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Michael Niedermayer
6300790144
avformat/matroskadec: Use av_freep() to avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 6e70e4aca5
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Dale Curtis
54b76eb595
mov: Fix negative size calculation in mov_read_default().
...
The previous code assumed if an atom was marked with a 64-bit
size extension, it actually had that data available. The new
code verfies there's enough data in the atom for this to be
done.
Failure to verify causes total_size > atom.size which will
result in negative size calculations later on.
Found-by: Paul Mehta <paul@paulmehta.com >
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 3ebd76a9c5
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Michael Niedermayer
0787163cf3
avformat/mov: fix integer overflow in mov_read_udta_string()
...
Found-by: Paul Mehta <paul@paulmehta.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 3859868c75
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Dale Curtis
134ff88c6a
mov: Avoid overflow with mov_metadata_raw()
...
The code previously added 1 to len without checking its size,
resulting in an overflow which can corrupt value[-1] -- which
may be used to store unaligned ptr information for certain
allocators.
Found-by: Paul Mehta <paul@paulmehta.com >
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Michael Niedermayer
54e3aff10e
avformat/flvdec: Increase string array size
...
Fixes parsing httphostheader of Scarlatti\,\ Pieter-Jan\ Belder\ -\ Sonata\ K113\ in\ A\ major\ -\ Alle.flv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit eb767a276b
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Michael Niedermayer
d9ec3070d1
avformat/flvdec: do not inject dts=0 metadata packets which failed to be parsed into a new data stream
...
Such data streams (which then contain no other packets except the faulty one)
confuse some user applications, like VLC
Works around vlcticket 12389
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 322f0f5960
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Michael Niedermayer
6ac156864c
avformat/cdxl: Fix integer overflow of image_size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 3eb5cbe0c5
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Michael Niedermayer
0775653b4c
avformat/segment: Use av_freep() avoid leaving stale pointers in memory
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 68fa549230
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-01-09 17:18:40 +01:00
Michael Niedermayer
36e6842aa6
Merge commit '577f1feb3fd1e51fd14af7ce6d79d468faa3b929' into release/2.4
...
* commit '577f1feb3fd1e51fd14af7ce6d79d468faa3b929':
mov: avoid a memleak when multiple stss boxes are present
Conflicts:
libavformat/mov.c
See: 1b5d112406
See: 5ab882d728
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-20 11:49:03 +01:00
Clément Bœsch
47e4a1ac6d
avformat/mov: strengthen some table allocations
...
(cherry picked from commit 5ab882d728
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-20 11:47:06 +01:00
Michael Niedermayer
a058cbcfdf
avformat/mov: Fix memleaks for duplicate STCO/CO64/STSC atoms
...
Also see [FFmpeg-devel] [PATCH] avformat/mov: strengthen some table allocations
which contains more fixes but is unfinished
Fixes: signal_sigabrt_7ffff6ac7bb9_3484_cov_1830000177_starfox2.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 1b5d112406
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-20 11:47:02 +01:00
Anton Khirnov
577f1feb3f
mov: avoid a memleak when multiple stss boxes are present
...
CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
(cherry picked from commit 64f7575fbd
)
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2014-12-20 10:51:40 +01:00
Michael Niedermayer
820f41e1a1
Add FFMPEG_VERSION into the binary libs
...
This simplifies identifying from which revision a binary of a lib came from
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 649c158e8c
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-20 02:26:27 +01:00
Michael Niedermayer
0fb2b61614
avformat/utils: Do not update programs streams from program-less streams in update_wrap_reference()
...
Fixes Ticket3686
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit a29524bf2e
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-20 02:25:54 +01:00
Michael Niedermayer
0d277be45a
avformat/aviobuf: Check that avio_seek() target is non negative
...
Fixes out of array access
Suggested-by: Andrew Scherkus <scherkus@google.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit ed86dbd05d
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-20 02:25:54 +01:00
Michael Niedermayer
787e4d12da
avformat/flvdec: fix potential use of uninitialized variables
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 0fadbd3623
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2014-12-20 02:25:54 +01:00