ffmpeg.git
4 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC qpel functions
Shivraj Patil [Thu, 11 Jun 2015 06:01:12 +0000 (11:31 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC qpel functions

This patch adds MSA (MIPS-SIMD-Arch) optimizations for AVC qpel functions in new file h264qpel_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h

Added const to local static array.

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoexamples/decoding_encoding: Use the AVFrame width/height for processing images after...
Michael Niedermayer [Wed, 10 Jun 2015 20:00:30 +0000 (22:00 +0200)]
examples/decoding_encoding: Use the AVFrame width/height for processing images after decoding

This is what FFmpeg / FFplay do and it is more robust

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoffprobe: check av_asprintf() for failure
Michael Niedermayer [Fri, 12 Jun 2015 23:08:16 +0000 (01:08 +0200)]
ffprobe: check av_asprintf() for failure

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/smvjpegdec: assert that the pixel format that has been set by our decoder...
Michael Niedermayer [Fri, 12 Jun 2015 22:27:21 +0000 (00:27 +0200)]
avcodec/smvjpegdec: assert that the pixel format that has been set by our decoder is valid

If we do check av_pix_fmt_desc_get() then we should fail and
not continue with an invalid pix_fmt

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavfilter/drawutils: Fix format validity check in ff_draw_init()
Michael Niedermayer [Fri, 12 Jun 2015 22:06:28 +0000 (00:06 +0200)]
avfilter/drawutils: Fix format validity check in ff_draw_init()

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavutil/imgutils: Simplify pix_fmt validity check in av_image_get_linesize()
Michael Niedermayer [Fri, 12 Jun 2015 21:23:59 +0000 (23:23 +0200)]
avutil/imgutils: Simplify pix_fmt validity check in av_image_get_linesize()

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '3b73d5c942f44b37f0e44276ebcfd66c8b12c02d'
Michael Niedermayer [Fri, 12 Jun 2015 21:11:15 +0000 (23:11 +0200)]
Merge commit '3b73d5c942f44b37f0e44276ebcfd66c8b12c02d'

* commit '3b73d5c942f44b37f0e44276ebcfd66c8b12c02d':
  fft-test: Use the float fabs() version

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '2d5176fad1a4556d209cbfb0f681712c7eada4fd'
Michael Niedermayer [Fri, 12 Jun 2015 21:03:12 +0000 (23:03 +0200)]
Merge commit '2d5176fad1a4556d209cbfb0f681712c7eada4fd'

* commit '2d5176fad1a4556d209cbfb0f681712c7eada4fd':
  on2avc: Use the integer abs() version

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'a7ac1a7b94447f33ae95be4d6d186e2775977f91'
Michael Niedermayer [Fri, 12 Jun 2015 20:55:49 +0000 (22:55 +0200)]
Merge commit 'a7ac1a7b94447f33ae95be4d6d186e2775977f91'

* commit 'a7ac1a7b94447f33ae95be4d6d186e2775977f91':
  flv: Name an enum and use its type

Conflicts:
libavformat/flvdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '30dfc1dad4285e7362ce3f596d7c5d5d9b7fb33d'
Michael Niedermayer [Fri, 12 Jun 2015 20:45:53 +0000 (22:45 +0200)]
Merge commit '30dfc1dad4285e7362ce3f596d7c5d5d9b7fb33d'

* commit '30dfc1dad4285e7362ce3f596d7c5d5d9b7fb33d':
  cws2fws: Close file handles on error

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'a9b2a51178ea446909015f061ab5df65e3b66bf6'
Michael Niedermayer [Fri, 12 Jun 2015 20:34:53 +0000 (22:34 +0200)]
Merge commit 'a9b2a51178ea446909015f061ab5df65e3b66bf6'

* commit 'a9b2a51178ea446909015f061ab5df65e3b66bf6':
  avconv_opt: Check localtime() return value

Conflicts:
ffmpeg_opt.c

See: 8e91d9652ea5048d9014e7636e12c6ed4732d7b7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '8a78ae2d2101622fd244b99178d8bc61175c878e'
Michael Niedermayer [Fri, 12 Jun 2015 20:10:34 +0000 (22:10 +0200)]
Merge commit '8a78ae2d2101622fd244b99178d8bc61175c878e'

* commit '8a78ae2d2101622fd244b99178d8bc61175c878e':
  segment: Check open_null_ctx() return value

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'b7a4127a45b780d76e6b09427a3d0197c4bc1cdb'
Michael Niedermayer [Fri, 12 Jun 2015 19:55:24 +0000 (21:55 +0200)]
Merge commit 'b7a4127a45b780d76e6b09427a3d0197c4bc1cdb'

* commit 'b7a4127a45b780d76e6b09427a3d0197c4bc1cdb':
  h264_qpel: Use the correct header

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '5e87080f2c73186066df0b9c43877b4af0beef3a'
Michael Niedermayer [Fri, 12 Jun 2015 19:44:33 +0000 (21:44 +0200)]
Merge commit '5e87080f2c73186066df0b9c43877b4af0beef3a'

* commit '5e87080f2c73186066df0b9c43877b4af0beef3a':
  h264_weight: Fix SSSE3 biweight code with weights of 128

Conflicts:
libavcodec/x86/h264_weight.asm

See: e1009665759d4a3938dd2dd07b7e84d8bc9c5290
See: fb2288834ba8a51e8934cfe8b82ac468144a34df
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '64a2e844166d62093b45e680874eea8bd1facf5b'
Michael Niedermayer [Fri, 12 Jun 2015 19:42:36 +0000 (21:42 +0200)]
Merge commit '64a2e844166d62093b45e680874eea8bd1facf5b'

* commit '64a2e844166d62093b45e680874eea8bd1facf5b':
  eamad: Use the correct headers

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '8606e881b02bec2ac24943d22c8afe11d641fac8'
Michael Niedermayer [Fri, 12 Jun 2015 19:33:53 +0000 (21:33 +0200)]
Merge commit '8606e881b02bec2ac24943d22c8afe11d641fac8'

* commit '8606e881b02bec2ac24943d22c8afe11d641fac8':
  mpeg12: Move the vlc bits to a stand alone file

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'f1fa1eed2abdc8dfb0af318a43f5d293b81141bd'
Michael Niedermayer [Fri, 12 Jun 2015 19:14:34 +0000 (21:14 +0200)]
Merge commit 'f1fa1eed2abdc8dfb0af318a43f5d293b81141bd'

* commit 'f1fa1eed2abdc8dfb0af318a43f5d293b81141bd':
  mpegvideo: Expand macro

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoh264: update avctx width/height/pix_fmt when returning frame
Andreas Cadhalpun [Tue, 9 Jun 2015 21:38:26 +0000 (23:38 +0200)]
h264: update avctx width/height/pix_fmt when returning frame

Inconsistencies between the dimensions/pixel format of avctx and the
frame can confuse API users.
For example this can crash the demuxing_decoding example.

Back up the previous values and restore them, when decoding the next
frame. This is necessary, because these can be different between the
returned frame and the last decoded frame.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
4 years agoMerge commit 'e7af52a68dde9144b273a9598b60bf0f56e1323b'
Michael Niedermayer [Fri, 12 Jun 2015 19:05:09 +0000 (21:05 +0200)]
Merge commit 'e7af52a68dde9144b273a9598b60bf0f56e1323b'

* commit 'e7af52a68dde9144b273a9598b60bf0f56e1323b':
  mpegvideo: rv10: Move function declaration to a separate header

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'e3d0f49abb20a551bf6d885f75c354d6d0bbeb9d'
Michael Niedermayer [Fri, 12 Jun 2015 18:57:37 +0000 (20:57 +0200)]
Merge commit 'e3d0f49abb20a551bf6d885f75c354d6d0bbeb9d'

* commit 'e3d0f49abb20a551bf6d885f75c354d6d0bbeb9d':
  mpegvideo: h263: Move all tables to a single file

Conflicts:
libavcodec/h263.h
libavcodec/h263data.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '8b5007a31b8d1ddbe3661bf45a732336450b7d25'
Michael Niedermayer [Fri, 12 Jun 2015 18:47:14 +0000 (20:47 +0200)]
Merge commit '8b5007a31b8d1ddbe3661bf45a732336450b7d25'

* commit '8b5007a31b8d1ddbe3661bf45a732336450b7d25':
  mpegvideo: Move ER functions to a separate file

Conflicts:
libavcodec/mpegvideo.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolibavcodec/imgconvert.c: support left band while cropping
Przemysław Sobala [Fri, 12 Jun 2015 16:38:05 +0000 (18:38 +0200)]
libavcodec/imgconvert.c: support left band while cropping

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/mxfdec: Detect jpeg2000 through codec_ul too
Michael Niedermayer [Fri, 12 Jun 2015 16:56:02 +0000 (18:56 +0200)]
avformat/mxfdec: Detect jpeg2000 through codec_ul too

Fixes Ticket2345

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agodoc/filters: add one more zoompan example
Paul B Mahol [Fri, 12 Jun 2015 17:33:13 +0000 (17:33 +0000)]
doc/filters: add one more zoompan example

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agomatroskadec: verify seekhead IDs
wm4 [Fri, 12 Jun 2015 11:11:41 +0000 (13:11 +0200)]
matroskadec: verify seekhead IDs

Some files have SeekHead elements with broken IDs. They mismatch with
the ID of the destination element. These files are written by
"IDMmkvlib0.1" (as identified by the MuxingApp and WritingApp elements),
and the SeekHead IDs are actually endian-swapped.

This confuses the SeekHead logic of the demuxer. It will read some
elements twice, because the SeekHead ID is used to identify and remember
already read elements. With the file at hand, the stream list was
duplicated by reading the Tracks element twice.

Fix this by rejecting invalid EBML IDs in SeekHead entries. (This fix is
relatively specific to the broken file at hand, and doesn't protect
against some other cases of broken SeekHead, such as valid but
mismatching target element IDs.)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavfilter/vf_zoompan: support planar rgb pixel formats
Paul B Mahol [Fri, 12 Jun 2015 17:14:08 +0000 (17:14 +0000)]
avfilter/vf_zoompan: support planar rgb pixel formats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agofft-test: Use the float fabs() version
Vittorio Giovara [Fri, 12 Jun 2015 16:04:20 +0000 (17:04 +0100)]
fft-test: Use the float fabs() version

Fixes clang warning "absolute value function 'fabsf' given an argument
of type 'double' but has parameter of type 'float' which may cause
truncation of value [-Wabsolute-value]".

4 years agoon2avc: Use the integer abs() version
Vittorio Giovara [Fri, 12 Jun 2015 11:32:38 +0000 (12:32 +0100)]
on2avc: Use the integer abs() version

Fixes clang warning "floating point absolute value function 'fabsf'
when argument is of integer type [-Wabsolute-value]".

4 years agoflv: Name an enum and use its type
Vittorio Giovara [Thu, 11 Jun 2015 13:27:27 +0000 (14:27 +0100)]
flv: Name an enum and use its type

4 years agocws2fws: Close file handles on error
Vittorio Giovara [Fri, 12 Jun 2015 13:01:22 +0000 (14:01 +0100)]
cws2fws: Close file handles on error

Reported-By: infer
4 years agoavconv_opt: Check localtime() return value
Vittorio Giovara [Fri, 12 Jun 2015 12:39:17 +0000 (13:39 +0100)]
avconv_opt: Check localtime() return value

Reported-By: infer
4 years agosegment: Check open_null_ctx() return value
Vittorio Giovara [Fri, 12 Jun 2015 12:39:16 +0000 (13:39 +0100)]
segment: Check open_null_ctx() return value

Reported-By: infer
4 years agoh264_qpel: Use the correct header
Vittorio Giovara [Fri, 12 Jun 2015 11:29:07 +0000 (12:29 +0100)]
h264_qpel: Use the correct header

4 years agoh264_weight: Fix SSSE3 biweight code with weights of 128
Michael Niedermayer [Fri, 12 Jun 2015 11:58:42 +0000 (12:58 +0100)]
h264_weight: Fix SSSE3 biweight code with weights of 128

CC: libav-stable@libav.org
Sample-Id: test_bref.mp4

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
4 years agoavcodec/jpeg2000dec: Reduce verbosity of get_plt()
Michael Niedermayer [Fri, 12 Jun 2015 14:48:57 +0000 (16:48 +0200)]
avcodec/jpeg2000dec: Reduce verbosity of get_plt()

The existence of such element does not represent an error

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Fallback to yuv if no matching xyz format exists
Michael Niedermayer [Fri, 12 Jun 2015 14:28:53 +0000 (16:28 +0200)]
avcodec/jpeg2000dec: Fallback to yuv if no matching xyz format exists

Fixes Ticket4471

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Do not abort if prc is outside limits
Michael Niedermayer [Fri, 12 Jun 2015 14:26:27 +0000 (16:26 +0200)]
avcodec/jpeg2000dec: Do not abort if prc is outside limits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoffmpeg_opt: Check for localtime() failure
Michael Niedermayer [Fri, 12 Jun 2015 13:36:20 +0000 (15:36 +0200)]
ffmpeg_opt: Check for localtime() failure

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMark vectors as NAN instead of dereferencing NULL pointers on malloc failure
Michael Niedermayer [Fri, 12 Jun 2015 13:03:49 +0000 (15:03 +0200)]
Mark vectors as NAN instead of dereferencing NULL pointers on malloc failure

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoswscale: Assert that pixel format descriptor is not NULL
Michael Niedermayer [Fri, 12 Jun 2015 12:39:28 +0000 (14:39 +0200)]
swscale: Assert that pixel format descriptor is not NULL

This may help static analyzers, the pixel format is checked
during initialization

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Assert that pixel format descriptor is not NULL
Michael Niedermayer [Fri, 12 Jun 2015 12:33:53 +0000 (14:33 +0200)]
avcodec/jpeg2000dec: Assert that pixel format descriptor is not NULL

We only look up pixel formats from a fixed list so none should ever
fail to be found

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/mpegts: recognizes and export private streams
Michael Niedermayer [Thu, 4 Jun 2015 21:46:21 +0000 (23:46 +0200)]
avformat/mpegts: recognizes and export private streams

Based on patch by Wolfgang Lorenz <wl-chmw@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoconfigure: Disable VSX on unspecified / generic CPUs
Michael Niedermayer [Fri, 12 Jun 2015 11:20:25 +0000 (13:20 +0200)]
configure: Disable VSX on unspecified / generic CPUs

Fixes fate tests on PPC64be

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoeamad: Use the correct headers
Luca Barbato [Wed, 10 Jun 2015 13:29:09 +0000 (14:29 +0100)]
eamad: Use the correct headers

Untangle eamad from the mpeg12.h header and speed up rebuilding.

4 years agompeg12: Move the vlc bits to a stand alone file
Luca Barbato [Wed, 10 Jun 2015 13:29:08 +0000 (14:29 +0100)]
mpeg12: Move the vlc bits to a stand alone file

4 years agompegvideo: Expand macro
Vittorio Giovara [Wed, 10 Jun 2015 13:29:07 +0000 (14:29 +0100)]
mpegvideo: Expand macro

Having this macro in an header only facilitates the use of such header.
The code increase is minimal and files have one less dependency
on mpegvideo.h.

4 years agompegvideo: rv10: Move function declaration to a separate header
Vittorio Giovara [Wed, 10 Jun 2015 13:29:06 +0000 (14:29 +0100)]
mpegvideo: rv10: Move function declaration to a separate header

4 years agompegvideo: h263: Move all tables to a single file
Vittorio Giovara [Wed, 10 Jun 2015 13:29:05 +0000 (14:29 +0100)]
mpegvideo: h263: Move all tables to a single file

4 years agompegvideo: Move ER functions to a separate file
Vittorio Giovara [Wed, 10 Jun 2015 13:29:04 +0000 (14:29 +0100)]
mpegvideo: Move ER functions to a separate file

4 years agoavcodec/jpeg2000dec: Do not hardcode tile part usage
Michael Niedermayer [Fri, 12 Jun 2015 02:35:18 +0000 (04:35 +0200)]
avcodec/jpeg2000dec: Do not hardcode tile part usage

Fixes part of Ticket 4605

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Do not print a warning for RLCP
Michael Niedermayer [Fri, 12 Jun 2015 02:36:38 +0000 (04:36 +0200)]
avcodec/jpeg2000dec: Do not print a warning for RLCP

It seems to be working now

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Remove unused variable and argument
Michael Niedermayer [Fri, 12 Jun 2015 01:33:31 +0000 (03:33 +0200)]
avcodec/jpeg2000dec: Remove unused variable and argument

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Fix Selective arithmetic coding bypass and Multiple codeword...
Michael Niedermayer [Fri, 12 Jun 2015 01:06:56 +0000 (03:06 +0200)]
avcodec/jpeg2000dec: Fix Selective arithmetic coding bypass and Multiple codeword segments

These 2 are highly related so they are in the same commit
Fixes part of Ticket4605
Fixes p0_04.j2k

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/mqcdec: Support raw bypass and non reseting init
Michael Niedermayer [Fri, 12 Jun 2015 01:02:09 +0000 (03:02 +0200)]
avcodec/mqcdec: Support raw bypass and non reseting init

Some broken code that used the old mqc is removed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: add some sanity checking on newpasses
Michael Niedermayer [Fri, 12 Jun 2015 00:02:04 +0000 (02:02 +0200)]
avcodec/jpeg2000dec: add some sanity checking on newpasses

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Add some additional checking on lengthinc
Michael Niedermayer [Thu, 11 Jun 2015 23:13:55 +0000 (01:13 +0200)]
avcodec/jpeg2000dec: Add some additional checking on lengthinc

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Print warning for "Selective arithmetic coding bypass"
Michael Niedermayer [Thu, 11 Jun 2015 20:33:53 +0000 (22:33 +0200)]
avcodec/jpeg2000dec: Print warning for "Selective arithmetic coding bypass"

This is implemented but i suspect does not work correctly as no file using this
seems to decode correctly.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Implement progression order RLCP
Michael Niedermayer [Thu, 11 Jun 2015 19:10:44 +0000 (21:10 +0200)]
avcodec/jpeg2000dec: Implement progression order RLCP

This works with one of 2 RLCP samples i have, the other appears to also
use selective arithemtic coding bypass which may or may not be the reason why it does
not work

Sample: p0_16.j2k

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC idct functions
Shivraj Patil [Wed, 10 Jun 2015 14:18:40 +0000 (19:48 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC idct functions

This patch adds MSA (MIPS-SIMD-Arch) optimizations for AVC idct functions in new file h264idct_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC intra prediction functions
Shivraj Patil [Wed, 10 Jun 2015 14:18:39 +0000 (19:48 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC intra prediction functions

This patch adds MSA (MIPS-SIMD-Arch) optimizations for AVC intra prediction functions in new file h264pred_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavutil/softfloat: Move av_sf2double() to header
Michael Niedermayer [Thu, 11 Jun 2015 14:16:38 +0000 (16:16 +0200)]
avutil/softfloat: Move av_sf2double() to header

It was not intended to be a static private function

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavutil/softfloat: properly separate testcode
Michael Niedermayer [Thu, 11 Jun 2015 14:12:24 +0000 (16:12 +0200)]
avutil/softfloat: properly separate testcode

This matches how other self tests are implemented

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/avio: move short seek threshold to the context
Michael Niedermayer [Tue, 2 Jun 2015 16:40:53 +0000 (18:40 +0200)]
avformat/avio: move short seek threshold to the context

This allows us to adjust it internally.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/aiffdec: avoid double and ldexp()
Michael Niedermayer [Sun, 7 Jun 2015 21:50:13 +0000 (23:50 +0200)]
avformat/aiffdec: avoid double and ldexp()

There is no support for non integer sample rates, using doubles/floats currently could
only lead to rounding differences between platforms

Previous version Reviewed-by: Mark Harris <mark.hsj@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/mips: Add 'const' to static arrays in HEVC MSA code
Shivraj Patil [Thu, 11 Jun 2015 08:37:50 +0000 (14:07 +0530)]
avcodec/mips: Add 'const' to static arrays in HEVC MSA code

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC chroma mc functions
Shivraj Patil [Thu, 11 Jun 2015 05:57:01 +0000 (11:27 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC chroma mc functions

s patch adds MSA (MIPS-SIMD-Arch) optimizations for AVC chroma mc functions in new file h264chroma_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolibvpxenc: add overshoot-pct option
James Zern [Sat, 6 Jun 2015 17:24:44 +0000 (10:24 -0700)]
libvpxenc: add overshoot-pct option

balances the presence of undershoot-pct

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Zern <jzern@google.com>
4 years agolibvpxenc: add undershoot-pct option
James Zern [Sat, 6 Jun 2015 17:10:56 +0000 (10:10 -0700)]
libvpxenc: add undershoot-pct option

replaces deprecated rc_buffer_aggressivity

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Zern <jzern@google.com>
4 years agoavcodec/pcm-dvd: Fix debug == FF_DEBUG_PICT_INFO
Michael Niedermayer [Thu, 11 Jun 2015 02:53:37 +0000 (04:53 +0200)]
avcodec/pcm-dvd: Fix debug == FF_DEBUG_PICT_INFO

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat: Fix bug in parse_rps for HEVC.
Deliang Fu [Wed, 10 Jun 2015 04:30:46 +0000 (12:30 +0800)]
avformat: Fix bug in parse_rps for HEVC.

Make the logic in libavformat/hevc.c parse_rps align with libavcodec/hevc_ps.c ff_hevc_decode_short_term_rps

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavdevice/openal-dec: Make al_format_info const
Michael Niedermayer [Wed, 10 Jun 2015 22:28:00 +0000 (00:28 +0200)]
avdevice/openal-dec: Make al_format_info const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/movenc: Make static packed_size, const static
Michael Niedermayer [Wed, 10 Jun 2015 22:24:54 +0000 (00:24 +0200)]
avformat/movenc: Make static packed_size, const static

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/mpeg4videodec: Mark static table as const
Michael Niedermayer [Wed, 10 Jun 2015 22:20:46 +0000 (00:20 +0200)]
avcodec/mpeg4videodec: Mark static table as const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavformat/mpegts: Do not ignore registration descriptors when probing is enabled
Michael Niedermayer [Wed, 10 Jun 2015 21:16:59 +0000 (23:16 +0200)]
avformat/mpegts: Do not ignore registration descriptors when probing is enabled

This is required for the (not yet in git) private stream detection/export,
no other testcase known

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agodoc/ffmpeg: remove tips
Lou Logan [Wed, 10 Jun 2015 18:31:47 +0000 (10:31 -0800)]
doc/ffmpeg: remove tips

Ancient and misleading.

Signed-off-by: Lou Logan <lou@lrcd.com>
4 years agoMerge commit 'c0e6b8cab874db97b6818007bc86507c8d213083'
Michael Niedermayer [Wed, 10 Jun 2015 19:07:55 +0000 (21:07 +0200)]
Merge commit 'c0e6b8cab874db97b6818007bc86507c8d213083'

* commit 'c0e6b8cab874db97b6818007bc86507c8d213083':
  mpegvideo: Mark one function as static

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'd1dd0d404c085f4fce7b8358b4aea677761c5d88'
Michael Niedermayer [Wed, 10 Jun 2015 18:58:26 +0000 (20:58 +0200)]
Merge commit 'd1dd0d404c085f4fce7b8358b4aea677761c5d88'

* commit 'd1dd0d404c085f4fce7b8358b4aea677761c5d88':
  mpegvideo: Move block permutation function where is used

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit 'c6aa0554b0c3e31fec4580b68ea85b66966cd381'
Michael Niedermayer [Wed, 10 Jun 2015 18:50:36 +0000 (20:50 +0200)]
Merge commit 'c6aa0554b0c3e31fec4580b68ea85b66966cd381'

* commit 'c6aa0554b0c3e31fec4580b68ea85b66966cd381':
  mpegvideo: Drop release_unused_pictures() function

Conflicts:
libavcodec/mpegvideo.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '7061bf0925a7d6c5899bbe710b2b8cdae9005274'
Michael Niedermayer [Wed, 10 Jun 2015 18:40:18 +0000 (20:40 +0200)]
Merge commit '7061bf0925a7d6c5899bbe710b2b8cdae9005274'

* commit '7061bf0925a7d6c5899bbe710b2b8cdae9005274':
  mpegvideo: Move Picture-related functions to a separate file

Conflicts:
libavcodec/mpegvideo.c
libavcodec/mpegvideo.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMerge commit '529c05698e88b057f0bea61e0d85f2b42925b5ea'
Michael Niedermayer [Wed, 10 Jun 2015 18:18:08 +0000 (20:18 +0200)]
Merge commit '529c05698e88b057f0bea61e0d85f2b42925b5ea'

* commit '529c05698e88b057f0bea61e0d85f2b42925b5ea':
  movenc: fixes a questionable valgrind uninitialized value warning

See: 3c5c6870a7ffa4997928caddb0802c7a1e5fcfeb
Merged-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolavf/http: Correctly terminate session with HTTP POST client.
Stephan Holljes [Tue, 9 Jun 2015 20:26:48 +0000 (22:26 +0200)]
lavf/http: Correctly terminate session with HTTP POST client.

Send a footer to correctly close client sockets.
This fixes network errors in client applications.

Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/mips: remove ;;
Michael Niedermayer [Wed, 10 Jun 2015 14:23:22 +0000 (16:23 +0200)]
avcodec/mips: remove ;;

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agolibavformat/flvdec.c: don't build index_entries for input stream if AVIOContext is...
Igor Derzhavin [Wed, 10 Jun 2015 11:56:02 +0000 (14:56 +0300)]
libavformat/flvdec.c: don't build index_entries for input stream if AVIOContext is not seekable

Signed-off-by: Igor Derzhavin <igor.derzhavin@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agompegvideo: Mark one function as static
Vittorio Giovara [Mon, 8 Jun 2015 12:00:52 +0000 (13:00 +0100)]
mpegvideo: Mark one function as static

4 years agompegvideo: Move block permutation function where is used
Vittorio Giovara [Mon, 8 Jun 2015 12:00:51 +0000 (13:00 +0100)]
mpegvideo: Move block permutation function where is used

Mark it as static.

4 years agompegvideo: Drop release_unused_pictures() function
Vittorio Giovara [Mon, 8 Jun 2015 12:00:50 +0000 (13:00 +0100)]
mpegvideo: Drop release_unused_pictures() function

It is only used in one place, and it is small enough that it might be
called directly.

4 years agompegvideo: Move Picture-related functions to a separate file
Vittorio Giovara [Mon, 8 Jun 2015 12:00:49 +0000 (13:00 +0100)]
mpegvideo: Move Picture-related functions to a separate file

4 years agomovenc: fixes a questionable valgrind uninitialized value warning
Janne Grunau [Tue, 9 Jun 2015 10:27:47 +0000 (12:27 +0200)]
movenc: fixes a questionable valgrind uninitialized value warning

display_matrix_size is only initialized when av_stream_get_side_data()
returns a side data pointer. The code is safe since the only effect this
has is setting the display_matrix pointer to NULL which it was already
anyway.

4 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC intra prediction functions
Shivraj Patil [Thu, 4 Jun 2015 08:01:49 +0000 (13:31 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC intra prediction functions

This patch adds MSA (MIPS-SIMD-Arch) optimizations for HEVC intra predition functions in new file hevcpred_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC loop filter and sao functions
Shivraj Patil [Tue, 9 Jun 2015 15:20:26 +0000 (20:50 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC loop filter and sao functions

This patch adds MSA (MIPS-SIMD-Arch) optimizations for HEVC loop filter and sao functions in new file hevc_lpf_sao_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h

In this patch, in comparision with previous patch, duplicated c functions are removed.

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agotakdec: ensure chan2 is a valid channel index
Andreas Cadhalpun [Tue, 9 Jun 2015 22:12:38 +0000 (00:12 +0200)]
takdec: ensure chan2 is a valid channel index

If chan2 is not smaller than the number of channels, it can cause
segmentation faults due to dereferencing a NULL pointer.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/h264_slice: Use AVFrame diemensions for grayscale handling
Michael Niedermayer [Wed, 10 Jun 2015 09:37:48 +0000 (11:37 +0200)]
avcodec/h264_slice: Use AVFrame diemensions for grayscale handling

The AVFrame values are closer to the AVFrame bitmap changed instead of
the AVCodecContext values, so this should be more robust

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Print the correct variable in the component error message
Michael Niedermayer [Wed, 10 Jun 2015 02:50:40 +0000 (04:50 +0200)]
avcodec/jpeg2000dec: Print the correct variable in the component error message

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: increase tile_parts to 6
Michael Niedermayer [Wed, 10 Jun 2015 02:50:14 +0000 (04:50 +0200)]
avcodec/jpeg2000dec: increase tile_parts to 6

Fixes Ticket4602

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavcodec/jpeg2000dec: Fix shift for RGB(A)48/64
Michael Niedermayer [Wed, 10 Jun 2015 02:19:38 +0000 (04:19 +0200)]
avcodec/jpeg2000dec: Fix shift for RGB(A)48/64

Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoavdevice/lavfi: do not rescale AV_NOPTS_VALUE in lavfi_read_packet()
Michael Niedermayer [Tue, 9 Jun 2015 22:47:43 +0000 (00:47 +0200)]
avdevice/lavfi: do not rescale AV_NOPTS_VALUE in lavfi_read_packet()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agoMAINTAINERS: add 2.7 n2.8-dev
Michael Niedermayer [Tue, 9 Jun 2015 21:54:46 +0000 (23:54 +0200)]
MAINTAINERS: add 2.7

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agosonic: set avctx->channels in sonic_decode_init
Andreas Cadhalpun [Tue, 9 Jun 2015 20:41:24 +0000 (22:41 +0200)]
sonic: set avctx->channels in sonic_decode_init

Otherwise it can be 0 in sonic_decode_frame, causing SIGFPE crashes.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
4 years agoChangelog: Add 2.7 entry
Michael Niedermayer [Tue, 9 Jun 2015 21:14:57 +0000 (23:14 +0200)]
Changelog: Add 2.7 entry

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
4 years agodoc/APIchanges: fill in missing stuff
Michael Niedermayer [Tue, 9 Jun 2015 21:08:53 +0000 (23:08 +0200)]
doc/APIchanges: fill in missing stuff

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>