OSDN Git Service

android-x86/external-ffmpeg.git
10 years agoavformat/utils/av_probe_input_buffer2: fix offset check
Michael Niedermayer [Mon, 13 Jan 2014 21:17:12 +0000 (22:17 +0100)]
avformat/utils/av_probe_input_buffer2: fix offset check

The check could fail if avio_read() read less than requested

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/utils/av_probe_input_buffer2: Fix pd.buf_size
Michael Niedermayer [Mon, 13 Jan 2014 21:14:02 +0000 (22:14 +0100)]
avformat/utils/av_probe_input_buffer2: Fix pd.buf_size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 13 Jan 2014 21:12:38 +0000 (22:12 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavf: make av_probe_input_buffer more robust

Conflicts:
libavformat/utils.c

Not merged as it depends on previous buggy changes

See: e74cd2f4706f71da5e9205003c1d8263b54ed3fb
See: ececbedaa86cddd883f6cdc12cdd1a75a0023550
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '8b76362836f3c373c3aadc544522edcbef16dd5f'
Michael Niedermayer [Mon, 13 Jan 2014 20:34:42 +0000 (21:34 +0100)]
Merge commit '8b76362836f3c373c3aadc544522edcbef16dd5f'

* commit '8b76362836f3c373c3aadc544522edcbef16dd5f':
  lavf: use a fixed width type

Conflicts:
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'c1868e7ee7b07b40a0fe15f50df89fe499a01a50'
Michael Niedermayer [Mon, 13 Jan 2014 20:18:39 +0000 (21:18 +0100)]
Merge commit 'c1868e7ee7b07b40a0fe15f50df89fe499a01a50'

* commit 'c1868e7ee7b07b40a0fe15f50df89fe499a01a50':
  lavf: simplify handling of offset in av_probe_input_buuffer()

Conflicts:
libavformat/utils.c

The simplification is broken and does not work at least for ffmpeg,
thus this change is not merged.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agolavf: make av_probe_input_buffer more robust
Anton Khirnov [Mon, 13 Jan 2014 12:47:07 +0000 (13:47 +0100)]
lavf: make av_probe_input_buffer more robust

Always use the actually read size as the offset instead of making
possibly invalid assumptions.

Addresses: CVE-2012-6618

10 years agolavf: use a fixed width type
Anton Khirnov [Mon, 13 Jan 2014 10:56:59 +0000 (11:56 +0100)]
lavf: use a fixed width type

It's shorter and more consistent with the rest of the code.

10 years agolavf: simplify handling of offset in av_probe_input_buuffer()
Anton Khirnov [Mon, 13 Jan 2014 10:55:18 +0000 (11:55 +0100)]
lavf: simplify handling of offset in av_probe_input_buuffer()

10 years agoMerge commit '99e20125232d40ea239a5b54d26bbfe526506114'
Michael Niedermayer [Mon, 13 Jan 2014 13:36:04 +0000 (14:36 +0100)]
Merge commit '99e20125232d40ea239a5b54d26bbfe526506114'

* commit '99e20125232d40ea239a5b54d26bbfe526506114':
  x86/arm: Add clobber tests to libavresample

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '49b9badcaab513b65b79be371b1a9c1012e482ea'
Michael Niedermayer [Mon, 13 Jan 2014 13:26:33 +0000 (14:26 +0100)]
Merge commit '49b9badcaab513b65b79be371b1a9c1012e482ea'

* commit '49b9badcaab513b65b79be371b1a9c1012e482ea':
  vc1: Enable the interlaced B-frame codepath.

See: 33f2a4942380184f3a28cbf2a36366c8ed105232
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '6d98959c8a5a749592a878b9523b31eccea5d102'
Michael Niedermayer [Mon, 13 Jan 2014 13:18:03 +0000 (14:18 +0100)]
Merge commit '6d98959c8a5a749592a878b9523b31eccea5d102'

* commit '6d98959c8a5a749592a878b9523b31eccea5d102':
  vc1: Add avg_no_rnd_vc1_chroma_mc4_c()

Conflicts:
libavcodec/vc1dsp.c

See: dd6e291e4083b7af53968c0ae06330841f63405b
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'c798a6fedc3dd9ed3ac1fb2d95819af58705a87e'
Michael Niedermayer [Mon, 13 Jan 2014 13:04:48 +0000 (14:04 +0100)]
Merge commit 'c798a6fedc3dd9ed3ac1fb2d95819af58705a87e'

* commit 'c798a6fedc3dd9ed3ac1fb2d95819af58705a87e':
  vc1: Factorize out chroma MC

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86/arm: Add clobber tests to libavresample
Martin Storsjö [Sat, 11 Jan 2014 20:43:26 +0000 (22:43 +0200)]
x86/arm: Add clobber tests to libavresample

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agovc1: Enable the interlaced B-frame codepath.
Tim Walker [Sat, 11 Jan 2014 22:58:16 +0000 (23:58 +0100)]
vc1: Enable the interlaced B-frame codepath.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agovc1: Add avg_no_rnd_vc1_chroma_mc4_c()
Michael Niedermayer [Thu, 25 Apr 2013 19:31:18 +0000 (21:31 +0200)]
vc1: Add avg_no_rnd_vc1_chroma_mc4_c()

Needed for proper interlaced support.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years agovc1: Factorize out chroma MC
Luca Barbato [Sat, 11 Jan 2014 22:59:54 +0000 (23:59 +0100)]
vc1: Factorize out chroma MC

10 years agoavcodec/hevc: Check entry point arrays for malloc failure
Michael Niedermayer [Mon, 13 Jan 2014 02:51:39 +0000 (03:51 +0100)]
avcodec/hevc: Check entry point arrays for malloc failure

Fixes null pointer dereference
Fixes: signal_sigsegv_e1d3b6_2192_DBLK_F_VIXS_2.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agohevc: Bound check slice_qp
Luca Barbato [Sun, 12 Jan 2014 00:14:12 +0000 (01:14 +0100)]
hevc: Bound check slice_qp

The T-REC-H.265-2013044 page 79 states they have to be into the range
[-s->sps->qp_bd_offset, 51].

Fixes: asan_stack-oob_eae8e3_9522_WP_MAIN10_B_Toshiba_3.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agohevc: Reject impossible dependent tile
Luca Barbato [Sat, 11 Jan 2014 15:52:43 +0000 (16:52 +0100)]
hevc: Reject impossible dependent tile

The tile 0 cannot depend on a previous one.
Prevent an out of array bound load in ff_hevc_cabac_init().

Fixes: asan_heap-oob_e3a924_1630_DBLK_A_MAIN10_VIXS_2.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Reviewed-by: Guillaume Martres <smarter@ubuntu.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/huffman: raise the input capability of ff_huff_gen_len_table() from 8 to...
Michael Niedermayer [Mon, 13 Jan 2014 00:04:47 +0000 (01:04 +0100)]
avcodec/huffman: raise the input capability of ff_huff_gen_len_table() from 8 to 14bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/huffman: extend ff_huff_gen_len_table() to allow >8bit
Michael Niedermayer [Mon, 13 Jan 2014 00:03:54 +0000 (01:03 +0100)]
avcodec/huffman: extend ff_huff_gen_len_table() to allow >8bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agovp9/x86: add ff_vp9_loop_filter_[vh]_16_16_ssse3().
Clément Bœsch [Sun, 5 Jan 2014 20:00:40 +0000 (21:00 +0100)]
vp9/x86: add ff_vp9_loop_filter_[vh]_16_16_ssse3().

16662 decicycles in loop_filter_h_16_16_c, 8387355 runs, 1253 skips
17510 decicycles in loop_filter_v_16_16_c, 8387516 runs, 1092 skips

4941 decicycles in ff_vp9_loop_filter_h_16_16_ssse3, 8387887 runs, 721 skips
3899 decicycles in ff_vp9_loop_filter_v_16_16_ssse3, 8387980 runs, 628 skips

Overall decode time goes from:
  ./ffmpeg -v 0 -nostats -threads 1 -i ~/samples/vp9/ped1080p.webm -f null -  8.10s user 0.02s system 99% cpu 8.126 total
to:
  ./ffmpeg -v 0 -nostats -threads 1 -i ~/samples/vp9/ped1080p.webm -f null -  6.15s user 0.04s system 99% cpu 6.199 total

(46 to 61 fps)

10 years agovp9/x86: factor out some code in VP9_UNPACK_MULSUB_2W_4X.
Clément Bœsch [Sat, 11 Jan 2014 11:58:08 +0000 (12:58 +0100)]
vp9/x86: factor out some code in VP9_UNPACK_MULSUB_2W_4X.

10 years agovp9/x86: remove reg redundancy in VP9_MULSUB_2W_2X.
Clément Bœsch [Sat, 11 Jan 2014 11:41:21 +0000 (12:41 +0100)]
vp9/x86: remove reg redundancy in VP9_MULSUB_2W_2X.

10 years agovp9/x86: merge IDCT coef macros.
Clément Bœsch [Sat, 11 Jan 2014 11:37:29 +0000 (12:37 +0100)]
vp9/x86: merge IDCT coef macros.

10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 12 Jan 2014 19:04:35 +0000 (20:04 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  vc1dsp: K&R formatting cosmetics

Conflicts:
libavcodec/vc1dsp.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoswscale: disable ARM code until its build failure with clang/iphone is fixed
Michael Niedermayer [Wed, 8 Jan 2014 16:12:22 +0000 (17:12 +0100)]
swscale: disable ARM code until its build failure with clang/iphone is fixed

See: "19:40 Yu Xiaolei Re: [FFmpeg-devel] [PATCH] fix build with gas-preprocessor.pl"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agovc1dsp: K&R formatting cosmetics
Luca Barbato [Sat, 11 Jan 2014 23:59:24 +0000 (00:59 +0100)]
vc1dsp: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agoRevert "swscale: disable ARM code until its build failure with clang/iphone is fixed"
Michael Niedermayer [Sun, 12 Jan 2014 17:01:23 +0000 (18:01 +0100)]
Revert "swscale: disable ARM code until its build failure with clang/iphone is fixed"

This reverts commit c8c7736c1025bcf5bb27e104a0d0eae749408739.

10 years agofix build with gas-preprocessor.pl
Yu Xiaolei [Sun, 12 Jan 2014 16:56:26 +0000 (00:56 +0800)]
fix build with gas-preprocessor.pl

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agompegts muxer, DVB subtitles encoder: common DVB subtitles payload
Serhii Marchuk [Sat, 11 Jan 2014 20:54:29 +0000 (22:54 +0200)]
mpegts muxer, DVB subtitles encoder: common DVB subtitles payload

Improved DVB subtitles encoder to generate AVPacket.data in the same
format as generates MPEGTS demuxer + DVB subtitles parser. So now single
format of DVB subtitles data is used across all the components of FFmpeg:
only subtitles payload WITHOUT 0x20 0x00 bytes at the beginning and 0xFF
trailing byte.

Improved MPEGTS muxer to support format of DVB subtitles in
AVPacket.data described above: while muxing we add two bytes 0x20 0x00 to
the beginning of and 0xFF to the end of DVB subtitles payload.

The patch fixes DVB subtitle copy problems: tickets #2989 fully and #2024
partly.

Signed-off-by: Clément Bœsch <u@pkh.me>
10 years agoexamples/muxing: simplify video PTS setting
Stefano Sabatini [Fri, 10 Jan 2014 10:07:42 +0000 (11:07 +0100)]
examples/muxing: simplify video PTS setting

Rely on frame_count. Also more consistent with audio path.

10 years agoavcodec/dct-test: add support for C prores IDCT
Michael Niedermayer [Sun, 12 Jan 2014 03:10:04 +0000 (04:10 +0100)]
avcodec/dct-test: add support for C prores IDCT

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agohevc: remove useless clip in FUNC(sao_band_filter)()
Guillaume Martres [Sat, 11 Jan 2014 21:46:25 +0000 (22:46 +0100)]
hevc: remove useless clip in FUNC(sao_band_filter)()

The src buffer should only contain values in the interval
[0, (1 << BIT_DEPTH) - 1]. Since shift = (BIT_DEPTH - 5), src[x] >> shift
must be in the interval [0, 31], so no clip is needed.

This removes the code that was changed in 5856bca360c5bc3e340a357d91b1f993c80a7bea
as the clip that was repositioned in that commit is removed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agohevc: clip pixels when transquant bypass is used
Guillaume Martres [Sat, 11 Jan 2014 21:46:24 +0000 (22:46 +0100)]
hevc: clip pixels when transquant bypass is used

Fixes: asan_stack-oob_eae8e3_7333_WPP_B_ericsson_MAIN10_2.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
This is a more proper fix than 5856bca360c5bc3e340a357d91b1f993c80a7bea

The reconstructed picture should always be clipped (see section 8.6.5),
previously we did not clip coding units where
cu_transquant_bypass_flag == 1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/dct-test: reproduce 4..1019 clipping when testing prores IDCT
Michael Niedermayer [Sat, 11 Jan 2014 23:17:49 +0000 (00:17 +0100)]
avcodec/dct-test: reproduce 4..1019 clipping when testing prores IDCT

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/dct-test: correct output bias of prores idct
Michael Niedermayer [Sat, 11 Jan 2014 22:57:47 +0000 (23:57 +0100)]
avcodec/dct-test: correct output bias of prores idct

This way the output values make sense

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agovp9: fix mt-related hang a parser infinite loop.
Ronald S. Bultje [Sat, 11 Jan 2014 02:38:38 +0000 (21:38 -0500)]
vp9: fix mt-related hang a parser infinite loop.

Fixes trac ticket 3274.

Looked-at-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mjpegenc: use a seperate chroma matrix when luma and chroma differ
Michael Niedermayer [Sat, 11 Jan 2014 20:45:41 +0000 (21:45 +0100)]
avcodec/mjpegenc: use a seperate chroma matrix when luma and chroma differ

drop hardcoded TWOMATRIX code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mpegvideo_enc: init chroma matrix for mjpeg
Michael Niedermayer [Sat, 11 Jan 2014 20:38:11 +0000 (21:38 +0100)]
avcodec/mpegvideo_enc: init chroma matrix for mjpeg

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mjpegenc: pass chroma quantization matrix through as well, not just luma
Michael Niedermayer [Sat, 11 Jan 2014 20:26:51 +0000 (21:26 +0100)]
avcodec/mjpegenc: pass chroma quantization matrix through as well, not just luma

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 11 Jan 2014 19:40:35 +0000 (20:40 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  flv: Workaround for buggy Omnia A/XE encoder

Conflicts:
libavformat/flvdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agohevc: Clip the pixel before shifting
Luca Barbato [Sat, 11 Jan 2014 15:52:41 +0000 (16:52 +0100)]
hevc: Clip the pixel before shifting

Prevent an out of array bound read.

Fixes: asan_stack-oob_eae8e3_7333_WPP_B_ericsson_MAIN10_2.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/hevc: use av_mallocz() for allocating tab_ipm
Michael Niedermayer [Sat, 11 Jan 2014 19:23:51 +0000 (20:23 +0100)]
avcodec/hevc: use av_mallocz() for allocating tab_ipm

Fixes use of uninitialized memory and out of stack array read
Fixes: signal_sigsegv_ecc526_7846_WPP_C_ericsson_MAIN_2.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoflv: Workaround for buggy Omnia A/XE encoder
Benjamin Larsson [Sun, 5 Jan 2014 13:42:14 +0000 (14:42 +0100)]
flv: Workaround for buggy Omnia A/XE encoder

The Omnia A/XE encoder writes the explicit extra data incorrectly
and wrongly disables parametric stereo. Truncating the extra data
by setting the size to 2 works around this. The AAC extra data
parser will then only parse the correct parts.

Bug-id: 599

10 years agoavcodec/alac: warn if not all channels where decoded
Michael Niedermayer [Sat, 11 Jan 2014 03:44:42 +0000 (04:44 +0100)]
avcodec/alac: warn if not all channels where decoded

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/alac: only set *got_frame_ptr when all channels have been decoded
Michael Niedermayer [Sat, 11 Jan 2014 03:36:15 +0000 (04:36 +0100)]
avcodec/alac: only set *got_frame_ptr when all channels have been decoded

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f8b64436530_7895_quicktime_newcodec_applelosslessaudiocodec.m4a
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 11 Jan 2014 02:07:31 +0000 (03:07 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  arm: Add an option for making sure NEON registers aren't clobbered

Conflicts:
configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/pjsdec: dont increase pointer when its already at the end in read_ts()
Clément Bœsch [Fri, 10 Jan 2014 00:51:22 +0000 (01:51 +0100)]
avformat/pjsdec: dont increase pointer when its already at the end in read_ts()

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f91f2de7764_2649_PJS_capability_tester.pjs
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/wmalosslessdec: shrink output on error so no uninitialized data is returned
Michael Niedermayer [Sat, 11 Jan 2014 01:04:01 +0000 (02:04 +0100)]
avcodec/wmalosslessdec: shrink output on error so no uninitialized data is returned

Fixes use of uninitialized memory
partly fixes: msan_uninit-mem_7f7834b6a530_6473_luckynight-partial.wma
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/wmalosslessdec: deallocate uninitialized frame on decode_tilehdr() failure
Michael Niedermayer [Sat, 11 Jan 2014 00:59:20 +0000 (01:59 +0100)]
avcodec/wmalosslessdec: deallocate uninitialized frame on decode_tilehdr() failure

Fixes use of uninitialized memory
partly fixes: msan_uninit-mem_7f7834b6a530_6473_luckynight-partial.wma
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/wmalosslessdec: Pass on error code from decode_tilehdr()
Michael Niedermayer [Sat, 11 Jan 2014 00:58:36 +0000 (01:58 +0100)]
avcodec/wmalosslessdec: Pass on error code from decode_tilehdr()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'cehoyos/master'
Michael Niedermayer [Fri, 10 Jan 2014 23:14:27 +0000 (00:14 +0100)]
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Cast signed libopenjpeg data values to unsigned before shifting.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoCast signed libopenjpeg data values to unsigned before shifting.
Carl Eugen Hoyos [Fri, 10 Jan 2014 23:03:37 +0000 (00:03 +0100)]
Cast signed libopenjpeg data values to unsigned before shifting.

This avoids undefined behaviour on left-shift.

Reviewed-by: Michael Bradshaw
10 years agovdpau: restore compatibility with deprecated fields in AVVDPAUContext
Hendrik Leppkes [Fri, 10 Jan 2014 19:18:08 +0000 (20:18 +0100)]
vdpau: restore compatibility with deprecated fields in AVVDPAUContext

Fixes ticket #3133.

Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com>
Tested-by: EricV
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/matroskadec: check generic audio deinterleaver sub_packet_size against frame...
Michael Niedermayer [Fri, 10 Jan 2014 22:10:47 +0000 (23:10 +0100)]
avformat/matroskadec: check generic audio deinterleaver sub_packet_size against frame_size

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f67d052a530_7517_nosound.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoarm: Add an option for making sure NEON registers aren't clobbered
Martin Storsjö [Fri, 20 Dec 2013 11:51:50 +0000 (13:51 +0200)]
arm: Add an option for making sure NEON registers aren't clobbered

This is pretty much based on the same test for XMM registers.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 10 Jan 2014 20:06:15 +0000 (21:06 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  fate: Explicitly specify the rgb555le pixel format for the mss2 rgb555 tests

See: 34e90b2e6d66c511bea872bcb3a0e34b482b8c17
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/flvdec: initialize context before reading from it
Michael Niedermayer [Fri, 10 Jan 2014 19:58:19 +0000 (20:58 +0100)]
avformat/flvdec: initialize context before reading from it

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f9b8387069e_5377_flv_with_pcm_s16be_audio_track.flv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agonut: Support XYZ12 rawvideo
Michael Niedermayer [Fri, 10 Jan 2014 16:50:33 +0000 (17:50 +0100)]
nut: Support XYZ12 rawvideo

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoswscale: fix rgb48Toxyz12() endianness
Michael Niedermayer [Fri, 10 Jan 2014 16:23:04 +0000 (17:23 +0100)]
swscale: fix rgb48Toxyz12() endianness

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mss2: fix chroma dimensions
Michael Niedermayer [Fri, 10 Jan 2014 15:56:37 +0000 (16:56 +0100)]
avcodec/mss2: fix chroma dimensions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agofate: Explicitly specify the rgb555le pixel format for the mss2 rgb555 tests
Martin Storsjö [Fri, 10 Jan 2014 14:05:10 +0000 (16:05 +0200)]
fate: Explicitly specify the rgb555le pixel format for the mss2 rgb555 tests

This fixes these fate tests on big endian.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agoavformat/avisynth simplify packet allocation
Michael Niedermayer [Thu, 9 Jan 2014 17:33:39 +0000 (18:33 +0100)]
avformat/avisynth simplify packet allocation

Reviewed-by: Stephen Hutchinson <qyot27@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoFix libopenjpeg colour range adjust for 8<bpp<16.
Carl Eugen Hoyos [Fri, 10 Jan 2014 09:57:43 +0000 (10:57 +0100)]
Fix libopenjpeg colour range adjust for 8<bpp<16.

Fixes ticket #3284.

Reviewed-by: Michael Bradshaw
10 years agoSupport signed j2k images via libopenjpeg.
Carl Eugen Hoyos [Fri, 10 Jan 2014 09:55:51 +0000 (10:55 +0100)]
Support signed j2k images via libopenjpeg.

Fixes ticket #3283.

Reviewed-by: Michael Bradshaw
10 years agoUnscaled 16bit packed RGB to planar GBR converter.
Carl Eugen Hoyos [Fri, 10 Jan 2014 09:47:46 +0000 (10:47 +0100)]
Unscaled 16bit packed RGB to planar GBR converter.

Fixes r210(rgb48) -> ffv1 (gbrp10) -> r210 roundtrip
as reported by forum user JasonCA.

10 years agofate: fix MSS2 tests on big endian
Michael Niedermayer [Fri, 10 Jan 2014 04:51:15 +0000 (05:51 +0100)]
fate: fix MSS2 tests on big endian

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 10 Jan 2014 02:57:46 +0000 (03:57 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avutil: do not use avcodec header in frame.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'abb5e37f64c48bba8bd0fde2bada0f7544defa24'
Michael Niedermayer [Fri, 10 Jan 2014 02:46:28 +0000 (03:46 +0100)]
Merge commit 'abb5e37f64c48bba8bd0fde2bada0f7544defa24'

* commit 'abb5e37f64c48bba8bd0fde2bada0f7544defa24':
  avfilter: fix leaks on error in ff_filter_frame

Conflicts:
libavfilter/avfilter.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '5655732c77f2df9c1dfbddc30cd4844390a6921f'
Michael Niedermayer [Fri, 10 Jan 2014 02:36:42 +0000 (03:36 +0100)]
Merge commit '5655732c77f2df9c1dfbddc30cd4844390a6921f'

* commit '5655732c77f2df9c1dfbddc30cd4844390a6921f':
  avfilter: add needs_writable field to the internal AVFilterPad structure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'd44bd7fb27d4121512eae0ffce5e48bac25e82dc'
Michael Niedermayer [Fri, 10 Jan 2014 02:34:31 +0000 (03:34 +0100)]
Merge commit 'd44bd7fb27d4121512eae0ffce5e48bac25e82dc'

* commit 'd44bd7fb27d4121512eae0ffce5e48bac25e82dc':
  avfilter: add documentation for needs_writable

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '11d704dc94c029058ac366f85951f6728638fb9c'
Michael Niedermayer [Fri, 10 Jan 2014 02:24:02 +0000 (03:24 +0100)]
Merge commit '11d704dc94c029058ac366f85951f6728638fb9c'

* commit '11d704dc94c029058ac366f85951f6728638fb9c':
  fate: add framepack filter test

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'a7d0e7ead95e584c4866617f046b2493066975c6'
Michael Niedermayer [Fri, 10 Jan 2014 01:53:15 +0000 (02:53 +0100)]
Merge commit 'a7d0e7ead95e584c4866617f046b2493066975c6'

* commit 'a7d0e7ead95e584c4866617f046b2493066975c6':
  lavfi: add framepack filter

Conflicts:
Changelog
doc/filters.texi
libavfilter/allfilters.c
libavfilter/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'aa69cbc9e08281db6ecb98a2c8b4f60e8b12e558'
Michael Niedermayer [Fri, 10 Jan 2014 01:32:12 +0000 (02:32 +0100)]
Merge commit 'aa69cbc9e08281db6ecb98a2c8b4f60e8b12e558'

* commit 'aa69cbc9e08281db6ecb98a2c8b4f60e8b12e558':
  flac muxer: add option to disable writing the global header

Conflicts:
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/mxfdec: check avio_read(UID) result
Michael Niedermayer [Fri, 10 Jan 2014 01:11:20 +0000 (02:11 +0100)]
avformat/mxfdec: check avio_read(UID) result

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7fc9ba2fd98e_82_02785736.mxf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/nutdec: fix packet end clearing
Michael Niedermayer [Thu, 9 Jan 2014 23:32:39 +0000 (00:32 +0100)]
avformat/nutdec: fix packet end clearing

The code was buggy, using the wrong variable, also it missed the case
where the packet become smaller due to sidedata/metadata being extracted
which left a few bytes uninitialized

Fixes use of uninitialized memory
Fixed: msan_uninit-mem_7f6abbe44530_6838_mewmew_vorbis_ssa.nut
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/rmdec: when reading audio blocks, dont leave holes when reading fails
Michael Niedermayer [Thu, 9 Jan 2014 21:59:51 +0000 (22:59 +0100)]
avformat/rmdec: when reading audio blocks, dont leave holes when reading fails

The fate test is changed because the reference file depends on the use of
non cleared data at the very
end. Alternatively we could upload a new reference file, though that would
then have to be changed every time the handling of a truncated frame changes
or theres a change to error concealment, each time adding a new file ...

Fixes use of uninitialized memory
Fixed: msan_uninit-mem_7f3c02b81363_2787_RLG2_19.rm
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavutil: do not use avcodec header in frame.h
Vittorio Giovara [Wed, 8 Jan 2014 00:20:18 +0000 (01:20 +0100)]
avutil: do not use avcodec header in frame.h

10 years agoavfilter: fix leaks on error in ff_filter_frame
Vittorio Giovara [Wed, 18 Dec 2013 10:45:01 +0000 (11:45 +0100)]
avfilter: fix leaks on error in ff_filter_frame

10 years agoavfilter: add needs_writable field to the internal AVFilterPad structure
Vittorio Giovara [Wed, 18 Dec 2013 13:21:25 +0000 (14:21 +0100)]
avfilter: add needs_writable field to the internal AVFilterPad structure

10 years agoavfilter: add documentation for needs_writable
Vittorio Giovara [Wed, 18 Dec 2013 10:40:38 +0000 (11:40 +0100)]
avfilter: add documentation for needs_writable

10 years agofate: add framepack filter test
Vittorio Giovara [Tue, 5 Nov 2013 15:00:49 +0000 (16:00 +0100)]
fate: add framepack filter test

10 years agolavfi: add framepack filter
Vittorio Giovara [Thu, 9 Jan 2014 18:50:19 +0000 (19:50 +0100)]
lavfi: add framepack filter

10 years agoflac muxer: add option to disable writing the global header
Justin Ruggles [Thu, 9 Jan 2014 17:11:26 +0000 (12:11 -0500)]
flac muxer: add option to disable writing the global header

The global header is not explicitly required for playback, and
omitting it allows for simple concatenation.

10 years agoavcodec/mjpegdec: allow lowres with amv
Michael Niedermayer [Thu, 9 Jan 2014 20:31:46 +0000 (21:31 +0100)]
avcodec/mjpegdec: allow lowres with amv

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mjpegdec: use the AVFrame width/height for flipping
Michael Niedermayer [Thu, 9 Jan 2014 20:30:49 +0000 (21:30 +0100)]
avcodec/mjpegdec: use the AVFrame width/height for flipping

This makes it possible to use the code with lowres

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mjpegdec: remove new flipping code
Michael Niedermayer [Thu, 9 Jan 2014 20:23:16 +0000 (21:23 +0100)]
avcodec/mjpegdec: remove new flipping code

It stored images wrong in the user provided buffers (that is you would
end up with a wrongly flipped image if you used direct rendering).
Also it used wrong dimensions as noticed by ubitux

Enable the old code unconditionally so flipping works correctly
again.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 9 Jan 2014 19:56:49 +0000 (20:56 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  ATRAC3+ decoder

Conflicts:
Changelog
configure
libavcodec/atrac3plus.c
libavcodec/atrac3plus.h
libavcodec/atrac3plus_data.h
libavcodec/atrac3plusdec.c
libavcodec/atrac3plusdsp.c
libavcodec/version.h

See: 2e1fb96af36348479e14aa85f445915ea09e70fa
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '4c642d8d98703faf52983243098f35865e15b312'
Michael Niedermayer [Thu, 9 Jan 2014 19:32:43 +0000 (20:32 +0100)]
Merge commit '4c642d8d98703faf52983243098f35865e15b312'

* commit '4c642d8d98703faf52983243098f35865e15b312':
  x86: hpeldsp: Add missing av_cold attribute to init function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'b0be1ae792ac8bbfb0fc7b9b9cb39eaf0feb489b'
Michael Niedermayer [Thu, 9 Jan 2014 19:24:10 +0000 (20:24 +0100)]
Merge commit 'b0be1ae792ac8bbfb0fc7b9b9cb39eaf0feb489b'

* commit 'b0be1ae792ac8bbfb0fc7b9b9cb39eaf0feb489b':
  x86: avcodec: Add a bunch of missing #includes for av_cold

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a'
Michael Niedermayer [Thu, 9 Jan 2014 19:14:10 +0000 (20:14 +0100)]
Merge commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a'

* commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a':
  ac3tab.h: #include the correct headers

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoATRAC3+ decoder
Maxim Polijakowski [Fri, 3 Jan 2014 22:23:11 +0000 (23:23 +0100)]
ATRAC3+ decoder

Cleanup by Diego Biurrun.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
10 years agodoc/examples/muxing: Fixes frame initialization.
Andre Anjos [Tue, 29 Oct 2013 10:28:26 +0000 (11:28 +0100)]
doc/examples/muxing: Fixes frame initialization.

Fixes use of the example with encoders which use tha AVFrame w/h/pix_fmt fields
FFV1 is one of these codecs

We cannot easily workaround the not set fields in common code because the API
has AVFrame constant for the encoders.
Alternatives would be to fix the API or to duplicate the struct and fill in
missing fields. Or as is to require all user apps to set this correctly and
maybe simplify for that case

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 9 Jan 2014 14:46:31 +0000 (15:46 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mjpegdec: apply flipping after decoding, not before

Conflicts:
libavcodec/mjpegdec.c
libavcodec/mjpegdec.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'e588615d938f8581f0d6f3771662d08cadfc00de'
Michael Niedermayer [Thu, 9 Jan 2014 14:10:31 +0000 (15:10 +0100)]
Merge commit 'e588615d938f8581f0d6f3771662d08cadfc00de'

* commit 'e588615d938f8581f0d6f3771662d08cadfc00de':
  hevc: fix decoding of one PU wide files

Conflicts:
libavcodec/hevc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agox86: hpeldsp: Add missing av_cold attribute to init function
Diego Biurrun [Thu, 9 Jan 2014 13:06:32 +0000 (14:06 +0100)]
x86: hpeldsp: Add missing av_cold attribute to init function

10 years agox86: avcodec: Add a bunch of missing #includes for av_cold
Diego Biurrun [Thu, 9 Jan 2014 13:06:31 +0000 (14:06 +0100)]
x86: avcodec: Add a bunch of missing #includes for av_cold

10 years agoac3tab.h: #include the correct headers
Diego Biurrun [Thu, 9 Jan 2014 13:06:30 +0000 (14:06 +0100)]
ac3tab.h: #include the correct headers

10 years agoMerge commit 'a246af86e47044dec243db2f708cc125d608ea78'
Michael Niedermayer [Thu, 9 Jan 2014 13:48:52 +0000 (14:48 +0100)]
Merge commit 'a246af86e47044dec243db2f708cc125d608ea78'

* commit 'a246af86e47044dec243db2f708cc125d608ea78':
  FATE: add MSS2 tests

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