ffmpeg.git
5 years agoavcodec/dcadec: Check active_bands
Michael Niedermayer [Fri, 15 May 2015 16:29:40 +0000 (18:29 +0200)]
avcodec/dcadec: Check active_bands

Fixes CID1297594 part2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/dcadec: Check scale table index
Michael Niedermayer [Fri, 15 May 2015 16:04:12 +0000 (18:04 +0200)]
avcodec/dcadec: Check scale table index

Fixes CID1297594 part 1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/sonic: More completely check sample_rate_index and channels
Michael Niedermayer [Fri, 15 May 2015 15:31:58 +0000 (17:31 +0200)]
avcodec/sonic: More completely check sample_rate_index and channels

Fixes CID1271783

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/sonic: check memory allocations
Michael Niedermayer [Fri, 15 May 2015 15:26:25 +0000 (17:26 +0200)]
avcodec/sonic: check memory allocations

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/smvjpegdec: check avcodec_decode_video2() return code
Michael Niedermayer [Fri, 15 May 2015 15:21:10 +0000 (17:21 +0200)]
avcodec/smvjpegdec: check avcodec_decode_video2() return code

Fixes CID1271810

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/shorten: More complete pred_order check
Michael Niedermayer [Fri, 15 May 2015 15:02:28 +0000 (17:02 +0200)]
avcodec/shorten: More complete pred_order check

Fixes CID1239055

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/shorten: Fix code depending on signed overflow behavior
Michael Niedermayer [Fri, 15 May 2015 14:58:51 +0000 (16:58 +0200)]
avcodec/shorten: Fix code depending on signed overflow behavior

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/shorten: Check skip_bytes()
Michael Niedermayer [Fri, 15 May 2015 14:48:31 +0000 (16:48 +0200)]
avcodec/shorten: Check skip_bytes()

Fixes CID1210526

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/put_bits: Remove dead code in put_bits()
Michael Niedermayer [Fri, 15 May 2015 14:19:53 +0000 (16:19 +0200)]
avcodec/put_bits: Remove dead code in put_bits()

Fixes CID1297574

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/proresdec2: Reset slice_count on deallocation
Michael Niedermayer [Fri, 15 May 2015 13:23:32 +0000 (15:23 +0200)]
avcodec/proresdec2: Reset slice_count on deallocation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/vp9: Use separate memset for counts.eob
Michael Niedermayer [Fri, 15 May 2015 09:10:10 +0000 (11:10 +0200)]
avcodec/vp9: Use separate memset for counts.eob

Makes no real difference, but maybe scares coverity less (CID1297578)

Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg: Print an error if avfilter_graph_queue_command() failed
Michael Niedermayer [Fri, 15 May 2015 10:41:28 +0000 (12:41 +0200)]
ffmpeg: Print an error if avfilter_graph_queue_command() failed

Fixes CID1271809

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffmpeg: remove unneeded ost->filter check
Michael Niedermayer [Fri, 15 May 2015 10:34:20 +0000 (12:34 +0200)]
ffmpeg: remove unneeded ost->filter check

Fixes CID1241508

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/acelp_vectors: Assert that x is within the array in ff_set_fixed_vector()
Michael Niedermayer [Fri, 15 May 2015 10:16:36 +0000 (12:16 +0200)]
avcodec/acelp_vectors: Assert that x is within the array in ff_set_fixed_vector()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/vp3: Cleanup order of operations for current_run check
Michael Niedermayer [Fri, 15 May 2015 08:42:22 +0000 (10:42 +0200)]
avcodec/vp3: Cleanup order of operations for current_run check

This shouldnt make a difference

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate: increase the number of filtered frames to 20 for edgedetect* & hue
Michael Niedermayer [Fri, 15 May 2015 01:05:20 +0000 (03:05 +0200)]
fate: increase the number of filtered frames to 20 for edgedetect* & hue

Suggested-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavf/webmdashenc: fix unchecked strftime
Vignesh Venkatasubramanian [Thu, 14 May 2015 17:32:24 +0000 (10:32 -0700)]
lavf/webmdashenc: fix unchecked strftime

Fix unchecked strftime return value. This patch fixes Coverity
CID 1295086.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/h264_slice: Fix ranges in assert
Michael Niedermayer [Thu, 14 May 2015 22:30:32 +0000 (00:30 +0200)]
avcodec/h264_slice: Fix ranges in assert

Fixes CID1297592, CID1297593

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/dvbsubdec: Clear w/h/size on region buffer allocation failure
Michael Niedermayer [Thu, 14 May 2015 21:25:39 +0000 (23:25 +0200)]
avcodec/dvbsubdec: Clear w/h/size on region buffer allocation failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/diracdec: Make data_unit_size unsigned
Michael Niedermayer [Thu, 14 May 2015 21:16:06 +0000 (23:16 +0200)]
avcodec/diracdec: Make data_unit_size unsigned

Fixes CID1271788

with this change the value is more explicitly checked, it was fully checked
before though

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/dcadec: Check subsubframes
Michael Niedermayer [Thu, 14 May 2015 19:29:19 +0000 (21:29 +0200)]
avcodec/dcadec: Check subsubframes

Fixes: CID1239152

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/dcadec: Check nchans
Michael Niedermayer [Thu, 14 May 2015 18:49:25 +0000 (20:49 +0200)]
avcodec/dcadec: Check nchans

Fixes CID1239110

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agohevc: make avcodec_decode_video2() fail if get_format() fails
wm4 [Thu, 14 May 2015 16:27:31 +0000 (18:27 +0200)]
hevc: make avcodec_decode_video2() fail if get_format() fails

Personally, I need the decoder to back out if get_format() returns no
usable pixel format. This didn't work because the error code was not
propagated down the call chain. This in turn happened because the
variable declaration removed in this patch shadowed the variable, whose
value is returned at the end of the function. Consequently, failures of
decode_nal_unit() were ignored in this place.

Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/cavsdec: Use ff_set_dimensions()
Michael Niedermayer [Thu, 14 May 2015 16:08:33 +0000 (18:08 +0200)]
avcodec/cavsdec: Use ff_set_dimensions()

Fixes CID1239111 part2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/cavsdec: Check frame_rate_code
Michael Niedermayer [Thu, 14 May 2015 16:00:09 +0000 (18:00 +0200)]
avcodec/cavsdec: Check frame_rate_code

Fixes CID1239111 part1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/cavsdec: Check esc_code
Michael Niedermayer [Thu, 14 May 2015 15:54:40 +0000 (17:54 +0200)]
avcodec/cavsdec: Check esc_code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolibavutil/softfloat: Add test case for av_add_sf
Nedeljko Babic [Thu, 14 May 2015 13:36:36 +0000 (15:36 +0200)]
libavutil/softfloat: Add test case for av_add_sf

Recently normalization (av_normalize_sf) of output was added to av_add_sf.
This normalization is used for better precision for small values and the
purpose of this (quite simple) test case is to test difference between double
and softfloat.

The values used are tailored to maximally highlighte problem with precison when
normalization is not used.

Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/qdrw: Fix the code which asks for version 1 samples
Michael Niedermayer [Thu, 14 May 2015 10:25:05 +0000 (12:25 +0200)]
avcodec/qdrw: Fix the code which asks for version 1 samples

The new code only asks for version 1 if its actually version 1 and
prints the version bytes if its something else

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/qdrw: another try at skipping the first 512 bytes
Michael Niedermayer [Thu, 14 May 2015 10:14:52 +0000 (12:14 +0200)]
avcodec/qdrw: another try at skipping the first 512 bytes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/srtdec: attempt to correct SubRip positioning
Clément Bœsch [Sun, 8 Feb 2015 11:38:06 +0000 (12:38 +0100)]
avcodec/srtdec: attempt to correct SubRip positioning

The positioning was completely wrong. First, the coordinates are
expressed in ASS playback resolution (which is by default 384x288).
Secondly, the coordinates define a drawing rectangle, not a moving area.
The previous code was making subtitles move from a random position to
another random position.

Here we rescale assuming the video resolution is a DVD one (720x480). We
can't really do anything better so far, but since this positioning
information is often from a DVD rip we can consider them relatively
safe.

5 years agoavcodec/ass: make default playback resolution available to decoders
Clément Bœsch [Sun, 8 Feb 2015 11:32:54 +0000 (12:32 +0100)]
avcodec/ass: make default playback resolution available to decoders

5 years agoavcodec/ppc/h264dsp: POWER LE support in h264_idct_dc_add_internal() fix vec_lvsl bug
Rong Yan [Thu, 14 May 2015 06:43:44 +0000 (06:43 +0000)]
avcodec/ppc/h264dsp: POWER LE support in h264_idct_dc_add_internal() fix vec_lvsl bug

We got defective video when use GCC 4.9.2 instead of GCC 4.9.1 to compile FFMEPG. And further found
that GCC 4.8 and 4.9 need patch to fix the lvsl/lvsr bug on POWER LE, and GCC 5.1 contains
the correct code since its release. The message on gcc-patches requesting approval for lvsl/lvsr
patch is at https://gcc.gnu.org/ml/gcc-patches/2014-10/msg00228.html.

The fixed code avoids using lvsl and will not depends on GCC version, also it uses less instructions on POWER LE.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC uni hv mc functions
Shivraj Patil [Fri, 8 May 2015 08:02:01 +0000 (13:32 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC uni hv mc functions

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/nutdec: Remove unused variable
Michael Niedermayer [Thu, 14 May 2015 00:23:08 +0000 (02:23 +0200)]
avformat/nutdec: Remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agonutdec: Remove unused label
Timothy Gu [Wed, 13 May 2015 23:23:09 +0000 (16:23 -0700)]
nutdec: Remove unused label

Added in 361702660d2c37a63b7d6381d39e1e1de8405260. Modified version that
doesn't use this label merged in 55231323b0fdc84a529418d673148cf1f3157229,
thus obsoleting this label.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/msrledec: Ask for sample that uses a branch with a unused byte
Michael Niedermayer [Wed, 13 May 2015 23:15:20 +0000 (01:15 +0200)]
avcodec/msrledec: Ask for sample that uses a branch with a unused byte

Finding out if this is correct or buggy is easiest with a sample

Fixes: CID1297620

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/on2avc: Check run more carefully
Michael Niedermayer [Wed, 13 May 2015 23:01:35 +0000 (01:01 +0200)]
avcodec/on2avc: Check run more carefully

Fixes CID1239106

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mpeg4audio: add some padding/alignment to MAX_PCE_SIZE
Michael Niedermayer [Wed, 13 May 2015 22:09:56 +0000 (00:09 +0200)]
avcodec/mpeg4audio: add some padding/alignment to MAX_PCE_SIZE

This avoids potential accesses over the end

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoswr: fix alignment issue caused by 8ch sse functions
Rainer Hochecker [Wed, 13 May 2015 16:31:27 +0000 (18:31 +0200)]
swr: fix alignment issue caused by 8ch sse functions

Fix crash when doing 8 ch conversion from apps compiled with MSVS
Thanks to Ronald for giving this hint:
https://ffmpeg.org/pipermail/ffmpeg-devel/2015-May/173049.html

Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'e7c5e17d4fbd7c83fb331bf327e25ebd8e6a8623'
Michael Niedermayer [Wed, 13 May 2015 20:34:59 +0000 (22:34 +0200)]
Merge commit 'e7c5e17d4fbd7c83fb331bf327e25ebd8e6a8623'

* commit 'e7c5e17d4fbd7c83fb331bf327e25ebd8e6a8623':
  vda: Make output CVPixelBuffer format configurable

Conflicts:
doc/APIchanges
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '3b5e5e6a29d62462d0505287042fa4c2b99c4f2b'
Michael Niedermayer [Wed, 13 May 2015 20:25:50 +0000 (22:25 +0200)]
Merge commit '3b5e5e6a29d62462d0505287042fa4c2b99c4f2b'

* commit '3b5e5e6a29d62462d0505287042fa4c2b99c4f2b':
  libx265: Use the Multi-library Interface

See: 94c20de429420f541aba2d371c6175e8658f8353
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '85ca012ba680bdf942d95ab98c74f6a28f447588'
Michael Niedermayer [Wed, 13 May 2015 20:18:08 +0000 (22:18 +0200)]
Merge commit '85ca012ba680bdf942d95ab98c74f6a28f447588'

* commit '85ca012ba680bdf942d95ab98c74f6a28f447588':
  mjpegenc: Fix JFIF header byte ordering

Conflicts:
libavcodec/mjpegenc_common.c

See: b19313218c32fa9446d474cbddb11c0776868cd3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'd84429d41e24437536907af1e6b73197ecf3f6db'
Michael Niedermayer [Wed, 13 May 2015 20:10:54 +0000 (22:10 +0200)]
Merge commit 'd84429d41e24437536907af1e6b73197ecf3f6db'

* commit 'd84429d41e24437536907af1e6b73197ecf3f6db':
  dnxhd: Print unknown header when found

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '8fc11abe1fea4f211cc7dbd58a173d1221627d90'
Michael Niedermayer [Wed, 13 May 2015 20:04:02 +0000 (22:04 +0200)]
Merge commit '8fc11abe1fea4f211cc7dbd58a173d1221627d90'

* commit '8fc11abe1fea4f211cc7dbd58a173d1221627d90':
  mkv: Print unsupported mov tags when found

Conflicts:
libavformat/matroskadec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/qdrw: cleanup skip code
Michael Niedermayer [Wed, 13 May 2015 19:12:28 +0000 (21:12 +0200)]
avcodec/qdrw: cleanup skip code

Skip 512 byte sectors until a non zero resolution is found

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '0348e74c01a099a3787ae21df1c2a742fc846163'
Michael Niedermayer [Wed, 13 May 2015 18:47:20 +0000 (20:47 +0200)]
Merge commit '0348e74c01a099a3787ae21df1c2a742fc846163'

* commit '0348e74c01a099a3787ae21df1c2a742fc846163':
  quickdraw: Skip the empty 512 byte header for images

See: b453e768427969b170820e8e8fe51c84856563b2
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'd0dce15da34c0e4eee6c683be299de0221db00d3'
Michael Niedermayer [Wed, 13 May 2015 18:38:15 +0000 (20:38 +0200)]
Merge commit 'd0dce15da34c0e4eee6c683be299de0221db00d3'

* commit 'd0dce15da34c0e4eee6c683be299de0221db00d3':
  quickdraw: Make the palette opaque

Conflicts:
libavcodec/qdrw.c

See: 9f9a1f424ed4db992f8a773b2eaad4941de3e9e6
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agocafdec: free extradata before allocating it
Andreas Cadhalpun [Tue, 12 May 2015 22:22:03 +0000 (00:22 +0200)]
cafdec: free extradata before allocating it

This fixes a memleak if read_kuki_chunk is executed more than once.

Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
5 years agocafdec: check avio_read return value
Andreas Cadhalpun [Tue, 12 May 2015 21:49:45 +0000 (23:49 +0200)]
cafdec: check avio_read return value

If avio_read fails, the buffer can contain uninitialized values.

Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
5 years agoavcodec/mjpegdec: fix len computation in ff_mjpeg_decode_dqt()
Michael Niedermayer [Wed, 13 May 2015 16:36:19 +0000 (18:36 +0200)]
avcodec/mjpegdec: fix len computation in ff_mjpeg_decode_dqt()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mjpegdec: Check len in ff_mjpeg_decode_dht()
Michael Niedermayer [Wed, 13 May 2015 15:41:41 +0000 (17:41 +0200)]
avcodec/mjpegdec: Check len in ff_mjpeg_decode_dht()

Fixes CID1239167

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovda: Make output CVPixelBuffer format configurable
Stefano Pigozzi [Sun, 10 May 2015 19:32:59 +0000 (21:32 +0200)]
vda: Make output CVPixelBuffer format configurable

This is useful for client programs to ask for nv12 surfaces instead of the
current default (uyvy), since those are more efficient to decode to.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoavcodec/mjpegdec: Check len in ff_mjpeg_decode_dqt()
Michael Niedermayer [Wed, 13 May 2015 14:51:20 +0000 (16:51 +0200)]
avcodec/mjpegdec: Check len in ff_mjpeg_decode_dqt()

Fixes CID1239060

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolibx265: Use the Multi-library Interface
Gopu Govindaswamy [Mon, 11 May 2015 15:25:59 +0000 (16:25 +0100)]
libx265: Use the Multi-library Interface

Use the Multi-library interface to load at runtime x265 libraries
supporting alternative bit depths (e.g. 8bit and 16bit).

The linked library will try to load the library supporting the
pixel format if it is not supported by itself.

Fallback requesting the native library (passing 0 to x265_api_get) if
a library supporting the requested bit depth is not available.

Signed-off-by: Gopu Govindaswamy <gopu@multicorewareinc.com>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoavcodec/jpeglsdec: assert that overflows end at exactly x=w
Michael Niedermayer [Wed, 13 May 2015 13:48:17 +0000 (15:48 +0200)]
avcodec/jpeglsdec: assert that overflows end at exactly x=w

If that ever was untrue, there would be a bug in the code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/jpeg2000dec: fix boolean operator
Michael Niedermayer [Wed, 13 May 2015 13:15:55 +0000 (15:15 +0200)]
avcodec/jpeg2000dec: fix boolean operator

Fixes CID1271791 #7-6

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/hevc_ps: Move log2_ctb_size checks up to prevent undefined shift operations
Michael Niedermayer [Wed, 13 May 2015 12:38:11 +0000 (14:38 +0200)]
avcodec/hevc_ps: Move log2_ctb_size checks up to prevent undefined shift operations

Fixes CID1292293

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/hevc_ps: Explicitly check num_tile_* for negative values
Michael Niedermayer [Wed, 13 May 2015 11:53:33 +0000 (13:53 +0200)]
avcodec/hevc_ps: Explicitly check num_tile_* for negative values

This fixes nothing but maybe helps coverity which does not see that this is failing later

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/hevc_ps: Check vps_num_hrd_parameters
Michael Niedermayer [Wed, 13 May 2015 11:35:57 +0000 (13:35 +0200)]
avcodec/hevc_ps: Check vps_num_hrd_parameters

Fix CID1239052 part2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/hevc_ps: More completely check vps_num_layer_sets
Michael Niedermayer [Wed, 13 May 2015 11:35:37 +0000 (13:35 +0200)]
avcodec/hevc_ps: More completely check vps_num_layer_sets

Fixes CID1239052  part1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/hevc: Simplify entry_point_offset parsing
Michael Niedermayer [Wed, 13 May 2015 11:24:36 +0000 (13:24 +0200)]
avcodec/hevc: Simplify entry_point_offset parsing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/hevc: Check num_entry_point_offsets
Michael Niedermayer [Wed, 13 May 2015 11:21:52 +0000 (13:21 +0200)]
avcodec/hevc: Check num_entry_point_offsets

Fixes CID1239099 part 2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/hevc: Check offset_len
Michael Niedermayer [Wed, 13 May 2015 11:13:07 +0000 (13:13 +0200)]
avcodec/hevc: Check offset_len

Fixes CID1239099 part 1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodoc/ffprobe.xsd: add build_date and build_time as optional attributes
Dave Rice [Tue, 12 May 2015 20:52:55 +0000 (16:52 -0400)]
doc/ffprobe.xsd: add build_date and build_time as optional attributes

This partly undoes 7b35a01.

The intent of patch 7b35a01 was to no longer use build_date and
build_time as attributes of programVersion, but the patch also had the
effect of making all records generated with an earlier ffprobe build with
build_date and build_time as invalid.

This patch puts the two attributes back but without mandating their use,
thus older ffprobe records as backwards compatible with the current
schema and their use is no longer required.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
5 years agodoc/ffprobe.xsd: remove extra sequence from streamType
Dave Rice [Tue, 12 May 2015 20:44:52 +0000 (16:44 -0400)]
doc/ffprobe.xsd: remove extra sequence from streamType

This makes the XSD valid again. Fixes a regression from a72b61a.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
5 years agolibswscale/x86/hscale_fast_bilinear_simd.c: There's no need to save BX if it's in...
Nick Lewycky [Wed, 13 May 2015 01:08:45 +0000 (18:08 -0700)]
libswscale/x86/hscale_fast_bilinear_simd.c: There's no need to save BX if it's in the clobber list.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolibswscale/x86/hscale_fast_bilinear_simd.c: Include BX in the clobber list on x86_64...
Nick Lewycky [Wed, 13 May 2015 01:07:57 +0000 (18:07 -0700)]
libswscale/x86/hscale_fast_bilinear_simd.c: Include BX in the clobber list on x86_64, because it isn't implicitly included when PIC is on.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoconfigure: disabled -mips64 option for loongson and remove redundant cpuflags
周晓勇 [Wed, 13 May 2015 04:50:20 +0000 (12:50 +0800)]
configure: disabled -mips64 option for loongson and remove redundant cpuflags

1.Option -march=loongson3a conflicts with -mips64 or -mips64r2.
2.Option -mhard-float has been removed.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoimgutils: initialize palette padding bytes in av_image_alloc
Andreas Cadhalpun [Tue, 12 May 2015 19:45:42 +0000 (21:45 +0200)]
imgutils: initialize palette padding bytes in av_image_alloc

av_image_fill_pointers always aligns the palette, but the padding
bytes don't (and can't) get initialized in av_image_copy.

Thus initialize them in av_image_alloc.

This fixes 'Syscall param write(buf) points to uninitialised byte(s)'
valgrind warnings.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoaacdec: remove a duplicated line
Andreas Cadhalpun [Tue, 12 May 2015 20:06:22 +0000 (22:06 +0200)]
aacdec: remove a duplicated line

got_frame_ptr is set again after the if block.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavfilter/vf_zoompan: free out AVFrame on failure
Michael Niedermayer [Tue, 12 May 2015 17:59:37 +0000 (19:59 +0200)]
avfilter/vf_zoompan: free out AVFrame on failure

Fixes: CID1197065

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/hevc_sei: Check num_sps_ids_minus1 value
Michael Niedermayer [Tue, 12 May 2015 23:31:15 +0000 (01:31 +0200)]
avcodec/hevc_sei: Check num_sps_ids_minus1 value

Fixes CID1271794

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/vqavideo: Check chunk size
Michael Niedermayer [Tue, 12 May 2015 22:41:38 +0000 (00:41 +0200)]
avcodec/vqavideo: Check chunk size

Fixes CID1239154

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoaacdec: don't return frames without data
Andreas Cadhalpun [Tue, 12 May 2015 18:27:21 +0000 (20:27 +0200)]
aacdec: don't return frames without data

Since commit 676a395a aac->frame->data is not necessarily allocated at
the end of aac_decode_frame_int if avctx->channels is 0.

In this case a bogus frame without any data, but non-zero nb_samples is
returned.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavfilter/avf_showcqt: Fix gamma comparisons
Michael Niedermayer [Tue, 12 May 2015 18:31:21 +0000 (20:31 +0200)]
avfilter/avf_showcqt: Fix gamma comparisons

Fixes CID1297587, CID1297586, 1297585

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavfilter/vf_cover_rect: Handle the case where the cover rectangle is as large as...
Michael Niedermayer [Tue, 12 May 2015 18:19:47 +0000 (20:19 +0200)]
avfilter/vf_cover_rect: Handle the case where the cover rectangle is as large as the input

Fixes division by 0
Fixes CID1297575

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavfilter/vf_fftfilt: Add MAX_PLANES and change it to 4
Michael Niedermayer [Tue, 12 May 2015 18:08:18 +0000 (20:08 +0200)]
avfilter/vf_fftfilt: Add MAX_PLANES and change it to 4

The 4th planes is currently unused as no formats with alpha are supported yet

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/hevc: Check num_negative_pics and num_positive_pics
Michael Niedermayer [Tue, 12 May 2015 17:28:15 +0000 (19:28 +0200)]
avformat/hevc: Check num_negative_pics and num_positive_pics

Fixes CID1238994

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/hevc: Check cpb_cnt_minus1
Michael Niedermayer [Tue, 12 May 2015 17:09:06 +0000 (19:09 +0200)]
avformat/hevc: Check cpb_cnt_minus1

Fixes CID1239014

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/hls: Handle read_buffer allocation failure
Michael Niedermayer [Tue, 12 May 2015 17:03:18 +0000 (19:03 +0200)]
avformat/hls: Handle read_buffer allocation failure

Fixes CID1297576

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/idcin: Remove redundant chunk size check
Michael Niedermayer [Tue, 12 May 2015 16:40:16 +0000 (18:40 +0200)]
avformat/idcin: Remove redundant chunk size check

Fixes CID1138438

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/matroskadec: Cleanup error handling for bz2 & zlib
Michael Niedermayer [Tue, 12 May 2015 16:32:12 +0000 (18:32 +0200)]
avformat/matroskadec: Cleanup error handling for bz2 & zlib

Fixes CID703652

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/nutdec: Fix use of uinitialized value
Michael Niedermayer [Tue, 12 May 2015 16:20:23 +0000 (18:20 +0200)]
avformat/nutdec: Fix use of uinitialized value

Fixes CID1041175

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/rtpdec_xiph: Move pkt_len onto one side of the check
Michael Niedermayer [Tue, 12 May 2015 16:07:32 +0000 (18:07 +0200)]
avformat/rtpdec_xiph: Move pkt_len onto one side of the check

This is more correct
Fixes CID1271793

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/rtpdec_xiph: Check upper bound on len in xiph_handle_packet()
Michael Niedermayer [Tue, 12 May 2015 16:03:55 +0000 (18:03 +0200)]
avformat/rtpdec_xiph: Check upper bound on len in xiph_handle_packet()

Larger packets are not supported and would cause problems later

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/rtpenc_jpeg: Check remaining buffer size for SOS
Michael Niedermayer [Tue, 12 May 2015 15:55:40 +0000 (17:55 +0200)]
avformat/rtpenc_jpeg: Check remaining buffer size for SOS

Fixes CID1238818

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agomjpegenc: Fix JFIF header byte ordering
Shiina Hideaki [Thu, 7 May 2015 00:46:55 +0000 (01:46 +0100)]
mjpegenc: Fix JFIF header byte ordering

The header had a wrong version description.

Bug-Id: 808
Signed-off-by: Shiina Hideaki <shiina@yndrd.com>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
5 years agodnxhd: Print unknown header when found
Vittorio Giovara [Tue, 12 May 2015 15:19:12 +0000 (16:19 +0100)]
dnxhd: Print unknown header when found

5 years agomkv: Print unsupported mov tags when found
Vittorio Giovara [Mon, 11 May 2015 16:23:43 +0000 (17:23 +0100)]
mkv: Print unsupported mov tags when found

5 years agoquickdraw: Skip the empty 512 byte header for images
Vittorio Giovara [Mon, 11 May 2015 19:11:04 +0000 (20:11 +0100)]
quickdraw: Skip the empty 512 byte header for images

Found-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
5 years agoquickdraw: Make the palette opaque
Carl Eugen Hoyos [Mon, 11 May 2015 19:11:03 +0000 (20:11 +0100)]
quickdraw: Make the palette opaque

Additional overflow fix by Michael Niedermayer <michaelni@gmx.at>.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
5 years agoavformat/riffenc: Use size_t for strlen in ff_riff_write_info_tag()
Michael Niedermayer [Tue, 12 May 2015 11:36:54 +0000 (13:36 +0200)]
avformat/riffenc: Use size_t for strlen in ff_riff_write_info_tag()

Also dont generated corrupted output for larger than 4gb strings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavfilter/af_aphaser: reject too small delay
Paul B Mahol [Tue, 12 May 2015 12:02:49 +0000 (12:02 +0000)]
avfilter/af_aphaser: reject too small delay

Signed-off-by: Paul B Mahol <onemda@gmail.com>
5 years agolavf/img2dec: add option to disable pattern matching
Marton Balint [Tue, 12 May 2015 00:22:02 +0000 (02:22 +0200)]
lavf/img2dec: add option to disable pattern matching

Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate: Test pullup and fieldmatch with 5 instead of 1 frame
Michael Niedermayer [Sun, 10 May 2015 22:44:14 +0000 (00:44 +0200)]
fate: Test pullup and fieldmatch with 5 instead of 1 frame

Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'da5c6a97bbfe34d4b30a89e72150dd400299ddce'
Michael Niedermayer [Tue, 12 May 2015 10:16:07 +0000 (12:16 +0200)]
Merge commit 'da5c6a97bbfe34d4b30a89e72150dd400299ddce'

* commit 'da5c6a97bbfe34d4b30a89e72150dd400299ddce':
  riff: Add MultiScope II fourcc MSC2 as MJPEG

See: e31cdb5cc8080e164c66838a69f37f60f2d0ea82
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '0670acc4f1c4ceb16968818a654e07a3f550a8c9'
Michael Niedermayer [Tue, 12 May 2015 10:06:35 +0000 (12:06 +0200)]
Merge commit '0670acc4f1c4ceb16968818a654e07a3f550a8c9'

* commit '0670acc4f1c4ceb16968818a654e07a3f550a8c9':
  dca_parser: Extend DTS core sync word and fix existing check

Conflicts:
libavcodec/dca_parser.c

See: e80b2b9c81716a5d9f559c04cfe69d76b04e4cd3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agotools/graph2dot: use larger data types than int for array/string sizes
Michael Niedermayer [Tue, 12 May 2015 01:59:30 +0000 (03:59 +0200)]
tools/graph2dot: use larger data types than int for array/string sizes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/internal: Fix warning about struct declaration
Michael Niedermayer [Tue, 12 May 2015 01:20:49 +0000 (03:20 +0200)]
avformat/internal: Fix warning about struct declaration

Moving ffio_open2_wrapper() to internal as it uses AVFormatContext

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoriff: Add MultiScope II fourcc MSC2 as MJPEG
Carl Eugen Hoyos [Fri, 8 May 2015 14:39:23 +0000 (15:39 +0100)]
riff: Add MultiScope II fourcc MSC2 as MJPEG

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>