Carl Eugen Hoyos
e34ba4723e
Avoid img_segment_size == 0 in mtv demuxer.
...
Fixes ticket #3011 .
2013-09-30 07:55:23 +02:00
Michael Niedermayer
5c7d86cbde
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
omadec: fix bitrate for ATRAC3+ streams
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-30 02:21:41 +02:00
Michael Niedermayer
7a28a9f68e
Merge commit '23d0fdcf6f30843fc3f14084d80581f1ca10f1f3'
...
* commit '23d0fdcf6f30843fc3f14084d80581f1ca10f1f3':
Add support for multichannel ATRAC3+ streams.
Conflicts:
libavformat/oma.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-30 02:15:36 +02:00
Michael Niedermayer
c7fae9081d
Merge commit '93370d12164236d59645314871a1d6808b2a8ddb'
...
* commit '93370d12164236d59645314871a1d6808b2a8ddb':
mxfdec: set audio timebase to 1/samplerate
Conflicts:
libavformat/mxfdec.c
tests/ref/fate/mxf-demux
tests/ref/seek/lavf-mxf
tests/ref/seek/lavf-mxf_d10
See: 83cab07a4c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-30 02:12:42 +02:00
Michael Niedermayer
143a19f5c7
Merge commit 'c231987662194d009dd91bfc57c678e0e70ca161'
...
* commit 'c231987662194d009dd91bfc57c678e0e70ca161':
mov: Make sure the read sample count is nonnegative
Conflicts:
libavformat/mov.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-30 00:32:01 +02:00
Michael Niedermayer
ccb6b056df
Merge commit '640a2427aafa774b83316b7a8c5c2bdc28bfd269'
...
* commit '640a2427aafa774b83316b7a8c5c2bdc28bfd269':
bfi: Add some very basic sanity checks for input packet sizes
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-30 00:13:36 +02:00
Michael Niedermayer
a6b79bb2b1
Merge commit '9fc7184d1a9af8d97b3fc5c2ef9d0a647d6617ea'
...
* commit '9fc7184d1a9af8d97b3fc5c2ef9d0a647d6617ea':
bfi: Avoid divisions by zero
See: 99a8552dae
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-30 00:12:33 +02:00
Michael Niedermayer
7057cc861d
Merge commit 'a9221e39600a31ee13e736e9e47743cde23f0280'
...
* commit 'a9221e39600a31ee13e736e9e47743cde23f0280':
electronicarts: Add more sanity checking for the number of channels
Note: This check is probably unnecessary
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 23:52:07 +02:00
Michael Niedermayer
5badcfe220
Merge commit 'd07aa3f02b73ab1371c13ac7898338380ca0932b'
...
* commit 'd07aa3f02b73ab1371c13ac7898338380ca0932b':
riffdec: Add sanity checks for the sample rate
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 23:41:16 +02:00
Michael Niedermayer
2f8418b584
Merge commit '28ff439efd2362fb21e1a78610737f2e26a72d8f'
...
* commit '28ff439efd2362fb21e1a78610737f2e26a72d8f':
mvi: Add sanity checking for the audio frame size
Conflicts:
libavformat/mvi.c
See: ea1d8465e6
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 23:24:27 +02:00
Michael Niedermayer
17049bff64
Merge commit 'adc09136a4a63b152630abeacb22c56541eacf60'
...
* commit 'adc09136a4a63b152630abeacb22c56541eacf60':
xwma: Avoid division by zero
Conflicts:
libavformat/xwma.c
See: a3cb7f992f
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 22:59:49 +02:00
Michael Niedermayer
3a3ebc7c7d
Merge commit '8d07258bb6063d0780ce2d39443d6dc6d8eedc5a'
...
* commit '8d07258bb6063d0780ce2d39443d6dc6d8eedc5a':
avidec: Make sure a packet is large enough before reading its data
Conflicts:
libavformat/avidec.c
See: 028cc42a16
Note: data!=NULL implies that the allocated array is at least FF_INPUT_BUFFER_PADDING_SIZE large
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 22:56:15 +02:00
Michael Niedermayer
b24f7cf950
Merge commit '68ff9981283a56c731f00c2ee7901103665092fc'
...
* commit '68ff9981283a56c731f00c2ee7901103665092fc':
vqf: Make sure the bitrate is in the valid range
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 22:42:31 +02:00
Michael Niedermayer
554c22c710
Merge commit '9277050e2918e0a0df9689721a188a604d886616'
...
* commit '9277050e2918e0a0df9689721a188a604d886616':
vqf: Make sure sample_rate is set to a valid value
See: e481ba2ed7
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 22:35:06 +02:00
Maxim Poliakovski and Anton Khirnov
487b54104a
omadec: fix bitrate for ATRAC3+ streams
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-09-29 21:54:51 +02:00
Maxim Poliakovski and Anton Khirnov
23d0fdcf6f
Add support for multichannel ATRAC3+ streams.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2013-09-29 21:52:57 +02:00
Anton Khirnov
93370d1216
mxfdec: set audio timebase to 1/samplerate
...
Fixes sync in some samples (e.g. bugs 7581 and 8374 in VLC).
Based on a commit by Matthieu Bouron <matthieu.bouron@gmail.com >
Reported-by: Jean-Baptiste Kempf <jb@videolan.org >
CC: libav-stable@libav.org
2013-09-29 21:50:30 +02:00
Martin Storsjö
c231987662
mov: Make sure the read sample count is nonnegative
...
This avoids setting a negative number of frames, ending up with a
negative average frame rate.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 20:00:45 +03:00
Martin Storsjö
640a2427aa
bfi: Add some very basic sanity checks for input packet sizes
...
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 19:59:32 +03:00
Martin Storsjö
9fc7184d1a
bfi: Avoid divisions by zero
...
If a zero-length video packet is to be returned, just return
AVERROR(EAGAIN) and switch back to the audio stream.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 19:58:56 +03:00
Martin Storsjö
a9221e3960
electronicarts: Add more sanity checking for the number of channels
...
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 19:58:41 +03:00
Martin Storsjö
d07aa3f02b
riffdec: Add sanity checks for the sample rate
...
This avoids a division by zero for G726.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 19:58:18 +03:00
Martin Storsjö
28ff439efd
mvi: Add sanity checking for the audio frame size
...
This avoids a division by zero.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 19:57:43 +03:00
Martin Storsjö
adc09136a4
xwma: Avoid division by zero
...
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 19:56:44 +03:00
Martin Storsjö
8d07258bb6
avidec: Make sure a packet is large enough before reading its data
...
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 19:56:22 +03:00
Martin Storsjö
68ff998128
vqf: Make sure the bitrate is in the valid range
...
Even if the sample rate is valid, an invalid bitrate could
pass the mode combination test below.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 18:46:39 +03:00
Martin Storsjö
9277050e29
vqf: Make sure sample_rate is set to a valid value
...
This avoids divisions by zero later (and possibly assertions in
time base scaling), since an invalid rate_flag combined with an
invalid bitrate below could pass the mode combination test.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2013-09-29 18:46:21 +03:00
Michael Niedermayer
f2eb474a5a
avformat/mpegenc: check, warn and clip muxrate to syntactical possible values
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 17:02:57 +02:00
Michael Niedermayer
8c1253c934
avformat/mpegenc: check, warn and clip VBV value to within syntactically possible values
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 17:02:06 +02:00
Michael Niedermayer
28d35dbe9f
avformat/mpegenc: fix muxrates AVOption maximum value
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 17:00:54 +02:00
Michael Niedermayer
a0fec71ebd
avformat/mxfenc: instance number is just 24 bits
...
Fixes assertion failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-29 14:33:40 +02:00
Carl Eugen Hoyos
d87ff55502
Remove an incorrect and unneeded assert in the amr demuxer.
...
Asserting a specific codec is not correct since libavformat
allows forcing a codec, an equivalent check is in the
following line.
Fixes ticket #3001 .
2013-09-29 07:11:56 +02:00
Matthieu Bouron and Michael Niedermayer
c461265a76
lavf/mxfdec: add j2k codec to intra only codecs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-28 22:57:52 +02:00
Michael Niedermayer
a63b479d11
avformat/utils: factor find_decoder() out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-28 18:11:13 +02:00
Paul B Mahol
07da0854fe
avformat/vfq: fix deadlock in vqf_read_header()
...
Fixes #3010 .
Reported-by: Piotr Bandurski <ami_stuff@o2.pl >
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2013-09-28 15:36:54 +00:00
Michael Niedermayer
9790a03e67
avformat/mxfdec: check sample size more completely
...
Fixes division by zero
Fixes Ticket2992
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 19:09:15 +02:00
Michael Niedermayer
df21537dfb
avformat/tls: fix {} error for the GNUTLS case
...
Found-by:" Geek.Song" <ffmpeg@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 15:59:19 +02:00
Michael Niedermayer
d8d235ffe9
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
lxf: check the nb_streams instead of relying on padding
Conflicts:
libavformat/lxfdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 13:27:31 +02:00
Michael Niedermayer
e82071e727
Merge commit '839df90c718dcab9b9e91ca3c7e73479b3e8103c'
...
* commit '839df90c718dcab9b9e91ca3c7e73479b3e8103c':
lxf: Support 16-channel files
lxf: Support version 1 files
Conflicts:
libavformat/lxfdec.c
See: e701b0cf75
See: 1a06d6dd86
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 12:31:15 +02:00
Michael Niedermayer
72eddc10fa
Merge commit 'd872fb0f7ff2ff0ba87f5ccf6a1a55ca2be472c9'
...
* commit 'd872fb0f7ff2ff0ba87f5ccf6a1a55ca2be472c9':
lavf: Reset the entry count and allocation size variables on av_reallocp failures
Conflicts:
libavformat/avienc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 12:13:41 +02:00
Michael Niedermayer
328a5b93d3
Merge commit '06ebc0bf9a6401733a4ce1310325de19f631819a'
...
* commit '06ebc0bf9a6401733a4ce1310325de19f631819a':
lavf: Allocate arrays with av_realloc if they will be realloced later
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 11:45:37 +02:00
Michael Niedermayer
47c5c942f8
Merge commit '1af78b865b66acb8020c54262f12aa41ad47e05c'
...
* commit '1af78b865b66acb8020c54262f12aa41ad47e05c':
rtpdec_qt: Add an accidentally removed allocation return value check
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 11:38:49 +02:00
Michael Niedermayer
f31c36e552
Merge commit '705b748e8d8612385c96428ae36ed0d42a170d93'
...
* commit '705b748e8d8612385c96428ae36ed0d42a170d93':
tls: Add support for listen mode
Conflicts:
doc/protocols.texi
libavformat/tls.c
libavformat/version.h
See: 4f4eb380f0
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 11:33:19 +02:00
Michael Niedermayer
689a1bd917
Merge commit '5c53bf7aaf03748464cbf978bffe7ffdb71112b1'
...
* commit '5c53bf7aaf03748464cbf978bffe7ffdb71112b1':
http: Pass options through to the nested protocol
Conflicts:
libavformat/http.c
See: b6f435fbc8
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 10:38:04 +02:00
Michael Niedermayer
e6e71fd7b5
Merge commit '8b09d917e7dc7d7f2ace31419f802d4ff518236c'
...
* commit '8b09d917e7dc7d7f2ace31419f802d4ff518236c':
tls: Add options for verifying the peer certificate
Conflicts:
doc/protocols.texi
libavformat/tls.c
libavformat/version.h
See: b2460858f6
See: 973a758f52
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2013-09-27 09:33:28 +02:00
Luca Barbato
5c349ad08a
lxf: check the nb_streams instead of relying on padding
...
Remove the now unneeded stream pointer while at it.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
2013-09-27 01:33:46 +02:00
Paul B Mahol and Luca Barbato
a529fa2f4d
lxf: remove deplanarization hack
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
2013-09-27 01:33:46 +02:00
Carl Eugen Hoyos and Luca Barbato
839df90c71
lxf: Support 16-channel files
...
Reported, analyzed and tested by Gabriel Gerard.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2013-09-27 01:33:45 +02:00
Paul B Mahol and Luca Barbato
7e52080cb1
pcm: support 24-bit/32-bit little-endian planar
...
Used by LXF.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2013-09-27 01:33:45 +02:00
Reimar Döffinger and Luca Barbato
779951cd2c
lxf: Support version 1 files
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2013-09-27 01:33:45 +02:00