ffmpeg.git
6 years agoavcodec/jpeg2000dec: Merge i_stepsize/2 decoder special case into dequant
Michael Niedermayer [Sun, 28 Jun 2015 12:43:44 +0000 (14:43 +0200)]
avcodec/jpeg2000dec: Merge i_stepsize/2 decoder special case into dequant

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agohuffyuvdec: validate image size
Andreas Cadhalpun [Sun, 28 Jun 2015 09:21:54 +0000 (11:21 +0200)]
huffyuvdec: validate image size

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
6 years agoaacpsy: Add energy spread for each band
Rostislav Pehlivanov [Fri, 26 Jun 2015 20:16:35 +0000 (21:16 +0100)]
aacpsy: Add energy spread for each band

This commit adds the energy spread to the struct for each band and removes 2 unused fields.
distortion and perceptual_weight were not referenced in any file nor were they set to any value,
so it was safe to remove them. The energy spread is currently only used in the aac psy model.
It's defined as being proportional to the tonality of each band.

Reviewed-by: Claudio Freire <klaussfreire@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '8a26ae5f94e613dbf7eb8e3c60462e966e409cdc'
Michael Niedermayer [Sun, 28 Jun 2015 11:41:40 +0000 (13:41 +0200)]
Merge commit '8a26ae5f94e613dbf7eb8e3c60462e966e409cdc'

* commit '8a26ae5f94e613dbf7eb8e3c60462e966e409cdc':
  mpjpeg: Check stream allocation

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'b08569a23948db107e5e6175cd4c695427d5339d'
Michael Niedermayer [Sun, 28 Jun 2015 11:05:45 +0000 (13:05 +0200)]
Merge commit 'b08569a23948db107e5e6175cd4c695427d5339d'

* commit 'b08569a23948db107e5e6175cd4c695427d5339d':
  lavf: Replace the ASF demuxer

Conflicts:
Changelog
libavformat/asf.h
libavformat/asfdec.c
libavformat/version.h
tests/ref/fate/wmv8-drm-nodec
tests/ref/seek/lavf-asf

The rewritten demuxer is placed in a new file, the current demuxer is
left as default. Carl has tested both and the one working better is
default.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavformat/riffdec: Forward error code from avio_read() in ff_get_guid()
Michael Niedermayer [Sun, 28 Jun 2015 10:56:22 +0000 (12:56 +0200)]
avformat/riffdec: Forward error code from avio_read() in ff_get_guid()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agotests/fate/wma: use the existing reference files for wmapro tests
Michael Niedermayer [Sun, 28 Jun 2015 09:58:57 +0000 (11:58 +0200)]
tests/fate/wma: use the existing reference files for wmapro tests

Theres no need to upload or use new files just because they are
shorter.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '441e8ae5efd681055e5af6f4317fb60110de9dd0'
Michael Niedermayer [Sun, 28 Jun 2015 09:48:31 +0000 (11:48 +0200)]
Merge commit '441e8ae5efd681055e5af6f4317fb60110de9dd0'

* commit '441e8ae5efd681055e5af6f4317fb60110de9dd0':
  FATE: drop the last truncated frame from the wmapro tests

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'd3ea79e8a65ddad4da11813bb43c46701295f68c'
Michael Niedermayer [Sun, 28 Jun 2015 09:41:23 +0000 (11:41 +0200)]
Merge commit 'd3ea79e8a65ddad4da11813bb43c46701295f68c'

* commit 'd3ea79e8a65ddad4da11813bb43c46701295f68c':
  FATE: drop the last truncated frame from the wma lossless test

Conflicts:
tests/fate/lossless-audio.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agowavpack: use get_bits_long to read up to 32 bits
Andreas Cadhalpun [Sat, 27 Jun 2015 18:16:12 +0000 (20:16 +0200)]
wavpack: use get_bits_long to read up to 32 bits

get_bits should not be used for more than 25 bits.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
6 years agompjpeg: Check stream allocation
Luca Barbato [Sat, 27 Jun 2015 21:19:36 +0000 (23:19 +0200)]
mpjpeg: Check stream allocation

Bug-Id: CID 1308152

6 years agolavf: Replace the ASF demuxer
Alexandra Hájková [Mon, 15 Jun 2015 12:54:45 +0000 (14:54 +0200)]
lavf: Replace the ASF demuxer

The old one is the result of the reverse engineering and guesswork.
The new one has been written following the now-available specification.

This work is part of Outreach Program for Women Summer 2014 activities
for the Libav project.

The fate references had to be changed because the old demuxer truncates
the last frame in some cases, the new one handles it properly.
The seek-test reference is changed because seeking works differently
in the new demuxer. When seeking, the packet is not read from the stream
directly, but it is rather constructed by the demuxer. That is why
position is -1 now in the reference.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agoFATE: drop the last truncated frame from the wmapro tests
Anton Khirnov [Sat, 27 Jun 2015 09:46:35 +0000 (11:46 +0200)]
FATE: drop the last truncated frame from the wmapro tests

Since it's truncated, the result depends on how specifically the demuxer
and the decoder handle errors.

6 years agoFATE: drop the last truncated frame from the wma lossless test
Anton Khirnov [Sat, 27 Jun 2015 09:46:35 +0000 (11:46 +0200)]
FATE: drop the last truncated frame from the wma lossless test

Since it's truncated, the result depends on how specifically the demuxer
and the decoder handle errors.

6 years agoavcodec/jpeg2000: Support 32 decomposition levels
Michael Niedermayer [Sun, 28 Jun 2015 01:16:06 +0000 (03:16 +0200)]
avcodec/jpeg2000: Support 32 decomposition levels

Fixes Ticket4680

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoconfigure: Also create tests/api
Michael Niedermayer [Sun, 28 Jun 2015 00:41:48 +0000 (02:41 +0200)]
configure: Also create tests/api

This should fix some problems on some fate clients like openbsd

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000: support >32bit in ff_jpeg2000_ceildivpow2()
Michael Niedermayer [Sun, 28 Jun 2015 00:31:26 +0000 (02:31 +0200)]
avcodec/jpeg2000: support >32bit in ff_jpeg2000_ceildivpow2()

Fixes part of Ticket4680

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000: Avoid one shift in ff_jpeg2000_ceildivpow2()
Michael Niedermayer [Sun, 28 Jun 2015 00:27:43 +0000 (02:27 +0200)]
avcodec/jpeg2000: Avoid one shift in ff_jpeg2000_ceildivpow2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoapi-flac-test: Fix the bug of comparing zero bytes
Ludmila Glinskih [Sat, 27 Jun 2015 14:31:08 +0000 (17:31 +0300)]
api-flac-test: Fix the bug of comparing zero bytes

Add check for linesize.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoaac: add additional fields needed by the encoder for intensity stereo
Rostislav Pehlivanov [Fri, 26 Jun 2015 20:16:30 +0000 (21:16 +0100)]
aac: add additional fields needed by the encoder for intensity stereo

This commit adds additional fields which are used by the native encoder to add intensity stereo support. It also adds some clarifying statements to the comments for the codebooks.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/h264_slice: Reformat IN_RANGE() uses to be readable
Michael Niedermayer [Sat, 27 Jun 2015 21:56:41 +0000 (23:56 +0200)]
avcodec/h264_slice: Reformat IN_RANGE() uses to be readable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/h264_slice: Silence pointer type warnings
Michael Niedermayer [Sat, 27 Jun 2015 21:56:06 +0000 (23:56 +0200)]
avcodec/h264_slice: Silence pointer type warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/h264_slice: assert that the first slice implies unfinished setup
Michael Niedermayer [Sat, 27 Jun 2015 21:41:00 +0000 (23:41 +0200)]
avcodec/h264_slice: assert that the first slice implies unfinished setup

If this assert fails there is very likely a bug in the code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '5ec0bdf2c524224f30ba4786f47324970aed4aaa'
Michael Niedermayer [Sat, 27 Jun 2015 19:44:08 +0000 (21:44 +0200)]
Merge commit '5ec0bdf2c524224f30ba4786f47324970aed4aaa'

* commit '5ec0bdf2c524224f30ba4786f47324970aed4aaa':
  h264: do not update the context fields copied between threads after finish_setup()

Conflicts:
libavcodec/h264.h
libavcodec/h264_slice.c

See: f111831ed61103f9fa8fdda41473a23da016bdaa and others
Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '6d4d3fee63c46d921c4870feab79269af94e84e1'
Michael Niedermayer [Sat, 27 Jun 2015 18:41:21 +0000 (20:41 +0200)]
Merge commit '6d4d3fee63c46d921c4870feab79269af94e84e1'

* commit '6d4d3fee63c46d921c4870feab79269af94e84e1':
  h264: make sure the current picture is not made a long ref multiple times

See: 34ea5f418ef815c629b6ab38a6a2711fd7463290
Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '9a5e4fbec870c7d466b7a0aec92c70778efc96b5'
Michael Niedermayer [Sat, 27 Jun 2015 18:34:42 +0000 (20:34 +0200)]
Merge commit '9a5e4fbec870c7d466b7a0aec92c70778efc96b5'

* commit '9a5e4fbec870c7d466b7a0aec92c70778efc96b5':
  avconv: do not stop processing the input packet on decoding error

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'b114f6d48a06a4dad6882bc83e07463905f004c4'
Michael Niedermayer [Sat, 27 Jun 2015 17:21:25 +0000 (19:21 +0200)]
Merge commit 'b114f6d48a06a4dad6882bc83e07463905f004c4'

* commit 'b114f6d48a06a4dad6882bc83e07463905f004c4':
  avconv: factor out flushing the filters

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavutil/x86/intmath: add missing check for inline assembly
James Almer [Sat, 27 Jun 2015 16:45:39 +0000 (13:45 -0300)]
avutil/x86/intmath: add missing check for inline assembly

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agonutdec: check maxpos in read_sm_data before returning success
Andreas Cadhalpun [Sat, 27 Jun 2015 15:50:56 +0000 (17:50 +0200)]
nutdec: check maxpos in read_sm_data before returning success

Otherwise sm_size can be larger than size, which results in a negative
packet size.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
6 years agoMerge commit 'e49e0f58e273237f83b4486f3536931ed1943d18'
Michael Niedermayer [Sat, 27 Jun 2015 16:38:17 +0000 (18:38 +0200)]
Merge commit 'e49e0f58e273237f83b4486f3536931ed1943d18'

* commit 'e49e0f58e273237f83b4486f3536931ed1943d18':
  h264: make sure the slices do not overlap during slice threading

Conflicts:
libavcodec/h264.h
libavcodec/h264_slice.c

See: 43b434210e597d484aef57c4139c3126d22b7e2b
Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomovtextenc.c: Support for Bold, Italic and Underlined Styles
Niklesh [Fri, 26 Jun 2015 20:14:44 +0000 (01:44 +0530)]
movtextenc.c: Support for Bold, Italic and Underlined Styles

Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in>
6 years agoMerge commit 'b56b12cd12f32bf11efff05632600a7619584b98'
Michael Niedermayer [Sat, 27 Jun 2015 16:13:26 +0000 (18:13 +0200)]
Merge commit 'b56b12cd12f32bf11efff05632600a7619584b98'

* commit 'b56b12cd12f32bf11efff05632600a7619584b98':
  configure: Check for x265_api_get

Conflicts:
configure

See: f4be604f1c4d5cb6480c81c671d646cc16b02017
Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavutil/x86/intmath: use bzhi gcc builtin in av_mod_uintp2()
James Almer [Sat, 27 Jun 2015 15:50:09 +0000 (12:50 -0300)]
avutil/x86/intmath: use bzhi gcc builtin in av_mod_uintp2()

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoh264: do not update the context fields copied between threads after finish_setup()
Anton Khirnov [Sat, 9 May 2015 19:54:47 +0000 (21:54 +0200)]
h264: do not update the context fields copied between threads after finish_setup()

Should fix a large number of possible races with frame threading.

6 years agoh264: make sure the current picture is not made a long ref multiple times
Anton Khirnov [Fri, 8 May 2015 17:07:10 +0000 (19:07 +0200)]
h264: make sure the current picture is not made a long ref multiple times

Fixes possible invalid reads, once one of those refs is freed, but the
others remain.
CC: libav-stable@libav.org
6 years agoavconv: do not stop processing the input packet on decoding error
Anton Khirnov [Wed, 6 May 2015 11:55:38 +0000 (13:55 +0200)]
avconv: do not stop processing the input packet on decoding error

We still want to flush the filters on EOF and possibly apply streamcopy.

6 years agoavconv: factor out flushing the filters
Anton Khirnov [Wed, 6 May 2015 11:51:43 +0000 (13:51 +0200)]
avconv: factor out flushing the filters

This also ensures this is always done, avoiding infinite loops if an
error occurs at the end of the input.

6 years agoh264: make sure the slices do not overlap during slice threading
Anton Khirnov [Wed, 6 May 2015 09:12:55 +0000 (11:12 +0200)]
h264: make sure the slices do not overlap during slice threading

Based on a patch by Michael Niedermayer <michaelni@gmx.at>.
CC: libav-stable@libav.org
Found-by: Kieran Kunhya <kierank@obe.tv>
6 years agoavcodec/jpeg2000dec: Check for mismatching per expected termination
Michael Niedermayer [Sat, 27 Jun 2015 13:12:35 +0000 (15:12 +0200)]
avcodec/jpeg2000dec: Check for mismatching per expected termination

not just at the end

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf/brstm: if the file lies about the last block's size, correct it
Rodger Combs [Tue, 23 Jun 2015 17:35:35 +0000 (12:35 -0500)]
lavf/brstm: if the file lies about the last block's size, correct it

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoconfigure: Check for x265_api_get
Derek Buitenhuis [Fri, 26 Jun 2015 13:05:00 +0000 (14:05 +0100)]
configure: Check for x265_api_get

Any other x265 symbol may not exported, e.g. if the build is a
multilib (10-bit and 8-bit in one) build.

This is the only symbol we directly call, and is available in the
build number we check for.

Fixes the configure check on multilib x265 builds.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agoconfigure: Check for x265_api_get
Derek Buitenhuis [Fri, 26 Jun 2015 13:05:00 +0000 (14:05 +0100)]
configure: Check for x265_api_get

Any other x265 symbol may not exported, e.g. if the build is a
multilib (10-bit and 8-bit in one) build.

This is the only symbol we directly call, and is available in the
build number we check for.

Fixes the configure check on multilib x265 builds.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agoavcodec/jpeg2000dec: Limit poc end fields to whats available in jpeg2000_decode_packets()
Michael Niedermayer [Sat, 27 Jun 2015 09:48:42 +0000 (11:48 +0200)]
avcodec/jpeg2000dec: Limit poc end fields to whats available in jpeg2000_decode_packets()

Fixes: Ticket4677

Solution based on information from
https://code.google.com/p/openjpeg/issues/detail?id=80

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/utils: Replace ENOTSUP by AVERROR_PATCHWELCOME
Michael Niedermayer [Sat, 27 Jun 2015 09:19:57 +0000 (11:19 +0200)]
avcodec/utils: Replace ENOTSUP by AVERROR_PATCHWELCOME

ENOTSUP is not available on all platforms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec: Add flag for experimental HWAccels and use it for VDPAU/HEVC
Philip Langdale [Fri, 26 Jun 2015 15:43:41 +0000 (08:43 -0700)]
avcodec: Add flag for experimental HWAccels and use it for VDPAU/HEVC

This HWAccel isn't really usable right now due to an nvidia driver bug,
so we don't want it selected by default.

HWAccels have a capabilities field and there's a comment about flags,
but no flags exist today, so let's add one for experimental hwaccels.

6 years agofate/api-tests: Move api-flac-test to API tests directory.
George Boyle [Thu, 25 Jun 2015 17:37:11 +0000 (18:37 +0100)]
fate/api-tests: Move api-flac-test to API tests directory.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofate/api-tests: Add directory and Makefile for API tests
George Boyle [Thu, 25 Jun 2015 17:37:10 +0000 (18:37 +0100)]
fate/api-tests: Add directory and Makefile for API tests

The intention of this change is to allow separation of API tests from the
existing tests, and also to have a place for the API test source/executable
files so they're not mixed in with the actual library code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '92fdc80cab2acad9f171ba38a08aa89b392bdadd'
Michael Niedermayer [Fri, 26 Jun 2015 21:58:51 +0000 (23:58 +0200)]
Merge commit '92fdc80cab2acad9f171ba38a08aa89b392bdadd'

* commit '92fdc80cab2acad9f171ba38a08aa89b392bdadd':
  nvenc: Fix NV12 input

Conflicts:
libavcodec/nvenc.c

Not merged, the changed code is not in FFmpeg

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '072756cdd2f949462520041e357f52f15d8c274d'
Michael Niedermayer [Fri, 26 Jun 2015 21:35:42 +0000 (23:35 +0200)]
Merge commit '072756cdd2f949462520041e357f52f15d8c274d'

* commit '072756cdd2f949462520041e357f52f15d8c274d':
  vc1dec: use get_bits_long and limit the read bits to 32

See: 1f1e0a2971b2a01f275bb5088c2e36166514be64
Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agos302m: fix arithmetic exception
Andreas Cadhalpun [Fri, 26 Jun 2015 17:31:03 +0000 (19:31 +0200)]
s302m: fix arithmetic exception

If nb_samples is zero, the bit_rate calculation results in a division by
zero.

Since ff_get_buffer fails if frame->nb_samples is zero, this can be
fixed by moving the bit_rate calculation after that function call.

That also makes it possible to reuse the already calculated
frame->nb_samples value.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
6 years agoavcodec: Add support for per-frame AFD output in h264
Kieran Kunhya [Fri, 26 Jun 2015 20:55:06 +0000 (21:55 +0100)]
avcodec: Add support for per-frame AFD output in h264

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agonvenc: Fix NV12 input
Luca Barbato [Thu, 25 Jun 2015 23:08:42 +0000 (02:08 +0300)]
nvenc: Fix NV12 input

6 years agoavcodec/jpeg2000dec: Fix tp_index for POC
Michael Niedermayer [Fri, 26 Jun 2015 19:51:42 +0000 (21:51 +0200)]
avcodec/jpeg2000dec: Fix tp_index for POC

Fixes Ticket2586

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000dec: Print what is found in place of EPH if EPH is not found
Michael Niedermayer [Fri, 26 Jun 2015 19:03:58 +0000 (21:03 +0200)]
avcodec/jpeg2000dec: Print what is found in place of EPH if EPH is not found

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibvpx: disable unused function prototypes
James Almer [Fri, 26 Jun 2015 19:37:19 +0000 (16:37 -0300)]
libvpx: disable unused function prototypes

Fixes make checkheader

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoavcodec/jpeg2000dec: Support progression order changes
Michael Niedermayer [Fri, 26 Jun 2015 18:16:32 +0000 (20:16 +0200)]
avcodec/jpeg2000dec: Support progression order changes

Fixes Ticket4657

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000dec: Parse POCs
Michael Niedermayer [Fri, 26 Jun 2015 16:04:16 +0000 (18:04 +0200)]
avcodec/jpeg2000dec: Parse POCs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovc1dec: use get_bits_long and limit the read bits to 32
Andreas Cadhalpun [Thu, 25 Jun 2015 20:54:17 +0000 (22:54 +0200)]
vc1dec: use get_bits_long and limit the read bits to 32

get_bits should not be used with more than 25 bits.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agovc1dec: use get_bits_long and limit the read bits to 32
Andreas Cadhalpun [Thu, 25 Jun 2015 20:47:38 +0000 (22:47 +0200)]
vc1dec: use get_bits_long and limit the read bits to 32

get_bits should not be used with more than 25 bits.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
6 years agompegaudiodec: copy AVFloatDSPContext from first context to all contexts
Andreas Cadhalpun [Thu, 25 Jun 2015 22:27:54 +0000 (00:27 +0200)]
mpegaudiodec: copy AVFloatDSPContext from first context to all contexts

This fixes a segfault when decoding multi-channel MP3onMP4 files.

This is similar to commit cb72230d for MPADSPContext.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
6 years agofate: test ea vp6 with alpha stream
Peter Ross [Thu, 25 Jun 2015 05:06:25 +0000 (15:06 +1000)]
fate: test ea vp6 with alpha stream

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavformat/hls: do not iterate to next sequence number if interruption is requested
schenk michael [Fri, 26 Jun 2015 04:20:34 +0000 (06:20 +0200)]
avformat/hls: do not iterate to next sequence number if interruption is requested

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavutil/log: modify AV_LOG_MAX_OFFSET for AV_LOG_TRACE
Zhang Rui [Fri, 26 Jun 2015 08:17:22 +0000 (16:17 +0800)]
avutil/log: modify AV_LOG_MAX_OFFSET for AV_LOG_TRACE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000dec: iterate in tile sample space for CPRL & RPCL
Michael Niedermayer [Fri, 26 Jun 2015 11:44:17 +0000 (13:44 +0200)]
avcodec/jpeg2000dec: iterate in tile sample space for CPRL & RPCL

Thats what the spec says should be done
aka iterate in the wrong space and use special cases to patch that up.
It sometimes can result in different order

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg_opt: Fix sync_ist
Michael Niedermayer [Fri, 26 Jun 2015 10:37:28 +0000 (12:37 +0200)]
ffmpeg_opt: Fix sync_ist

This code was lost in 2663540821ee010edc7a47316b00a4745aaf973c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000dec: Add missing \n to av_log()
Michael Niedermayer [Fri, 26 Jun 2015 02:30:18 +0000 (04:30 +0200)]
avcodec/jpeg2000dec: Add missing \n to av_log()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000dec: iterate over positions with the special cases from jpeg2000
Michael Niedermayer [Fri, 26 Jun 2015 02:26:05 +0000 (04:26 +0200)]
avcodec/jpeg2000dec: iterate over positions with the special cases from jpeg2000

The order in j2k is not the simple and logic one

Fixes Ticket4670

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000dec: Add coords to Jpeg2000Tile
Michael Niedermayer [Fri, 26 Jun 2015 02:25:19 +0000 (04:25 +0200)]
avcodec/jpeg2000dec: Add coords to Jpeg2000Tile

These will be needed in subsequent commits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/vdpau: Support for VDPAU accelerated HEVC decoding
Philip Langdale [Sat, 13 Jun 2015 16:42:48 +0000 (09:42 -0700)]
avcodec/vdpau: Support for VDPAU accelerated HEVC decoding

This change introduces basic support for HEVC decoding through vdpau.
Right now, there are problems with the nvidia driver/library implementation
that mean that frames are incorrectly laid out in memory when they are
returned from the decoder, and it is normally impossible to recover the
complete decoded frame due to loss of data from alignment inconsistencies.

I obviously hope that nvidia will be fixing it in due course - I've verified
the problems exist with their example application.

As such, this support is not useful for any real world application, but I
believe that it is correct (with the caveat that the mangled frames may hide
problems) and will work properly once the nvidia problem is fixed.

Right now it appears that any file encoded by x265 or nvenc is decoded
correctly, but that's because these files don't use a bunch of HEVC
features.

Quick summary:

Features that seem to work:

1) Short Term References
2) Scaling Lists
3) Tiling

Features with known problems:

1) Long Term References

It's hard to tell what's going on here. After I read the nvidia example
app that does not set the IsLongTerm flag on LTRs, and changed my code,
a bunch of frames using LTR started to display correctly, but there
are still samples with glitches that are related to LTRs.

In terms of real world files, both x265 and nvenc only use short term
refs from this list. The divx encoder seems similar.

Signed-off-by: Philip Langdale <philipl@overt.org>
6 years agoavcodec/jpeg2000: Remove CBLK limit
Michael Niedermayer [Thu, 25 Jun 2015 22:14:01 +0000 (00:14 +0200)]
avcodec/jpeg2000: Remove CBLK limit

This also reduces the amount of memory needed
Fixes Ticket4672

The new code seems slightly faster as well, probably due to better cache usage

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: Use 2 instead of STDERR_FILENO
Michael Niedermayer [Thu, 25 Jun 2015 21:43:18 +0000 (23:43 +0200)]
ffmpeg: Use 2 instead of STDERR_FILENO

STDERR_FILENO is not available on windows

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/evrc: make it possible to disable postfilter
Paul B Mahol [Wed, 24 Jun 2015 06:03:51 +0000 (06:03 +0000)]
avcodec/evrc: make it possible to disable postfilter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agolavc+doc: adjust names to reflect ADPCM THP not being GameCube-only
Rodger Combs [Tue, 23 Jun 2015 17:35:34 +0000 (12:35 -0500)]
lavc+doc: adjust names to reflect ADPCM THP not being GameCube-only

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf/brstm: expose the loop point when present
Rodger Combs [Tue, 23 Jun 2015 17:35:33 +0000 (12:35 -0500)]
lavf/brstm: expose the loop point when present

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoconfigure: Fix ranlib failure with older cross toolchains
Shawn Rainey [Thu, 25 Jun 2015 15:01:12 +0000 (11:01 -0400)]
configure: Fix ranlib failure with older cross toolchains

Cross-compile toolchains without support for ranlib -D would fail.
This fixes the configure script to test the cross ranlib rather than the native ranlib.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomodify exit message when signaled
rogerdpack [Thu, 25 Jun 2015 06:24:31 +0000 (00:24 -0600)]
modify exit message when signaled

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoelectronicarts: demux alpha stream
Peter Ross [Thu, 25 Jun 2015 05:05:07 +0000 (15:05 +1000)]
electronicarts: demux alpha stream

Electronic Arts VP6 files may contain two video streams: one for the
primary video stream and another for the alpha mask. The file format
uses identical data structures for both streams.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoelectronicarts: move video stream properties into dedicated structure
Peter Ross [Thu, 25 Jun 2015 05:04:58 +0000 (15:04 +1000)]
electronicarts: move video stream properties into dedicated structure

This is required for the alpha stream demux patch.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: log error message when shutting down from too many signals
rogerdpack [Thu, 25 Jun 2015 10:22:10 +0000 (12:22 +0200)]
ffmpeg: log error message when shutting down from too many signals

write() suggested by wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovp9: fix profile check for intraonly frames.
Ronald S. Bultje [Wed, 24 Jun 2015 14:41:00 +0000 (10:41 -0400)]
vp9: fix profile check for intraonly frames.

Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibavformat: Add H264 API test
Ludmila Glinskih [Wed, 24 Jun 2015 16:21:07 +0000 (19:21 +0300)]
libavformat: Add H264 API test

Result differs in pkt_duration and time_base.den for some reason.
Right now it tests only one example (adjusted to match the output).

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000dec: Limit x/y step to 1<<30
Michael Niedermayer [Wed, 24 Jun 2015 22:43:49 +0000 (00:43 +0200)]
avcodec/jpeg2000dec: Limit x/y step to 1<<30

Fixes infinite loop
Fixes Ticket4663

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000: Improve right bottom precinct positions
Michael Niedermayer [Wed, 24 Jun 2015 21:50:48 +0000 (23:50 +0200)]
avcodec/jpeg2000: Improve right bottom precinct positions

Fixes Ticket4656

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000dec: Check PPx / PPy values
Michael Niedermayer [Wed, 24 Jun 2015 20:58:58 +0000 (22:58 +0200)]
avcodec/jpeg2000dec: Check PPx / PPy values

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffserver: make statement block unconditional by exiting early
Reynaldo H. Verdejo Pinochet [Wed, 24 Jun 2015 22:03:19 +0000 (19:03 -0300)]
ffserver: make statement block unconditional by exiting early

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
6 years agoffserver: make statement block unconditional by exiting early
Reynaldo H. Verdejo Pinochet [Wed, 24 Jun 2015 21:57:42 +0000 (18:57 -0300)]
ffserver: make statement block unconditional by exiting early

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
6 years agoffserver: unify comment formating & drop unneeded braces
Reynaldo H. Verdejo Pinochet [Wed, 24 Jun 2015 21:49:38 +0000 (18:49 -0300)]
ffserver: unify comment formating & drop unneeded braces

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
6 years agoffserver: factor out stream params printing
Reynaldo H. Verdejo Pinochet [Wed, 24 Jun 2015 20:41:06 +0000 (17:41 -0300)]
ffserver: factor out stream params printing

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
6 years agoffserver: simplify URLContext cleanup
Reynaldo H. Verdejo Pinochet [Tue, 23 Jun 2015 16:53:43 +0000 (13:53 -0300)]
ffserver: simplify URLContext cleanup

Drop unneeded var and avoid checking for NULL twice as
ffurl_closep() already does this.

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
6 years agolibvpxdec: report colorspace
James Zern [Tue, 23 Jun 2015 21:41:26 +0000 (14:41 -0700)]
libvpxdec: report colorspace

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
6 years agolibvpxdec: report profile for vp9
James Zern [Tue, 23 Jun 2015 21:25:26 +0000 (14:25 -0700)]
libvpxdec: report profile for vp9

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Zern <jzern@google.com>
6 years agoMerge commit '5dbd491eb38efab1d1313d4129ed76ab2e98176d'
Michael Niedermayer [Wed, 24 Jun 2015 19:06:54 +0000 (21:06 +0200)]
Merge commit '5dbd491eb38efab1d1313d4129ed76ab2e98176d'

* commit '5dbd491eb38efab1d1313d4129ed76ab2e98176d':
  TextureDSP: fix erroneous condition which produced blocky output for DXT

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

* commit '4d55484391112a30d16812597b9ad81605af0c24':
  dds: Fix palette mode on big endian

Conflicts:
libavcodec/dds.c

See: 21d2e3d602dc5f173901ba51f6a237b9dfce9e8e
Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'ded5957d75def70d2f1fc1c1eae079230004974b'
Michael Niedermayer [Wed, 24 Jun 2015 18:50:44 +0000 (20:50 +0200)]
Merge commit 'ded5957d75def70d2f1fc1c1eae079230004974b'

* commit 'ded5957d75def70d2f1fc1c1eae079230004974b':
  segafilm: Remove deplanarization hack

Conflicts:
libavformat/segafilm.c
libavformat/version.h

See: 42b8f5fba1f067c55231791039283e41b5167247
Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec: Add codec_desc and remapping for AV_CODEC_ID_PCM_S16BE_PLANAR_DEPRECATED
Michael Niedermayer [Wed, 24 Jun 2015 18:37:02 +0000 (20:37 +0200)]
avcodec: Add codec_desc and remapping for AV_CODEC_ID_PCM_S16BE_PLANAR_DEPRECATED

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '5a79bf0284a37855636390e620d189a964214c9e'
Michael Niedermayer [Wed, 24 Jun 2015 18:32:12 +0000 (20:32 +0200)]
Merge commit '5a79bf0284a37855636390e620d189a964214c9e'

* commit '5a79bf0284a37855636390e620d189a964214c9e':
  PCM signed 16-bit big-endian planar decoder

Conflicts:
doc/general.texi
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/avcodec.h
libavcodec/pcm.c
libavcodec/version.h
libavformat/nut.c

See: 9ba41ae63e079198ef4a9e83b5fa147e20966bdb
Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agobrstm: fix use of uninitialized variables
James Almer [Wed, 24 Jun 2015 17:16:41 +0000 (14:16 -0300)]
brstm: fix use of uninitialized variables

Fixes valgrind complaining about "Conditional jump or move depends on uninitialised value(s)"

Signed-off-by: James Almer <jamrial@gmail.com>
6 years agoavcodec/jpeg2000: change flags array type to 16bit
Michael Niedermayer [Wed, 24 Jun 2015 15:44:30 +0000 (17:44 +0200)]
avcodec/jpeg2000: change flags array type to 16bit

reduce memory needed for flags

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovcodec/jpeg2000: Increase cblk size limit to 128
Michael Niedermayer [Wed, 24 Jun 2015 15:38:05 +0000 (17:38 +0200)]
vcodec/jpeg2000: Increase cblk size limit to 128

Fixes Ticket4649

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoavcodec/jpeg2000dec: Use 32x32->64bit for 9/7i dequantization
Michael Niedermayer [Wed, 24 Jun 2015 15:07:27 +0000 (17:07 +0200)]
avcodec/jpeg2000dec: Use 32x32->64bit for 9/7i dequantization

Like the 5/3 case this is needed to avoid overflows and similarly for 16bpp
output pure 32bit operations are insufficient if high quality is wanted

Note, this code-path is only used in bitexact mode, so this should not
affect the speed of any real use-case

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