ffmpeg.git
5 years agoswresample: add swr_is_initialized()
Michael Niedermayer [Sat, 22 Feb 2014 21:28:24 +0000 (22:28 +0100)]
swresample: add swr_is_initialized()

Idea-from/based-on: 7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731
Reviewed-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agooggdec: validate VP8 keyframes
James Almer [Thu, 9 Jan 2014 22:17:50 +0000 (19:17 -0300)]
oggdec: validate VP8 keyframes

Fixes seeking with broken files

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 23 Feb 2014 21:52:42 +0000 (22:52 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  x86: add detection for Bit Manipulation Instruction sets

Conflicts:
libavutil/x86/cpu.c

See: 0bc3de19ffe296254f214dc7615e624d8e401bcb
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '1b932eb1508f550fac9e911923a0383efda53aa3'
Michael Niedermayer [Sun, 23 Feb 2014 21:42:43 +0000 (22:42 +0100)]
Merge commit '1b932eb1508f550fac9e911923a0383efda53aa3'

* commit '1b932eb1508f550fac9e911923a0383efda53aa3':
  x86: add detection for FMA3 instruction set

Conflicts:
configure
libavutil/cpu.h
libavutil/x86/cpu.c

See: a2af8eddab75f1eac712411e4dde89823c0845e8
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '10b0161d78148f46eaffb29ea022378947eaef2c'
Michael Niedermayer [Sun, 23 Feb 2014 21:32:51 +0000 (22:32 +0100)]
Merge commit '10b0161d78148f46eaffb29ea022378947eaef2c'

* commit '10b0161d78148f46eaffb29ea022378947eaef2c':
  x86: add missing XOP checks and macros

Conflicts:
configure
libavutil/x86/cpu.h

See: 6c12b1de064d2604d19cb4c238a788cfed9679ac
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '5800ba0db667630e6ff81d30f03961ea10726aa6'
Michael Niedermayer [Sun, 23 Feb 2014 21:25:08 +0000 (22:25 +0100)]
Merge commit '5800ba0db667630e6ff81d30f03961ea10726aa6'

* commit '5800ba0db667630e6ff81d30f03961ea10726aa6':
  configure: disable cpunop if the check fails

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoconfigure: Move cpunop into ARCH_EXT_LIST_X86
Diego Biurrun [Sat, 2 Nov 2013 16:21:52 +0000 (17:21 +0100)]
configure: Move cpunop into ARCH_EXT_LIST_X86

It is a processor feature, so it belongs there.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '8eeacf31c5ea37baf6b222dc38d20cf4fd33c455'
Michael Niedermayer [Sun, 23 Feb 2014 21:17:19 +0000 (22:17 +0100)]
Merge commit '8eeacf31c5ea37baf6b222dc38d20cf4fd33c455'

* commit '8eeacf31c5ea37baf6b222dc38d20cf4fd33c455':
  hevc: Do not left shift a negative value in hevc_loop_filter_chroma

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'ff486c0f7f6b2ace3f0238660bc06cc35b389676'
Michael Niedermayer [Sun, 23 Feb 2014 21:10:58 +0000 (22:10 +0100)]
Merge commit 'ff486c0f7f6b2ace3f0238660bc06cc35b389676'

* commit 'ff486c0f7f6b2ace3f0238660bc06cc35b389676':
  hevc: Do not right shift a negative value in get_pcm

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '50c988aa6d6c6f0ceb8f922bcea34800b56b85d9'
Michael Niedermayer [Sun, 23 Feb 2014 21:02:45 +0000 (22:02 +0100)]
Merge commit '50c988aa6d6c6f0ceb8f922bcea34800b56b85d9'

* commit '50c988aa6d6c6f0ceb8f922bcea34800b56b85d9':
  hevc: Drop unnecessary shifts in deblocking_filter_CTB

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/pngenc: fix invalid read in sub filter.
Clément Bœsch [Sun, 23 Feb 2014 19:11:30 +0000 (20:11 +0100)]
avcodec/pngenc: fix invalid read in sub filter.

First pixel was computed based on invalid address read, and then
corrected by the following memcpy. After the commit, it's not computed
anymore, and memcpy fills the appropriate area.

Fixes Ticket #3387

5 years agoavcodec/h264: clear chroma planes when flags gray is used
Michael Niedermayer [Sun, 23 Feb 2014 17:20:05 +0000 (18:20 +0100)]
avcodec/h264: clear chroma planes when flags gray is used

Fixes Ticket3397
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mpegvideo: fix buffer clear code so it should work with negative linesizes
Michael Niedermayer [Sun, 23 Feb 2014 17:14:59 +0000 (18:14 +0100)]
avcodec/mpegvideo: fix buffer clear code so it should work with negative linesizes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86: add detection for Bit Manipulation Instruction sets
James Almer [Sat, 22 Feb 2014 04:54:02 +0000 (04:54 +0000)]
x86: add detection for Bit Manipulation Instruction sets

Based on x264 code

Signed-off-by: James Almer <jamrial@gmail.com>
5 years agox86: add detection for FMA3 instruction set
James Almer [Sat, 22 Feb 2014 04:54:01 +0000 (04:54 +0000)]
x86: add detection for FMA3 instruction set

Based on x264 code

Signed-off-by: James Almer <jamrial@gmail.com>
5 years agox86: add missing XOP checks and macros
James Almer [Sat, 22 Feb 2014 04:54:00 +0000 (04:54 +0000)]
x86: add missing XOP checks and macros

Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoconfigure: disable cpunop if the check fails
Janne Grunau [Sun, 23 Feb 2014 13:09:06 +0000 (14:09 +0100)]
configure: disable cpunop if the check fails

Moving cpunop from the HAVE_LIST to the ARCH_EXT_LIST_X86 has the side
effect of enabling it. The semantics of the check have to be changed
from enable if successful to disable if unsuccessful. This was missing
in 2b0bb69997c2416e74f41aa1400ce983bf8775c0 causing build errors with
nasm.

5 years agohevc: Do not left shift a negative value in hevc_loop_filter_chroma
Luca Barbato [Wed, 19 Feb 2014 20:56:35 +0000 (21:56 +0100)]
hevc: Do not left shift a negative value in hevc_loop_filter_chroma

5 years agohevc: Do not right shift a negative value in get_pcm
Luca Barbato [Wed, 19 Feb 2014 21:21:43 +0000 (22:21 +0100)]
hevc: Do not right shift a negative value in get_pcm

5 years agohevc: Drop unnecessary shifts in deblocking_filter_CTB
Luca Barbato [Wed, 19 Feb 2014 19:38:53 +0000 (20:38 +0100)]
hevc: Drop unnecessary shifts in deblocking_filter_CTB

beta_offset is pre-multiplied by 2.

5 years agoAdd more Bayer colour spaces to the video4linux2 device wrapper.
Carl Eugen Hoyos [Sun, 23 Feb 2014 09:47:18 +0000 (10:47 +0100)]
Add more Bayer colour spaces to the video4linux2 device wrapper.

5 years agoavdevice/v4l2: add V4L2_PIX_FMT_SRGGB8
Peter Ross [Sat, 22 Feb 2014 12:42:15 +0000 (23:42 +1100)]
avdevice/v4l2: add V4L2_PIX_FMT_SRGGB8

5 years agoIssue-#3407 : Enhance precision for double to string conversion, useful for GEOTIFF...
Sylvain Fabre [Sun, 23 Feb 2014 09:30:37 +0000 (10:30 +0100)]
Issue-#3407 : Enhance precision for double to string conversion, useful for GEOTIFF double values

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolibswscale: bayer to rgb24 & yv12 colorspace converters
Peter Ross [Sun, 23 Feb 2014 01:18:57 +0000 (12:18 +1100)]
libswscale: bayer to rgb24 & yv12 colorspace converters

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/rawdec: for 16-bit pix fmts, shift pixels when bits_per_coded_sample < 16
Peter Ross [Sun, 23 Feb 2014 01:18:42 +0000 (12:18 +1100)]
avcodec/rawdec: for 16-bit pix fmts, shift pixels when bits_per_coded_sample < 16

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil/pixdesc: set bayer pixfmt descriptor flags
Peter Ross [Sun, 23 Feb 2014 01:18:33 +0000 (12:18 +1100)]
avutil/pixdesc: set bayer pixfmt descriptor flags

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoconfigure: Revert commit 5176e9651bda5182df008a1226e2484fdd809985
Dave Yeo [Sun, 23 Feb 2014 00:04:43 +0000 (16:04 -0800)]
configure: Revert commit 5176e9651bda5182df008a1226e2484fdd809985

This fixes cpunop detection and unbreaks NASM assembly

Signed-off-by: Dave Yeo <daveryeo@telus.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoSupport old qclp-in-mov files that do not store bytes_per_frame in the header.
Carl Eugen Hoyos [Sat, 22 Feb 2014 23:41:53 +0000 (00:41 +0100)]
Support old qclp-in-mov files that do not store bytes_per_frame in the header.

Fixes ticket #2649.

5 years agoSupport MPEG-2 video mov files with sample description mp2v.
Carl Eugen Hoyos [Sat, 22 Feb 2014 23:31:50 +0000 (00:31 +0100)]
Support MPEG-2 video mov files with sample description mp2v.

5 years agoavformat/movenc: shift positive timestamps to 0 if edit lists cannot be used
Michael Niedermayer [Fri, 21 Feb 2014 01:48:39 +0000 (02:48 +0100)]
avformat/movenc: shift positive timestamps to 0 if edit lists cannot be used

Fix handling of timestamps which start  far away from 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/mux: support shifting timestamps so they start at 0
Michael Niedermayer [Fri, 21 Feb 2014 01:43:04 +0000 (02:43 +0100)]
avformat/mux: support shifting timestamps so they start at 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoswresample: factorize clear_context() out
Michael Niedermayer [Sat, 22 Feb 2014 20:36:30 +0000 (21:36 +0100)]
swresample: factorize clear_context() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 22 Feb 2014 20:11:59 +0000 (21:11 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavr: return an error if a avresample_open() is called on an open context

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731'
Michael Niedermayer [Sat, 22 Feb 2014 20:05:58 +0000 (21:05 +0100)]
Merge commit '7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731'

* commit '7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731':
  lavr: add a function for checking whether AVAudioResampleContext is open

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavr: return an error if a avresample_open() is called on an open context
Anton Khirnov [Thu, 25 Apr 2013 18:12:47 +0000 (20:12 +0200)]
lavr: return an error if a avresample_open() is called on an open context

5 years agolavr: add a function for checking whether AVAudioResampleContext is open
Anton Khirnov [Thu, 25 Apr 2013 18:08:49 +0000 (20:08 +0200)]
lavr: add a function for checking whether AVAudioResampleContext is open

5 years agoavformat/nut: add bayer colorspaces
Peter Ross [Sat, 22 Feb 2014 12:41:59 +0000 (23:41 +1100)]
avformat/nut: add bayer colorspaces

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/raw: add bayer formats
Peter Ross [Sat, 22 Feb 2014 12:41:41 +0000 (23:41 +1100)]
avcodec/raw: add bayer formats

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86: add detection for Bit Manipulation Instruction sets
James Almer [Sat, 22 Feb 2014 05:47:02 +0000 (02:47 -0300)]
x86: add detection for Bit Manipulation Instruction sets

Based on x264 code

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86: add detection for FMA3 instruction set
James Almer [Sat, 22 Feb 2014 05:47:01 +0000 (02:47 -0300)]
x86: add detection for FMA3 instruction set

Based on x264 code

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 22 Feb 2014 14:41:10 +0000 (15:41 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  h264: Fix a typo from the previous commit

See: 76dd01ecd4ed51e0669773470ee0d8db2c2e4d3f
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/utils: compute_pkt_fields: Fix DTS for the case where has_b_frames is too...
Michael Niedermayer [Sat, 22 Feb 2014 12:04:18 +0000 (13:04 +0100)]
avformat/utils: compute_pkt_fields: Fix DTS for the case where has_b_frames is too large but the correct one is constant

Fixes issue1.m2ts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/utils: reset pts_buffer in estimate_timings_from_pts()
Michael Niedermayer [Sat, 22 Feb 2014 13:22:31 +0000 (14:22 +0100)]
avformat/utils: reset pts_buffer in estimate_timings_from_pts()

This fixes the first few dts after find_stream_info

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/utils: factorize h264/hevc checks out in compute_pkt_fields()
Michael Niedermayer [Sat, 22 Feb 2014 11:21:28 +0000 (12:21 +0100)]
avformat/utils: factorize h264/hevc checks out in compute_pkt_fields()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoSDR2 demuxer
Paul B Mahol [Thu, 16 Jan 2014 14:25:38 +0000 (14:25 +0000)]
SDR2 demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
5 years agoh264: Fix a typo from the previous commit
Luca Barbato [Sat, 22 Feb 2014 10:19:03 +0000 (11:19 +0100)]
h264: Fix a typo from the previous commit

f777504f640260337974848c7d5d7a3f064bbb45 changed a - in +

CC: libav-stable@libav.org
5 years agoFix FSF address in colormatrix and libzvbi license headers.
Carl Eugen Hoyos [Sat, 22 Feb 2014 10:17:56 +0000 (11:17 +0100)]
Fix FSF address in colormatrix and libzvbi license headers.

As reported by irc user aca.
The files in compat/avisynth are maintained elsewhere, no changes.

5 years agoavcodec/h264_ps: fix printed num_reorder_frames value
Michael Niedermayer [Sat, 22 Feb 2014 01:55:55 +0000 (02:55 +0100)]
avcodec/h264_ps: fix printed num_reorder_frames value

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/h264: use subsample factors of the used pixel format
Michael Niedermayer [Fri, 21 Feb 2014 22:51:33 +0000 (23:51 +0100)]
avcodec/h264: use subsample factors of the used pixel format

Fixes out of array read
Fixes: 1cb91c36c4e55463f14aacb9bdf55b38-asan_heap-oob_106cbce_5617_cov_11212800_h264_mmx_chroma_intra_lf.mp4
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 21 Feb 2014 20:14:37 +0000 (21:14 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mxf: Add DNxHD UL

See: 2ff540a0fe02c2d2588a7d2aa7820e66a615de95
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'a9099e04026f300924ac363fa6f8aef912677d90'
Michael Niedermayer [Fri, 21 Feb 2014 19:49:54 +0000 (20:49 +0100)]
Merge commit 'a9099e04026f300924ac363fa6f8aef912677d90'

* commit 'a9099e04026f300924ac363fa6f8aef912677d90':
  mxf: Add uncompressed 422 8-bit rawvideo UL

Conflicts:
libavformat/mxf.c

See: 51d632cc8f4c8fa1556d7d8c18c5488700eb6154
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoqcelp: grammar
Reynaldo H. Verdejo Pinochet [Fri, 14 Feb 2014 20:42:23 +0000 (17:42 -0300)]
qcelp: grammar

Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
5 years agoqcelpdec: break some too-long lines
Reynaldo H. Verdejo Pinochet [Fri, 14 Feb 2014 20:31:50 +0000 (17:31 -0300)]
qcelpdec: break some too-long lines

Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
5 years agoMerge remote-tracking branch 'cehoyos/master'
Michael Niedermayer [Fri, 21 Feb 2014 17:45:11 +0000 (18:45 +0100)]
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Do not warn about missing start time for unknown streams.
  Only complain about missing frame rate for video streams.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agotests/tiny_ssim: drop isatty() support
Michael Niedermayer [Fri, 21 Feb 2014 15:34:56 +0000 (16:34 +0100)]
tests/tiny_ssim: drop isatty() support

tiny_ssim is build on the host, not the target and the HAVE_* are set for the
target.
This patch fixes building tiny_ssim when HAVE_* differed between target and host

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoDo not warn about missing start time for unknown streams.
Carl Eugen Hoyos [Fri, 21 Feb 2014 16:27:37 +0000 (17:27 +0100)]
Do not warn about missing start time for unknown streams.

5 years agoOnly complain about missing frame rate for video streams.
Carl Eugen Hoyos [Fri, 21 Feb 2014 16:27:20 +0000 (17:27 +0100)]
Only complain about missing frame rate for video streams.

5 years agomxf: Add DNxHD UL
Tomas Härdin [Sat, 10 Mar 2012 16:03:00 +0000 (17:03 +0100)]
mxf: Add DNxHD UL

Note that the old DNxHD UL is actually JPEG 2000 according to RP224.
Leaving it as-is for now.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agomxf: Add uncompressed 422 8-bit rawvideo UL
Philip de Nier [Tue, 28 Feb 2012 14:16:37 +0000 (14:16 +0000)]
mxf: Add uncompressed 422 8-bit rawvideo UL

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 21 Feb 2014 12:53:24 +0000 (13:53 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  libvorbis: Give consistent names to all functions, structs, and defines

Conflicts:
libavcodec/libvorbisenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolibvorbis: Give consistent names to all functions, structs, and defines
Diego Biurrun [Fri, 21 Feb 2014 10:08:09 +0000 (11:08 +0100)]
libvorbis: Give consistent names to all functions, structs, and defines

5 years agoavformat/movenc: assert that get_cluster_duration() value is valid
Michael Niedermayer [Fri, 21 Feb 2014 01:15:58 +0000 (02:15 +0100)]
avformat/movenc: assert that get_cluster_duration() value is valid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/movenc: check that the input timestamps are within the range that can be...
Michael Niedermayer [Fri, 21 Feb 2014 01:30:19 +0000 (02:30 +0100)]
avformat/movenc: check that the input timestamps are within the range that can be stored in mov

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/h264: fix sign error
Michael Niedermayer [Thu, 20 Feb 2014 23:33:23 +0000 (00:33 +0100)]
avcodec/h264: fix sign error

regression since f777504f640260337974848c7d5d7a3f064bbb45

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec: fix dxva2 & vaapi after removing the +52 offset from the loop filter parameters
Michael Niedermayer [Thu, 20 Feb 2014 23:21:22 +0000 (00:21 +0100)]
avcodec: fix dxva2 & vaapi after removing the +52 offset from the loop filter parameters

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 20 Feb 2014 23:19:07 +0000 (00:19 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  h264: Lower bound check for slice offsets

Conflicts:
libavcodec/h264.c

See: 91253839e14cce9793ee93f184cef609ca8195d5
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '5c79d2e12d13959fc6aed92d102c25194a06de05'
Michael Niedermayer [Thu, 20 Feb 2014 22:58:40 +0000 (23:58 +0100)]
Merge commit '5c79d2e12d13959fc6aed92d102c25194a06de05'

* commit '5c79d2e12d13959fc6aed92d102c25194a06de05':
  avconv: Do not divide by zero

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'd6a27f885b5d4cba7a82e50af423c741d2f37c3e'
Michael Niedermayer [Thu, 20 Feb 2014 22:38:30 +0000 (23:38 +0100)]
Merge commit 'd6a27f885b5d4cba7a82e50af423c741d2f37c3e'

* commit 'd6a27f885b5d4cba7a82e50af423c741d2f37c3e':
  configure: Add usan to the toolchain presets

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '2b0bb69997c2416e74f41aa1400ce983bf8775c0'
Michael Niedermayer [Thu, 20 Feb 2014 22:27:13 +0000 (23:27 +0100)]
Merge commit '2b0bb69997c2416e74f41aa1400ce983bf8775c0'

* commit '2b0bb69997c2416e74f41aa1400ce983bf8775c0':
  configure: Move cpunop into ARCH_EXT_LIST_X86

Conflicts:
configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '6adf4290ebcf65ac8243d74f34ba0a508f561633'
Michael Niedermayer [Thu, 20 Feb 2014 22:18:02 +0000 (23:18 +0100)]
Merge commit '6adf4290ebcf65ac8243d74f34ba0a508f561633'

* commit '6adf4290ebcf65ac8243d74f34ba0a508f561633':
  configure: Move inet_aton check into network function check block

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '9c029f67ca82147ddfa83a1546ee1e109e11fbd4'
Michael Niedermayer [Thu, 20 Feb 2014 22:13:06 +0000 (23:13 +0100)]
Merge commit '9c029f67ca82147ddfa83a1546ee1e109e11fbd4'

* commit '9c029f67ca82147ddfa83a1546ee1e109e11fbd4':
  aarch64: use EXTERN_ASM consistently for exported symbols

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '996697e266c8adc0ad9b7fc7568406c7529c97cf'
Michael Niedermayer [Thu, 20 Feb 2014 22:11:19 +0000 (23:11 +0100)]
Merge commit '996697e266c8adc0ad9b7fc7568406c7529c97cf'

* commit '996697e266c8adc0ad9b7fc7568406c7529c97cf':
  x86: float dsp: unroll SSE versions

See: 133b34207c2ca3ae214dfd429288ac6e31efa5dc
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'ef010f08ae53479c54e2f16be5a7e1a809a9e268'
Michael Niedermayer [Thu, 20 Feb 2014 22:07:15 +0000 (23:07 +0100)]
Merge commit 'ef010f08ae53479c54e2f16be5a7e1a809a9e268'

* commit 'ef010f08ae53479c54e2f16be5a7e1a809a9e268':
  dca: replace some memcpy by AV_COPY128

See: 5a48caa34b0c2a2641ea3bd522802fa1df2c8866
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '982b596ea6640bfe218a31f6c3fc542d9fe61c31'
Michael Niedermayer [Thu, 20 Feb 2014 21:48:00 +0000 (22:48 +0100)]
Merge commit '982b596ea6640bfe218a31f6c3fc542d9fe61c31'

* commit '982b596ea6640bfe218a31f6c3fc542d9fe61c31':
  h264: avoid undefined behavior in chroma motion compensation

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoh264: Lower bound check for slice offsets
Vittorio Giovara [Thu, 20 Feb 2014 01:38:32 +0000 (02:38 +0100)]
h264: Lower bound check for slice offsets

And use the value from the specification.

Sample-Id: 00000451-google
Found-by: Mateusz j00ru Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoavconv: Do not divide by zero
Luca Barbato [Wed, 19 Feb 2014 20:41:12 +0000 (21:41 +0100)]
avconv: Do not divide by zero

5 years agoconfigure: Add usan to the toolchain presets
Luca Barbato [Wed, 19 Feb 2014 19:20:39 +0000 (20:20 +0100)]
configure: Add usan to the toolchain presets

clang-3.4 and gcc-4.9 have it.

5 years agoconfigure: Move cpunop into ARCH_EXT_LIST_X86
Diego Biurrun [Sat, 2 Nov 2013 16:21:52 +0000 (17:21 +0100)]
configure: Move cpunop into ARCH_EXT_LIST_X86

It is a processor feature, so it belongs there.

5 years agoconfigure: Move inet_aton check into network function check block
Diego Biurrun [Sat, 2 Nov 2013 16:21:50 +0000 (17:21 +0100)]
configure: Move inet_aton check into network function check block

5 years agoavformat/mov: make invalid sampledelta error more verbose
Michael Niedermayer [Thu, 20 Feb 2014 17:04:44 +0000 (18:04 +0100)]
avformat/mov: make invalid sampledelta error more verbose

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'cigaes/master'
Michael Niedermayer [Thu, 20 Feb 2014 15:29:09 +0000 (16:29 +0100)]
Merge remote-tracking branch 'cigaes/master'

* cigaes/master:
  ffmpeg: make reading packets from thread blocking.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 20 Feb 2014 14:42:50 +0000 (15:42 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mpeg4video_parser: Drop pointless av_-prefix from static function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '984e3398662d460e15904f9e4a6df9ef759070cb'
Michael Niedermayer [Thu, 20 Feb 2014 14:22:37 +0000 (15:22 +0100)]
Merge commit '984e3398662d460e15904f9e4a6df9ef759070cb'

* commit '984e3398662d460e15904f9e4a6df9ef759070cb':
  avcodec: Consistently name encoder init functions foo_encode_init

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoaarch64: use EXTERN_ASM consistently for exported symbols
Janne Grunau [Fri, 7 Feb 2014 15:05:50 +0000 (16:05 +0100)]
aarch64: use EXTERN_ASM consistently for exported symbols

Based on e3fec3f095ab5ea08ee662942d98526aaf5e3635 for arm.

5 years agoMerge commit '017a06a9ee86b047079166c2694c9c655ff03356'
Michael Niedermayer [Thu, 20 Feb 2014 13:57:58 +0000 (14:57 +0100)]
Merge commit '017a06a9ee86b047079166c2694c9c655ff03356'

* commit '017a06a9ee86b047079166c2694c9c655ff03356':
  x86: dsputil: Use correct file name as multiple inclusion guard

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'ba42c852477e87f6e47a5587e8f7829c46c52032'
Michael Niedermayer [Thu, 20 Feb 2014 13:46:28 +0000 (14:46 +0100)]
Merge commit 'ba42c852477e87f6e47a5587e8f7829c46c52032'

* commit 'ba42c852477e87f6e47a5587e8f7829c46c52032':
  bit_depth_template: Use file name as multiple inclusion guard

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '61e7c7f27b0a2652bf5cd282b97762ee99d025ef'
Michael Niedermayer [Thu, 20 Feb 2014 13:44:40 +0000 (14:44 +0100)]
Merge commit '61e7c7f27b0a2652bf5cd282b97762ee99d025ef'

* commit '61e7c7f27b0a2652bf5cd282b97762ee99d025ef':
  svq3: Adjust #endif comment

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '192ccc5034ad4ac1b5022fc16c1162267add6a0f'
Michael Niedermayer [Thu, 20 Feb 2014 13:39:33 +0000 (14:39 +0100)]
Merge commit '192ccc5034ad4ac1b5022fc16c1162267add6a0f'

* commit '192ccc5034ad4ac1b5022fc16c1162267add6a0f':
  build: The MPEG-4 video parser depends on h263dsp

Conflicts:
configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86: float dsp: unroll SSE versions
Christophe Gisquet [Fri, 14 Feb 2014 15:03:12 +0000 (15:03 +0000)]
x86: float dsp: unroll SSE versions

vector_fmul and vector_fmac_scalar are guaranteed that they can process in
batch of 16 elements, but their SSE versions only does 8 at a time.

Therefore, unroll them a bit.
299 to 261c for 256 elements in vector_fmac_scalar on Arrandale/Win64.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
5 years agodca: replace some memcpy by AV_COPY128
Christophe Gisquet [Fri, 14 Feb 2014 15:03:10 +0000 (15:03 +0000)]
dca: replace some memcpy by AV_COPY128

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
5 years agoh264: avoid undefined behavior in chroma motion compensation
Janne Grunau [Fri, 14 Feb 2014 16:00:06 +0000 (17:00 +0100)]
h264: avoid undefined behavior in chroma motion compensation

Makes fate-h264 pass under valgrind --undef-value-errors=yes with
-cpuflags none. {avg,put}_h264_chroma_mc8_8 approximately 5% faster,
{avg,put}_h264_chroma_mc4_8 2% faster both on x86 and arm.

5 years agompeg4video_parser: Drop pointless av_-prefix from static function
Diego Biurrun [Thu, 20 Feb 2014 10:27:21 +0000 (02:27 -0800)]
mpeg4video_parser: Drop pointless av_-prefix from static function

5 years agoavcodec: Consistently name encoder init functions foo_encode_init
Diego Biurrun [Thu, 6 Feb 2014 17:29:51 +0000 (18:29 +0100)]
avcodec: Consistently name encoder init functions foo_encode_init

5 years agox86: dsputil: Use correct file name as multiple inclusion guard
Diego Biurrun [Mon, 23 Dec 2013 15:39:36 +0000 (16:39 +0100)]
x86: dsputil: Use correct file name as multiple inclusion guard

5 years agobit_depth_template: Use file name as multiple inclusion guard
Diego Biurrun [Sun, 22 Dec 2013 13:19:28 +0000 (14:19 +0100)]
bit_depth_template: Use file name as multiple inclusion guard

5 years agosvq3: Adjust #endif comment
Diego Biurrun [Tue, 28 Jan 2014 07:23:02 +0000 (08:23 +0100)]
svq3: Adjust #endif comment

5 years agobuild: The MPEG-4 video parser depends on h263dsp
Diego Biurrun [Wed, 19 Feb 2014 19:33:28 +0000 (20:33 +0100)]
build: The MPEG-4 video parser depends on h263dsp

The dependency is indirect through the h263/mpegvideo code.
CC: libav-stable@libav.org
5 years agoffmpeg: make reading packets from thread blocking.
Nicolas George [Fri, 25 Oct 2013 08:58:14 +0000 (10:58 +0200)]
ffmpeg: make reading packets from thread blocking.

If a packet is not ready on the input selected by ffmpeg,
it will read from another input instead. If that happens
repeatedly, frames will accumulate somewhere later in the
processing to ensure streams synchronization. It can happen
in particular when reading from a slow medium or an
expensive lavfi filter graph.

Make reading from normal demuxers on non-streamed data and
from the lavfi pseudo-device blocking to avoid that.

Should fix trac ticket #3079.

5 years agoavcodec/mpeg4videodec: Check for bitstream overread in decode_vol_header()
Michael Niedermayer [Thu, 20 Feb 2014 04:48:54 +0000 (05:48 +0100)]
avcodec/mpeg4videodec: Check for bitstream overread in decode_vol_header()

Fixes out of array read
Fixes: 08e48e9daae7d8f8ab6dbe3919e797e5-asan_heap-oob_157461c_5295_cov_1266798650_firefing.mpg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavf/mux: check av_dup_packet() return value.
Nicolas George [Wed, 19 Feb 2014 16:43:46 +0000 (17:43 +0100)]
lavf/mux: check av_dup_packet() return value.

Signed-off-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>