]> git.sesse.net Git - ffmpeg/log
ffmpeg
8 years agoMerge commit 'dc4983d78af2a666461654067d2e5d45b835358a'
Derek Buitenhuis [Mon, 11 Apr 2016 14:09:54 +0000 (15:09 +0100)]
Merge commit 'dc4983d78af2a666461654067d2e5d45b835358a'

This commit is a no-op.

* commit 'dc4983d78af2a666461654067d2e5d45b835358a':
  APIchanges: add missing hashes and dates

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit '3e8fd93b6ab219221e17fa2b6243cc72cf2d69dc'
Derek Buitenhuis [Mon, 11 Apr 2016 14:09:00 +0000 (15:09 +0100)]
Merge commit '3e8fd93b6ab219221e17fa2b6243cc72cf2d69dc'

* commit '3e8fd93b6ab219221e17fa2b6243cc72cf2d69dc':
  lavf: add a missing bump and APIchanges for the codecpar switch

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit 'e66fa35392cd45d0a80774cd057fb765d60def43'
Derek Buitenhuis [Mon, 11 Apr 2016 14:06:18 +0000 (15:06 +0100)]
Merge commit 'e66fa35392cd45d0a80774cd057fb765d60def43'

* commit 'e66fa35392cd45d0a80774cd057fb765d60def43':
  vc1dec: Check group allocations separatedly

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit '01f0e6a0c9270f1d5bef08459a6f167cf55e0596'
Derek Buitenhuis [Mon, 11 Apr 2016 14:03:14 +0000 (15:03 +0100)]
Merge commit '01f0e6a0c9270f1d5bef08459a6f167cf55e0596'

This commit is a no-op. We already did this.

* commit '01f0e6a0c9270f1d5bef08459a6f167cf55e0596':
  vc1dec: Fix leak on error for array allocations

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit 'f91d94bdfc3f5f83ff0be4d19d10d0a35697386f'
Derek Buitenhuis [Mon, 11 Apr 2016 14:01:33 +0000 (15:01 +0100)]
Merge commit 'f91d94bdfc3f5f83ff0be4d19d10d0a35697386f'

* commit 'f91d94bdfc3f5f83ff0be4d19d10d0a35697386f':
  vc1dec: Properly call deinit function on error

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit '35b1cd343cd703c1b0fc926dc43a92141a357380'
Derek Buitenhuis [Mon, 11 Apr 2016 14:00:46 +0000 (15:00 +0100)]
Merge commit '35b1cd343cd703c1b0fc926dc43a92141a357380'

* commit '35b1cd343cd703c1b0fc926dc43a92141a357380':
  vc1dec: Drop commented out cruft

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit 'fa55addd23c2f168163175aee17adb125c2c0710'
Derek Buitenhuis [Mon, 11 Apr 2016 13:59:58 +0000 (14:59 +0100)]
Merge commit 'fa55addd23c2f168163175aee17adb125c2c0710'

* commit 'fa55addd23c2f168163175aee17adb125c2c0710':
  img2: Drop av_ prefix for a static function

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit 'd6e49096c0c3c10ffb176761b0da150c93bedbf6'
Derek Buitenhuis [Mon, 11 Apr 2016 13:58:33 +0000 (14:58 +0100)]
Merge commit 'd6e49096c0c3c10ffb176761b0da150c93bedbf6'

This commit is a no-op.

* commit 'd6e49096c0c3c10ffb176761b0da150c93bedbf6':
  idct: Only build prores IDCT if ProRes decoder is enabled

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit '3c53627ac17fc6bdea5029be57da1e03b32d265d'
Derek Buitenhuis [Mon, 11 Apr 2016 13:56:27 +0000 (14:56 +0100)]
Merge commit '3c53627ac17fc6bdea5029be57da1e03b32d265d'

* commit '3c53627ac17fc6bdea5029be57da1e03b32d265d':
  qsvdec: store the sync point in heap memory

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit 'a1335149fd610b16459d9281b611282cac51c950'
Derek Buitenhuis [Mon, 11 Apr 2016 13:45:57 +0000 (14:45 +0100)]
Merge commit 'a1335149fd610b16459d9281b611282cac51c950'

* commit 'a1335149fd610b16459d9281b611282cac51c950':
  qsvenc: store the sync point in heap memory

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit '1138eb5509d3db7f6d565cb45f137a786d22beb9'
Derek Buitenhuis [Mon, 11 Apr 2016 13:42:30 +0000 (14:42 +0100)]
Merge commit '1138eb5509d3db7f6d565cb45f137a786d22beb9'

* commit '1138eb5509d3db7f6d565cb45f137a786d22beb9':
  vsrc_movie: convert to codecpar

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit 'ac6d53589f3631ae08467c784fb371a15c957f01'
Derek Buitenhuis [Mon, 11 Apr 2016 13:15:28 +0000 (14:15 +0100)]
Merge commit 'ac6d53589f3631ae08467c784fb371a15c957f01'

* commit 'ac6d53589f3631ae08467c784fb371a15c957f01':
  examples/transcode_aac: convert to codecpar

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit 'a9e1f2cc61cbd5606a087a60565e87923c39de5a'
Derek Buitenhuis [Mon, 11 Apr 2016 13:07:34 +0000 (14:07 +0100)]
Merge commit 'a9e1f2cc61cbd5606a087a60565e87923c39de5a'

* commit 'a9e1f2cc61cbd5606a087a60565e87923c39de5a':
  examples/qsvdec: convert to codecpar

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit '9897d9f4e074cdc6c7f2409885ddefe300f18dc7'
Derek Buitenhuis [Mon, 11 Apr 2016 13:06:43 +0000 (14:06 +0100)]
Merge commit '9897d9f4e074cdc6c7f2409885ddefe300f18dc7'

* commit '9897d9f4e074cdc6c7f2409885ddefe300f18dc7':
  examples/output: convert to codecpar

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoavcodec/shorten: properly handle bitshift > 31
Paul B Mahol [Mon, 11 Apr 2016 11:06:10 +0000 (13:06 +0200)]
avcodec/shorten: properly handle bitshift > 31

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat/hdsenc: Pass flags to child context
Michael Niedermayer [Mon, 11 Apr 2016 01:59:12 +0000 (03:59 +0200)]
avformat/hdsenc: Pass flags to child context

This is needed as the bitexact flag is not in the codecpar context, and thus not copied

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/dashenc: Pass flags to child context
Michael Niedermayer [Mon, 11 Apr 2016 01:59:12 +0000 (03:59 +0200)]
avformat/dashenc: Pass flags to child context

This is needed as the bitexact flag is not in the codecpar context, and thus not copied

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/segment: Pass flags to child context
Michael Niedermayer [Mon, 11 Apr 2016 01:59:12 +0000 (03:59 +0200)]
avformat/segment: Pass flags to child context

This is needed as the bitexact flag is not in the codecpar context, and thus not copied

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavdevice/caca: switch to codecpar
Michael Niedermayer [Sun, 10 Apr 2016 21:59:12 +0000 (23:59 +0200)]
avdevice/caca: switch to codecpar

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate: fix sample dependencies for fate-{a,v}filter tests
James Almer [Sun, 10 Apr 2016 21:31:05 +0000 (18:31 -0300)]
fate: fix sample dependencies for fate-{a,v}filter tests

8 years agoMerge commit 'c23152a90371bfe971b063781ef4e7d9d5ef9d70'
Derek Buitenhuis [Sun, 10 Apr 2016 20:49:15 +0000 (21:49 +0100)]
Merge commit 'c23152a90371bfe971b063781ef4e7d9d5ef9d70'

This commit is a no-op. We want to do this ourselves since avplay and
ffplay differ quite a bit.

* commit 'c23152a90371bfe971b063781ef4e7d9d5ef9d70':
  avplay: convert do codecpar

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit '0705f5960c9d272cef1309c090000865b991c9c7'
Derek Buitenhuis [Sun, 10 Apr 2016 20:48:24 +0000 (21:48 +0100)]
Merge commit '0705f5960c9d272cef1309c090000865b991c9c7'

This commit is a no-op. We did this already in 9e0d1c00b5832e80dc11368e3d39f9e2ec9346f1.

* commit '0705f5960c9d272cef1309c090000865b991c9c7':
  avplay: do not use AVStream.codec for decoding

Merged-by: Derek Buitenhuis <derek.butienhuis@gmail.com>
8 years agoMerge commit '15e84ed3f141c586e8cb78ed58365cf5a511108a'
Derek Buitenhuis [Sun, 10 Apr 2016 20:47:26 +0000 (21:47 +0100)]
Merge commit '15e84ed3f141c586e8cb78ed58365cf5a511108a'

This commit is a no-op. We want to do this ourselves, since avconv and ffmpeg
differ quite a bit.

* commit '15e84ed3f141c586e8cb78ed58365cf5a511108a':
  avconv: convert to codecpar

Merged-by: Derek Buitenhuis <derek.butienhuis@gmail.com>
8 years agoMerge commit '5b9cdf8cba114c41239bf0f9f5e0ccb6977d1c8d'
Derek Buitenhuis [Sun, 10 Apr 2016 20:29:30 +0000 (21:29 +0100)]
Merge commit '5b9cdf8cba114c41239bf0f9f5e0ccb6977d1c8d'

This commit is a no-op. We already moved it here.

* commit '5b9cdf8cba114c41239bf0f9f5e0ccb6977d1c8d':
  avconv: switch opening decoders and encoders

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoMerge commit '9200514ad8717c63f82101dc394f4378854325bf'
Derek Buitenhuis [Sun, 10 Apr 2016 19:58:15 +0000 (20:58 +0100)]
Merge commit '9200514ad8717c63f82101dc394f4378854325bf'

* commit '9200514ad8717c63f82101dc394f4378854325bf':
  lavf: replace AVStream.codec with AVStream.codecpar

This has been a HUGE effort from:
    - Derek Buitenhuis <derek.buitenhuis@gmail.com>
    - Hendrik Leppkes <h.leppkes@gmail.com>
    - wm4 <nfxjfg@googlemail.com>
    - Clément Bœsch <clement@stupeflix.com>
    - James Almer <jamrial@gmail.com>
    - Michael Niedermayer <michael@niedermayer.cc>
    - Rostislav Pehlivanov <atomnuker@gmail.com>

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoavcodec/wmalosslessdec: do not discard last frame
Jakub Stachowski [Sun, 10 Apr 2016 19:33:56 +0000 (21:33 +0200)]
avcodec/wmalosslessdec: do not discard last frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/shorten: mark as AV_CODEC_CAP_SUBFRAMES
Paul B Mahol [Sun, 10 Apr 2016 13:30:03 +0000 (15:30 +0200)]
avcodec/shorten: mark as AV_CODEC_CAP_SUBFRAMES

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agofate/exr : add test for PXR24 Float and tile uncompress
Martin Vignali [Mon, 4 Apr 2016 14:42:00 +0000 (16:42 +0200)]
fate/exr : add test for PXR24 Float and tile uncompress

8 years agoavcodec/exr: fix channel detection
Martin Vignali [Thu, 7 Apr 2016 09:17:18 +0000 (11:17 +0200)]
avcodec/exr: fix channel detection

8 years agolavf/avio: Remove linebreak from https warning.
Carl Eugen Hoyos [Sun, 10 Apr 2016 13:39:13 +0000 (15:39 +0200)]
lavf/avio: Remove linebreak from https warning.

8 years agoavformat/mpegts: Remove unused argument from analyze()
Michael Niedermayer [Sun, 10 Apr 2016 11:18:17 +0000 (13:18 +0200)]
avformat/mpegts: Remove unused argument from analyze()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/mpegts: Check adaption field control in analyze() more instead of transport_...
Michael Niedermayer [Sun, 10 Apr 2016 11:08:00 +0000 (13:08 +0200)]
avformat/mpegts: Check adaption field control in analyze() more instead of transport_error_indicator

transport_error_indicator is not required to be 0

Fixes probing
Fixes Ticket 4862

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/shorten: add support for AIFF packing, not bitexact
Paul B Mahol [Sat, 9 Apr 2016 19:07:10 +0000 (21:07 +0200)]
avcodec/shorten: add support for AIFF packing, not bitexact

Also report unsupported packing.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/shorten: fix decoding of very large (>2048) block sizes
Paul B Mahol [Sat, 9 Apr 2016 13:57:41 +0000 (15:57 +0200)]
avcodec/shorten: fix decoding of very large (>2048) block sizes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavf/rawenc: Add a raw gsm muxer.
Carl Eugen Hoyos [Sat, 9 Apr 2016 09:44:50 +0000 (11:44 +0200)]
lavf/rawenc: Add a raw gsm muxer.

8 years agolavf/gsmdec: Add raw gsm autodetection.
Carl Eugen Hoyos [Sat, 9 Apr 2016 09:38:46 +0000 (11:38 +0200)]
lavf/gsmdec: Add raw gsm autodetection.

Fixes bug 555.

8 years agoavcodec/pngdec: Fix alpha detection with skip_frame
Michael Niedermayer [Fri, 8 Apr 2016 22:47:10 +0000 (00:47 +0200)]
avcodec/pngdec: Fix alpha detection with skip_frame

Fixes Ticket4816

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoswscale/arm: add ff_hscale_8_to_15_neon
Matthieu Bouron [Thu, 7 Apr 2016 14:52:00 +0000 (14:52 +0000)]
swscale/arm: add ff_hscale_8_to_15_neon

8 years agoavcodec/shorten: fix decoding of files with number of samples lower than max_frame_size
Paul B Mahol [Fri, 8 Apr 2016 21:35:45 +0000 (23:35 +0200)]
avcodec/shorten: fix decoding of files with number of samples lower than max_frame_size

Note that support of very big block sizes is not currently supported at all due
too flawed logic in decoder.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/shorten: remove useless if condition and comment, reindent
Paul B Mahol [Fri, 8 Apr 2016 20:50:39 +0000 (22:50 +0200)]
avcodec/shorten: remove useless if condition and comment, reindent

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat/nistshperedec: add support for mu-law as sample-byte-format
Paul B Mahol [Fri, 8 Apr 2016 20:26:08 +0000 (22:26 +0200)]
avformat/nistshperedec: add support for mu-law as sample-byte-format

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/shorten: fix decoding of last frame
Paul B Mahol [Fri, 8 Apr 2016 08:35:11 +0000 (10:35 +0200)]
avcodec/shorten: fix decoding of last frame

Previously it would be always discarded.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agofate: Add test for Ticket 2397 (dvdsub)
Michael Niedermayer [Sat, 2 Apr 2016 00:36:41 +0000 (02:36 +0200)]
fate: Add test for Ticket 2397 (dvdsub)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agosws/aarch64/yuv2rgb: honor iOS calling convention
Clément Bœsch [Fri, 8 Apr 2016 11:39:22 +0000 (13:39 +0200)]
sws/aarch64/yuv2rgb: honor iOS calling convention

y_offset and y_coeff being successive 32-bit integers, they are packed
into 8 bytes instead of 2x8 bytes.

See https://developer.apple.com/library/ios/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARM64FunctionCallingConventions.html

> iOS diverges from Procedure Call Standard for the ARM 64-bit
> Architecture in several ways
[...]
> In the generic procedure call standard, all function arguments passed
> on the stack consume slots in multiples of 8 bytes. In iOS, this
> requirement is dropped, and values consume only the space required.
[...]
> Padding is still inserted on the stack to satisfy arguments’ alignment
> requirements.

8 years agoavformat/nistspheredec: fix silly bug
Paul B Mahol [Fri, 8 Apr 2016 11:19:00 +0000 (13:19 +0200)]
avformat/nistspheredec: fix silly bug

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/pngenc: check return value of av_frame_copy()
Paul B Mahol [Fri, 8 Apr 2016 10:45:40 +0000 (12:45 +0200)]
avcodec/pngenc: check return value of av_frame_copy()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/pngenc: restore image size before copying frame
Dmitriy [Fri, 8 Apr 2016 10:37:20 +0000 (12:37 +0200)]
avcodec/pngenc: restore image size before copying frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/shorten: if allocation fails reset max_frame_size
Paul B Mahol [Fri, 8 Apr 2016 07:59:05 +0000 (09:59 +0200)]
avcodec/shorten: if allocation fails reset max_frame_size

Otherwise crash happens.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec: remove "get_buffer() failed" message
Paul B Mahol [Fri, 8 Apr 2016 07:40:32 +0000 (09:40 +0200)]
avcodec: remove "get_buffer() failed" message

It is already provided by ff_get_buffer().

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat: support shorten in nistshpere demuxer
Paul B Mahol [Wed, 6 Apr 2016 19:57:52 +0000 (21:57 +0200)]
avformat: support shorten in nistshpere demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agodoc/filters: add drawtext example
Mulvya [Sun, 3 Apr 2016 08:57:01 +0000 (14:27 +0530)]
doc/filters: add drawtext example

Show example which draws text at a random position, and switches positions every 30 seconds

Signed-off-by: Mulvya <mulvya@gmail.com>
Signed-off-by: Lou Logan <lou@lrcd.com>
8 years agoavfilter: add remap filter
F.Sluiter [Tue, 5 Apr 2016 07:36:37 +0000 (09:36 +0200)]
avfilter: add remap filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoswscale/utils: Remove unused variable
Michael Niedermayer [Wed, 6 Apr 2016 09:50:01 +0000 (11:50 +0200)]
swscale/utils: Remove unused variable

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat: add aix demuxer
Paul B Mahol [Tue, 5 Apr 2016 12:05:10 +0000 (14:05 +0200)]
avformat: add aix demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/exr: enable mipmap, ripmap decoding
Martin Vignali [Tue, 5 Apr 2016 19:17:51 +0000 (21:17 +0200)]
avcodec/exr: enable mipmap, ripmap decoding

8 years agofate: add missing filter-meta-4560-rotate0 dependencies
James Almer [Wed, 6 Apr 2016 00:17:13 +0000 (21:17 -0300)]
fate: add missing filter-meta-4560-rotate0 dependencies

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoAAC encoder: fix valgrind errors
Claudio Freire [Wed, 6 Apr 2016 02:13:44 +0000 (23:13 -0300)]
AAC encoder: fix valgrind errors

Move wi.clipping computation outside of psy_lame_window, LFE
channels don't even call that, and make the LFE path also
initialize window_type[1] which is needed by analyze_channel

8 years agofate: force fixed point aac decoder in filter-meta-4560-rotate0
Michael Niedermayer [Wed, 6 Apr 2016 01:05:36 +0000 (03:05 +0200)]
fate: force fixed point aac decoder in filter-meta-4560-rotate0

This should fix a off by 1 difference between AARCH64 and X86

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibxvid: Create extradata in init using a dummy frame
Derek Buitenhuis [Sun, 3 Apr 2016 16:55:25 +0000 (12:55 -0400)]
libxvid: Create extradata in init using a dummy frame

Modifying global header extradata in encode_frame is an API violation
and only happens to work currently because mov writes its header
at the end of the file.

Heavily based off of a patch from 2012.

Original-by: Nicolas George <george@nsup.org>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agosws/aarch64: restore ff_hscale_8_to_15_neon()
Clément Bœsch [Tue, 5 Apr 2016 08:16:32 +0000 (10:16 +0200)]
sws/aarch64: restore ff_hscale_8_to_15_neon()

Fix final scaling and required filter alignment. Pass FATE.

8 years agoavformat: add musx demuxer
Paul B Mahol [Sun, 3 Apr 2016 10:10:09 +0000 (12:10 +0200)]
avformat: add musx demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec: add adpcm dat4 decoder
Paul B Mahol [Sun, 3 Apr 2016 10:55:17 +0000 (12:55 +0200)]
avcodec: add adpcm dat4 decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoAAC encoder: fix filling of wi.clipping array
Claudio Freire [Tue, 5 Apr 2016 07:03:05 +0000 (04:03 -0300)]
AAC encoder: fix filling of wi.clipping array

Fill all windows in all window groups instead of only the first
window of each group.

Also avoid uninitialized access of window_type.

8 years agoffplay: fix silence insertion on error or pause
Marton Balint [Sun, 3 Apr 2016 19:23:41 +0000 (21:23 +0200)]
ffplay: fix silence insertion on error or pause

Insertion of silence was a bit broken since
df34b700981de606ca4847e1ed0bfdf9ac3e9104 because the info whether or not the
source buffer supposed to be silence must be kept between callbacks. Failing to
do so causes rogue samples from the last buffer to be presented, I guess even a
crash can occur under some circumstances.

This patch uses a NULL audio_buf to keep the silence state across audio
callbacks.

Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agolibavcodec/exr : add support for compression in tile
Martin Vignali [Mon, 4 Apr 2016 20:00:31 +0000 (22:00 +0200)]
libavcodec/exr : add support for compression in tile

8 years agolibavcodec/exr : cosmetic change
Martin Vignali [Mon, 4 Apr 2016 15:23:42 +0000 (17:23 +0200)]
libavcodec/exr : cosmetic change

8 years agofate: Add wav-ac3 test
Michael Niedermayer [Sat, 2 Apr 2016 11:45:41 +0000 (13:45 +0200)]
fate: Add wav-ac3 test

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate: add fate-flv-demux
Michael Niedermayer [Sat, 2 Apr 2016 20:02:52 +0000 (22:02 +0200)]
fate: add fate-flv-demux

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate: Add fate-ts-opus-demux
Michael Niedermayer [Sat, 2 Apr 2016 20:00:41 +0000 (22:00 +0200)]
fate: Add fate-ts-opus-demux

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate: add demux test for OggOpus
James Almer [Sat, 2 Apr 2016 20:31:36 +0000 (17:31 -0300)]
fate: add demux test for OggOpus

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoAAC encoder: new regression test
Claudio Freire [Sun, 3 Apr 2016 18:28:17 +0000 (15:28 -0300)]
AAC encoder: new regression test

Test to catch the recently fixed minsf bug

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoAAC encoder: fix initialization of minsf
Claudio Freire [Sun, 3 Apr 2016 18:03:53 +0000 (15:03 -0300)]
AAC encoder: fix initialization of minsf

In some situations (exactly zeroed DC coeffs) minsf would
be initialized with garbage

8 years agoavformat/brstm: lower magic number, fixes decoding of some files
Paul B Mahol [Sun, 3 Apr 2016 17:12:07 +0000 (19:12 +0200)]
avformat/brstm: lower magic number, fixes decoding of some files

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavc/utils: Introduce ff_bprint_to_codecpar_extradata for avformat
Hendrik Leppkes [Thu, 31 Mar 2016 20:49:02 +0000 (21:49 +0100)]
lavc/utils: Introduce ff_bprint_to_codecpar_extradata for avformat

It will be used by text subtitle demuxers to construct format instructions
straight into extradata. They all currently a similar function that accepts
an AVCodecContext instead.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoavformat/wavdec: fix typo with len
Michael Niedermayer [Sun, 3 Apr 2016 15:34:15 +0000 (17:34 +0200)]
avformat/wavdec: fix typo with len

Found-by: carl
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibavcodec/exr: add tile support
Martin Vignali [Sat, 2 Apr 2016 22:21:30 +0000 (00:21 +0200)]
libavcodec/exr: add tile support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolibavcodec/exr: fix PRX24 Float decompression
Martin Vignali [Sun, 3 Apr 2016 12:12:44 +0000 (14:12 +0200)]
libavcodec/exr: fix PRX24 Float decompression

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agofate/exr : add test for b44/b44a compression
Martin Vignali [Sat, 26 Mar 2016 20:02:07 +0000 (21:02 +0100)]
fate/exr : add test for b44/b44a compression

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/wavdec: Remove direct s->pb->buffer access
Michael Niedermayer [Sun, 3 Apr 2016 00:15:06 +0000 (02:15 +0200)]
avformat/wavdec: Remove direct s->pb->buffer access

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agowavdec: Only set the codec ID in read_header
Derek Buitenhuis [Sat, 2 Apr 2016 21:43:17 +0000 (22:43 +0100)]
wavdec: Only set the codec ID in read_header

WAV is not a NOHEADER format, and thus should not be changing
stream codec IDs and probing in read_packet.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/mjpegdec: Do not permute quantization tables
Michael Niedermayer [Sat, 2 Apr 2016 23:28:07 +0000 (01:28 +0200)]
avcodec/mjpegdec: Do not permute quantization tables

This fixes issues if the permutation changes, as quantizations tables would need to be reread

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/src_movie: fix how we check for overflows with seek_point
Marios Titas [Sat, 2 Apr 2016 18:11:44 +0000 (21:11 +0300)]
avfilter/src_movie: fix how we check for overflows with seek_point

Currently, if the movie source filter is used and a seek_point is
specified on a file that has a negative start time, ffmpeg will fail.

An easy way to reproduce this is as follows:
$ ffmpeg -vsync passthrough -filter_complex 'color=d=10,setpts=PTS-1/TB' test.mp4
$ ffmpeg -filter_complex 'movie=filename=test.mp4:seek_point=2' -f null -

The problem is caused by checking for int64_t overflow the wrong way.
In general, to check whether a + b overflows, it is not enough to do:
    a > INT64_MAX - b
because b might be negative; the correct way is:
    b > 0 && > a > INT64_MAX - b

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoexif: take a generic log context
Hendrik Leppkes [Fri, 1 Apr 2016 11:13:03 +0000 (13:13 +0200)]
exif: take a generic log context

The AVCodecContext is only used for logging, so instead take any valid log context.
This allows reusing the exif functions more easily in avformat.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoavcodec: properly initialize AVCodecParameters profile/level
Hendrik Leppkes [Fri, 1 Apr 2016 11:13:02 +0000 (13:13 +0200)]
avcodec: properly initialize AVCodecParameters profile/level

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agolavf/segment: add option to write empty filler segments as needed
Rodger Combs [Mon, 7 Mar 2016 02:48:57 +0000 (20:48 -0600)]
lavf/segment: add option to write empty filler segments as needed

8 years agolavf/segment: slight refactor to seg_write_packet
Rodger Combs [Mon, 7 Mar 2016 02:43:37 +0000 (20:43 -0600)]
lavf/segment: slight refactor to seg_write_packet

This reduces some code duplication, and ensures that cur_entry.last_duration is
always set.

8 years agolavf/segment: style nit
Rodger Combs [Mon, 7 Mar 2016 01:38:39 +0000 (19:38 -0600)]
lavf/segment: style nit

8 years agolavc/videotoolboxenc: Workaround encoder error
Rick Kern [Thu, 24 Mar 2016 17:56:04 +0000 (01:56 +0800)]
lavc/videotoolboxenc: Workaround encoder error

CMVideoFormatDescriptionGetH264ParameterSetAtIndex() fails on some
hardware/OS versions when retrieving the parameter set count alone.

Signed-off-by: Rick Kern <kernrj@gmail.com>
Signed-off-by: wm4 <nfxjfg@googlemail.com>
8 years agolavc/videotoolboxenc: Fix crash when closing codec after error
Rick Kern [Sun, 20 Mar 2016 16:55:56 +0000 (00:55 +0800)]
lavc/videotoolboxenc: Fix crash when closing codec after error

Fixes crash in #5352. VTCompressionSessionInvalidate() crashes if the
internal encoder hasn't completed, but hasn't experienced an error.
The function call isn't needed since the encoder is invalidated when
the reference count reaches 0 anyway.

Signed-off-by: Rick Kern <kernrj@gmail.com>
Signed-off-by: wm4 <nfxjfg@googlemail.com>
8 years agolavc/utils: use pkt_timebase for legacy subtitles timing code
Clément Bœsch [Mon, 28 Mar 2016 12:15:42 +0000 (14:15 +0200)]
lavc/utils: use pkt_timebase for legacy subtitles timing code

This is consistent with other AVSubtitle timing adjustments.

8 years agolavc/ccaption_dec: remove usage of avctx->time_base
Clément Bœsch [Mon, 28 Mar 2016 12:10:08 +0000 (14:10 +0200)]
lavc/ccaption_dec: remove usage of avctx->time_base

lavc/utils already rescales avpkt->pts to sub->pts in AV_TIME_BASE_Q
before calling the decode callback. This prevents from rescaling again
into the decoder, and avoid the use of avctx->time_base which will
disappear in the incoming codecpar merge.

This commit also replaces the use of "20 centisecond" (ass time base)
with "200 ms".

8 years agolavu/base64: add AV_BASE64_DECODE_SIZE() macro
Stefano Sabatini [Sun, 20 Mar 2016 14:59:47 +0000 (15:59 +0100)]
lavu/base64: add AV_BASE64_DECODE_SIZE() macro

This is consistent with the AV_BASE64_SIZE macro and avoids the literal
use of constants in the code.

8 years agolavc/audiotoolboxdec: add eac3 decoder
Rodger Combs [Thu, 31 Mar 2016 01:55:32 +0000 (20:55 -0500)]
lavc/audiotoolboxdec: add eac3 decoder

This is added in 10.11, so we add a #define when building against older SDKs.

The decoder actually supports 7.1-channel eac3, but since the parser only
reports 6 channels, we end up decoding the 5.1 downmix (same as the internal
decoder) for now.

8 years agolavc/audiotoolboxdec: fix a number of config and timestamp issues
Rodger Combs [Thu, 24 Mar 2016 05:49:51 +0000 (00:49 -0500)]
lavc/audiotoolboxdec: fix a number of config and timestamp issues

- ADTS-formatted AAC didn't work
- Channel layouts were never exported
- Channel mappings were incorrect beyond stereo
- Channel counts weren't updated after packets were decoded
- Timestamps were exported incorrectly

8 years agolavc/audiotoolboxdec: support ADTS AAC input
Rodger Combs [Thu, 24 Mar 2016 02:50:41 +0000 (21:50 -0500)]
lavc/audiotoolboxdec: support ADTS AAC input

8 years agolavc/audiotoolboxenc: allow setting maxrate with pre-10.9 deployment targets
Rodger Combs [Sun, 27 Mar 2016 17:17:25 +0000 (12:17 -0500)]
lavc/audiotoolboxenc: allow setting maxrate with pre-10.9 deployment targets

The build failure here is caused by the enum value not being defined, but
as long as we're on a newer SDK that has it, it's safe to use it even
when our deployment target is older. Setting the property will error, but
we're not failing on errors there.

8 years agolavc/audiotoolboxenc: fix iOS build
Rodger Combs [Thu, 24 Mar 2016 15:17:42 +0000 (10:17 -0500)]
lavc/audiotoolboxenc: fix iOS build

8 years agolavc/audiotoolboxenc: fix a number of config issues
Rodger Combs [Wed, 23 Mar 2016 21:46:39 +0000 (16:46 -0500)]
lavc/audiotoolboxenc: fix a number of config issues

- size variables were used in a confusing way
- incorrect size var use led to channel layouts not being set properly
- channel layouts were incorrectly mapped for >2-channel AAC
- bitrates not accepted by the encoder were discarded instead of being clamped
- some minor style/indentation fixes

8 years agolavc/audiotoolboxenc: remove unneeded packet metadata
Rodger Combs [Wed, 23 Mar 2016 21:29:50 +0000 (16:29 -0500)]
lavc/audiotoolboxenc: remove unneeded packet metadata

This isn't necessary here, and for some reason broke only multichannel
AAC encoding when a channel layout tag was set.

8 years agolavf/segment: support automatic bitstream filtering
Rodger Combs [Wed, 23 Mar 2016 14:24:22 +0000 (09:24 -0500)]
lavf/segment: support automatic bitstream filtering

Most useful for MPEG-TS. Works by having the underlying muxer configure the
bitstream filters, then moving them to our own AVStreams.