ffmpeg.git
4 years agoMerge commit '317cfaa5e09755ed0b34af512ec687963a67bdbf'
Hendrik Leppkes [Tue, 18 Aug 2015 07:35:56 +0000 (09:35 +0200)]
Merge commit '317cfaa5e09755ed0b34af512ec687963a67bdbf'

* commit '317cfaa5e09755ed0b34af512ec687963a67bdbf':
  asfdec: prevent the memory leak in the asf_read_metada_obj

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '58c3720a3cc71142b5d48d8ccdc9213f9a66cd33'
Hendrik Leppkes [Tue, 18 Aug 2015 07:34:53 +0000 (09:34 +0200)]
Merge commit '58c3720a3cc71142b5d48d8ccdc9213f9a66cd33'

* commit '58c3720a3cc71142b5d48d8ccdc9213f9a66cd33':
  fate: Make sure a corner-case for ASF is covered

Adjusted fate ref to match the different timebase of the ffasf demuxer

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '72839fce6457fdb5d51b4a5381ac52914ee66389'
Hendrik Leppkes [Tue, 18 Aug 2015 07:22:41 +0000 (09:22 +0200)]
Merge commit '72839fce6457fdb5d51b4a5381ac52914ee66389'

* commit '72839fce6457fdb5d51b4a5381ac52914ee66389':
  hlsenc: Use AV_TIME_BASE units for all the computations

Not merged, duration/time computation is handled quite differently in ffmpeg's hlsenc

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '7bf9647264308d2df74b2b50669f2d02a7ecc90b'
Hendrik Leppkes [Tue, 18 Aug 2015 07:14:08 +0000 (09:14 +0200)]
Merge commit '7bf9647264308d2df74b2b50669f2d02a7ecc90b'

* commit '7bf9647264308d2df74b2b50669f2d02a7ecc90b':
  vp7: bound checking in vp7_decode_frame_header

Only partially merged, see 46f72ea507afee6adb0d2324848159063d0e7afc

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit 'f34b152eb7b7e8d2aee57c710a072cf74173fbe1'
Hendrik Leppkes [Tue, 18 Aug 2015 07:09:55 +0000 (09:09 +0200)]
Merge commit 'f34b152eb7b7e8d2aee57c710a072cf74173fbe1'

* commit 'f34b152eb7b7e8d2aee57c710a072cf74173fbe1':
  libfdk-aacdec: Clean up properly if the init fails

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '1b90433f79de857550d4d8c35c89fbe954920594'
Hendrik Leppkes [Tue, 18 Aug 2015 07:05:54 +0000 (09:05 +0200)]
Merge commit '1b90433f79de857550d4d8c35c89fbe954920594'

* commit '1b90433f79de857550d4d8c35c89fbe954920594':
  libfdk-aacdec: Always decode into an intermediate buffer

Conflicts:
libavcodec/libfdk-aacdec.c

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '87de6ddb7b7674e329d5c96677bd8685bc7f7855'
Hendrik Leppkes [Tue, 18 Aug 2015 07:02:15 +0000 (09:02 +0200)]
Merge commit '87de6ddb7b7674e329d5c96677bd8685bc7f7855'

* commit '87de6ddb7b7674e329d5c96677bd8685bc7f7855':
  libfdk-aacdec: Bump the max number of channels to 8

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit 'cb2dbe2c762dae44d890aa26620bcdd9022fd0f3'
Hendrik Leppkes [Tue, 18 Aug 2015 07:02:01 +0000 (09:02 +0200)]
Merge commit 'cb2dbe2c762dae44d890aa26620bcdd9022fd0f3'

* commit 'cb2dbe2c762dae44d890aa26620bcdd9022fd0f3':
  configure: arm: Assume softfp ABI on darwin

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '44b44441203177690305c294be6eff8d9c668954'
Hendrik Leppkes [Tue, 18 Aug 2015 07:01:35 +0000 (09:01 +0200)]
Merge commit '44b44441203177690305c294be6eff8d9c668954'

* commit '44b44441203177690305c294be6eff8d9c668954':
  x86inc: Various minor backports from x264

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '26ac22e5e7394346e9d59f800e7d4e91f4518d33'
Hendrik Leppkes [Tue, 18 Aug 2015 06:50:22 +0000 (08:50 +0200)]
Merge commit '26ac22e5e7394346e9d59f800e7d4e91f4518d33'

* commit '26ac22e5e7394346e9d59f800e7d4e91f4518d33':
  movenc: Add a new flag for writing global sidx indexes for dash

Conflicts:
libavformat/movenc.c
libavformat/movenc.h

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoswscale: process horizontal lines in batches
Pedro Arthur [Mon, 17 Aug 2015 20:07:53 +0000 (17:07 -0300)]
swscale: process horizontal lines in batches

Process more lines in a single pass to improve performance

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoswscale: refactor horizontal scaling
Pedro Arthur [Mon, 17 Aug 2015 20:03:20 +0000 (17:03 -0300)]
swscale: refactor horizontal scaling

+ split color conversion from scaling
- disabled gamma correction, until it's refactored too

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: add -fflags +bitexact in a few places.
Ronald S. Bultje [Mon, 17 Aug 2015 19:47:20 +0000 (15:47 -0400)]
fate: add -fflags +bitexact in a few places.

This improves results after FF_API_LAVF_BITEXACT=0. It still doesn't
pass, because of mov rtphint track which I don't understand (yet).

4 years agofate: explicitly specify audio bitrate for adpcm/mp2fixed tests.
Ronald S. Bultje [Mon, 17 Aug 2015 15:50:12 +0000 (11:50 -0400)]
fate: explicitly specify audio bitrate for adpcm/mp2fixed tests.

They picked up defaults, which changes from 128 to 200 when we remove
FF_API_OLD_AVOPTIONS.

4 years agofate: move -flags +mv0 -> -mpv_flags +mv0.
Ronald S. Bultje [Mon, 17 Aug 2015 20:08:50 +0000 (16:08 -0400)]
fate: move -flags +mv0 -> -mpv_flags +mv0.

Fixes associated fate tests when FF_API_MV0=0.

4 years agoavfilter: add scale2ref filter
Michael Niedermayer [Sat, 15 Aug 2015 16:38:06 +0000 (18:38 +0200)]
avfilter: add scale2ref filter

This filter can be used to scale one stream to match another or based on
another, useful to scale subtitles or other things to be overlayed

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/mjpegdec: Detect more CMYK images.
Carl Eugen Hoyos [Mon, 17 Aug 2015 13:53:41 +0000 (15:53 +0200)]
lavc/mjpegdec: Detect more CMYK images.

Fixes ticket #4772.

4 years agoswscale/swscale-test: Fix slice height in random reference data creation.
Michael Niedermayer [Mon, 17 Aug 2015 01:08:10 +0000 (03:08 +0200)]
swscale/swscale-test: Fix slice height in random reference data creation.

Found-by: Pedro Arthur <bygrandao@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/rv30: fix switching back to the original resolution
Michael Niedermayer [Sun, 16 Aug 2015 23:50:20 +0000 (01:50 +0200)]
avcodec/rv30: fix switching back to the original resolution

Fixes part of Ticket1388

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoffmpeg_vdpau: Ignore decoder's max supported level
Philip Langdale [Wed, 24 Jun 2015 03:37:08 +0000 (20:37 -0700)]
ffmpeg_vdpau: Ignore decoder's max supported level

The h264 decoder reports 4.1 as its maximum level, but it will decode
5.1 4K video just fine. In practice, the published level limits in
vdpau do not communicate anything that's actually useful.

4 years agobuffersink: introduce FIFO_INIT_ELEMENT_SIZE to complement FIFO_INIT_SIZE
Andreas Cadhalpun [Sun, 16 Aug 2015 15:57:36 +0000 (17:57 +0200)]
buffersink: introduce FIFO_INIT_ELEMENT_SIZE to complement FIFO_INIT_SIZE

Use sizeof(void *) as its value, because AVFilterBufferRef is deprecated.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
4 years agoasfdec: prevent the memory leak in the asf_read_metada_obj
Alexandra Hájková [Thu, 13 Aug 2015 08:16:20 +0000 (10:16 +0200)]
asfdec: prevent the memory leak in the asf_read_metada_obj

also do not return the error code but just break reading
metadata object in the case of the aspect ratio reading failure

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
4 years agofate: Make sure a corner-case for ASF is covered
Alexandra Hájková [Fri, 14 Aug 2015 09:42:26 +0000 (11:42 +0200)]
fate: Make sure a corner-case for ASF is covered

Test the demuxer for the case when the replicated data length in
a sample is 0.

Sample-ID: https://samples.libav.org/mplayer-bugs/bug821/bug821-2.asf

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
4 years agohlsenc: Use AV_TIME_BASE units for all the computations
Luca Barbato [Fri, 14 Aug 2015 20:01:45 +0000 (22:01 +0200)]
hlsenc: Use AV_TIME_BASE units for all the computations

Do not risk mixing different timebases.

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
4 years agovp7: bound checking in vp7_decode_frame_header
Federico Tomassetti [Thu, 13 Aug 2015 13:35:53 +0000 (15:35 +0200)]
vp7: bound checking in vp7_decode_frame_header

CC: libav-stable@libav.org
4 years agoffmpeg: use av_buffersrc_add_frame instead of av_buffersrc_add_ref
Andreas Cadhalpun [Sat, 8 Aug 2015 08:41:32 +0000 (10:41 +0200)]
ffmpeg: use av_buffersrc_add_frame instead of av_buffersrc_add_ref

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
4 years agoavfilter/avfiltergraph: Implement and use find_best_sample_fmt_of_2()
Michael Niedermayer [Sun, 16 Aug 2015 12:59:18 +0000 (14:59 +0200)]
avfilter/avfiltergraph: Implement and use find_best_sample_fmt_of_2()

Similar to the pixel format code

Fixes Ticket3847

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/matroskadec: Fully parse and repack MP3 packets
Rodger Combs [Sun, 16 Aug 2015 08:06:04 +0000 (03:06 -0500)]
lavf/matroskadec: Fully parse and repack MP3 packets

Fixes https://trac.ffmpeg.org/ticket/4776

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/filter_design: Remove reference to the deprecated and unused cur_buf_copy
Michael Niedermayer [Sun, 16 Aug 2015 02:00:26 +0000 (04:00 +0200)]
doc/filter_design: Remove reference to the deprecated and unused cur_buf_copy

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/examples: rename avio_list_dir -> avio_dir_cmd
Mariusz Szczepańczyk [Sat, 15 Aug 2015 15:59:17 +0000 (17:59 +0200)]
doc/examples: rename avio_list_dir -> avio_dir_cmd

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibfdk-aacdec: Clean up properly if the init fails
Martin Storsjö [Fri, 14 Aug 2015 08:33:03 +0000 (11:33 +0300)]
libfdk-aacdec: Clean up properly if the init fails

Previously most of the error paths leaked.

Also add FF_CODEC_CAP_INIT_THREADSAFE while adding caps_internal;
this decoder wrapper doesn't have any static data that is initialized.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agolibfdk-aacdec: Always decode into an intermediate buffer
Martin Storsjö [Fri, 14 Aug 2015 08:05:30 +0000 (11:05 +0300)]
libfdk-aacdec: Always decode into an intermediate buffer

For ADTS streams, the output format (number of channels, frame size)
can change at any point (with the latest version of fdk-aac, the decoder
seems to change format after a handful of frames, not outputting the
right format immediately, for cases that worked fine with the earlier
version of the lib).

Previously, the decoder decoded straight into the output frame once the
number of channels and frame size was known. This obviously does not
work if the number of channels or frame size changes.

The alternative would be to allocate the AVFrame with the maximum number
of channels and frame size, and change them afterward decoding into it,
but that may cause confusion to users e.g. of the get_buffer callback.
This solution should be more robust.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agolibfdk-aacdec: Bump the max number of channels to 8
Martin Storsjö [Fri, 14 Aug 2015 07:55:54 +0000 (10:55 +0300)]
libfdk-aacdec: Bump the max number of channels to 8

In the latest version of fdk-aac, the decoder can output up to 8
channels; take this into account when preallocating buffers that
need to fit the output from any packet.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoconfigure: arm: Assume softfp ABI on darwin
Martin Storsjö [Fri, 14 Aug 2015 06:47:21 +0000 (09:47 +0300)]
configure: arm: Assume softfp ABI on darwin

Don't try to detect the float ABI by checking at the toolchain
name or by trying to assemble and link files with eabi_attributes.

This fixes the float ABI detection when building using clang
with -fembed-bitcode, where the current eabi_attributes check
accidentally passes.

This issue was pointed out by James Howe <james.howe@hp.com>.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoffmpeg: Use the decoders dimensions in sub2video_get_blank_frame()
Michael Niedermayer [Sat, 15 Aug 2015 15:28:21 +0000 (17:28 +0200)]
ffmpeg: Use the decoders dimensions in sub2video_get_blank_frame()

Fixes Ticket4744 part3

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoffmpeg: Use actual frame dimensions in checks in sub2video_update()
Michael Niedermayer [Sat, 15 Aug 2015 15:28:16 +0000 (17:28 +0200)]
ffmpeg: Use actual frame dimensions in checks in sub2video_update()

Fixes Ticket4744 part2

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoffmpeg: Print sub2video: rectangle coordinates in case of overflows
Michael Niedermayer [Wed, 12 Aug 2015 22:45:06 +0000 (00:45 +0200)]
ffmpeg: Print sub2video: rectangle coordinates in case of overflows

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoffmpeg_filter: Do not override the dimensions in sub2video_prepare()
Michael Niedermayer [Sat, 15 Aug 2015 15:27:25 +0000 (17:27 +0200)]
ffmpeg_filter: Do not override the dimensions in sub2video_prepare()

Fixes ticket4744 part1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/flashsvenc: Correct max dimension in error message
Michael Niedermayer [Sat, 15 Aug 2015 13:21:04 +0000 (15:21 +0200)]
avcodec/flashsvenc: Correct max dimension in error message

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/svq1enc: Check dimensions
Michael Niedermayer [Sat, 15 Aug 2015 12:54:36 +0000 (14:54 +0200)]
avcodec/svq1enc: Check dimensions

Fixes assertion failure

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agomovtextdec: Add support for automatic text wrapping
Niklesh [Fri, 14 Aug 2015 14:49:51 +0000 (20:19 +0530)]
movtextdec: Add support for automatic text wrapping

The value of wrap_flag in the Text Wrap Box specifies if the text is to
be wrapped or not. Uses 'end of line wrap' amongst the wrap styles
supported by ASS if the text is to be wrapped, i.e; fill as much text
in a line as possible, then break to next line.

The 3GPP spec has no provision for smart wrapping.

Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in>
4 years agoexamples/avio_list_dir: add move and delete methods
Mariusz Szczepańczyk [Sat, 15 Aug 2015 00:01:20 +0000 (02:01 +0200)]
examples/avio_list_dir: add move and delete methods

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/avf_avectorscope: add polar mode
Paul B Mahol [Fri, 14 Aug 2015 15:24:56 +0000 (17:24 +0200)]
avfilter/avf_avectorscope: add polar mode

4 years agoavcodec/qsvenc: Set MaxKpbs to rc_max_rate for CBR and VBR (bitrate is equal to rc_ma...
Sven Dueking [Fri, 14 Aug 2015 10:46:22 +0000 (12:46 +0200)]
avcodec/qsvenc: Set MaxKpbs to rc_max_rate for CBR and VBR (bitrate is equal to rc_max_rate for CBR)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agomxfdec: set AVFMT_SEEK_TO_PTS demuxer flag
Marton Balint [Sun, 9 Aug 2015 18:32:02 +0000 (20:32 +0200)]
mxfdec: set AVFMT_SEEK_TO_PTS demuxer flag

Since 53f2ef2c4afb1d49a679dea9163cb0e4671f3117 seeking is done using PTS.

Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavcodec/faxcompr: negate uncompressed runs
Michael Niedermayer [Fri, 14 Aug 2015 11:37:36 +0000 (13:37 +0200)]
avcodec/faxcompr: negate uncompressed runs

Fixes remaining part of Ticket700

Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/faxcompr: Factor decode_uncompressed() out
Michael Niedermayer [Fri, 14 Aug 2015 11:06:08 +0000 (13:06 +0200)]
avcodec/faxcompr: Factor decode_uncompressed() out

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/mpegts: apply misc option description fixes
Stefano Sabatini [Fri, 14 Aug 2015 09:11:32 +0000 (11:11 +0200)]
lavf/mpegts: apply misc option description fixes

Use impersonal form, drop capitalization and ending dot.

4 years agodoc/demuxers/mpegts: apply a minor grammar fix to option description
Stefano Sabatini [Thu, 13 Aug 2015 11:27:24 +0000 (13:27 +0200)]
doc/demuxers/mpegts: apply a minor grammar fix to option description

Consistently use impersonal form.

4 years agodoc/demuxers/mpegts: update documentation
Stefano Sabatini [Thu, 13 Aug 2015 11:19:20 +0000 (13:19 +0200)]
doc/demuxers/mpegts: update documentation

The description is yet crappy, it merely copies the description of the
added and undocumented options and their value range. More descriptive
documentation is welcome.

4 years agoffmpeg_opt: Prefer audio streams with packets
Michael Niedermayer [Fri, 14 Aug 2015 03:07:11 +0000 (05:07 +0200)]
ffmpeg_opt: Prefer audio streams with packets

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/rmdec: MLTI with multiple MDPR support
Michael Niedermayer [Fri, 14 Aug 2015 02:37:08 +0000 (04:37 +0200)]
avformat/rmdec: MLTI with multiple MDPR support

Fixes Ticket4496

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/rmdec: Move MLTI handling out of ff_rm_read_mdpr_codecdata()
Michael Niedermayer [Fri, 14 Aug 2015 01:20:40 +0000 (03:20 +0200)]
avformat/rmdec: Move MLTI handling out of ff_rm_read_mdpr_codecdata()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/ftp: implement NLST method
Mariusz Szczepańczyk [Tue, 16 Jun 2015 18:41:31 +0000 (20:41 +0200)]
lavf/ftp: implement NLST method

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/developer: Suggest everyone to help with patch reviews
Michael Niedermayer [Thu, 13 Aug 2015 15:28:50 +0000 (17:28 +0200)]
doc/developer: Suggest everyone to help with patch reviews

Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Reviewed-by: compn <tempn@mi.rr.com>
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agocrypto_bench: add support for ripemd-128
James Almer [Sun, 2 Aug 2015 20:40:43 +0000 (17:40 -0300)]
crypto_bench: add support for ripemd-128

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agocrypto_bench: add support for xtea
James Almer [Sun, 2 Aug 2015 18:29:35 +0000 (15:29 -0300)]
crypto_bench: add support for xtea

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agocrypto_bench: add support for rc4
James Almer [Sun, 2 Aug 2015 18:23:35 +0000 (15:23 -0300)]
crypto_bench: add support for rc4

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agocrypto_bench: add support for blowfish
James Almer [Sun, 2 Aug 2015 18:13:13 +0000 (15:13 -0300)]
crypto_bench: add support for blowfish

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavcodec/tiff: Support uncompressed G3 CCITT fax
Michael Niedermayer [Thu, 13 Aug 2015 15:02:05 +0000 (17:02 +0200)]
avcodec/tiff: Support uncompressed G3 CCITT fax

Fixes part of Ticket700

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/faxcompr: Support uncompressed escapes in decode_group3_1d_line()
Michael Niedermayer [Thu, 13 Aug 2015 15:01:11 +0000 (17:01 +0200)]
avcodec/faxcompr: Support uncompressed escapes in decode_group3_1d_line()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/tiff: Support uncompressed G4 CCITT fax
Michael Niedermayer [Thu, 13 Aug 2015 14:11:23 +0000 (16:11 +0200)]
avcodec/tiff: Support uncompressed G4 CCITT fax

Fixes part of ticket700

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/faxcompr: Support cmode == 9 && xxx == 7
Michael Niedermayer [Thu, 13 Aug 2015 14:11:00 +0000 (16:11 +0200)]
avcodec/faxcompr: Support cmode == 9 && xxx == 7

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/faxcompr: Print the unsupported mode number
Michael Niedermayer [Thu, 13 Aug 2015 12:33:39 +0000 (14:33 +0200)]
avcodec/faxcompr: Print the unsupported mode number

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/wavdec: Detect wrongly interpreted specification about the sample value...
Michael Niedermayer [Thu, 13 Aug 2015 10:14:53 +0000 (12:14 +0200)]
avformat/wavdec: Detect wrongly interpreted specification about the sample value in the fact chunk

Fixes Ticket703

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/wavdec: Do not discard sample_count due to rounding
Michael Niedermayer [Thu, 13 Aug 2015 10:13:51 +0000 (12:13 +0200)]
avformat/wavdec: Do not discard sample_count due to rounding

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agox86inc: Various minor backports from x264
Henrik Gramner [Tue, 11 Aug 2015 18:56:24 +0000 (20:56 +0200)]
x86inc: Various minor backports from x264

Signed-off-by: Anton Khirnov <anton@khirnov.net>
4 years agoavformat/tls_gnutls: correct version detection for certificate support
Ganesh Ajjanagadde [Thu, 13 Aug 2015 00:06:22 +0000 (20:06 -0400)]
avformat/tls_gnutls: correct version detection for certificate support

Fixes Ticket3748

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/dvbsubdec: Print field lens in case they are too lerge
Michael Niedermayer [Wed, 12 Aug 2015 23:50:08 +0000 (01:50 +0200)]
avcodec/dvbsubdec: Print field lens in case they are too lerge

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavisynth: fix setting stream timebase
Marton Balint [Mon, 10 Aug 2015 20:09:52 +0000 (22:09 +0200)]
avisynth: fix setting stream timebase

Stream timebase should be set using avpriv_set_pts_info, otherwise
avctx->pkt_timebase is not correct.

This should fix ticket #4766.

Patch is only compile tested.

Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Stephen Hutchinson <qyot27@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agomovtextdec: Use default style information from movtext header
Niklesh [Wed, 12 Aug 2015 12:54:32 +0000 (18:24 +0530)]
movtextdec: Use default style information from movtext header

As suggested, posting the combined patch with the fate changes.
The patch sets the default style in ASS from the default style
information present in the movtext header.

Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in>
4 years agoavcodec/mpeg12dec: Check chroma_format
Michael Niedermayer [Wed, 12 Aug 2015 20:26:41 +0000 (22:26 +0200)]
avcodec/mpeg12dec: Check chroma_format

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/avidec: Simplify dshow_block_align based special case detection
Michael Niedermayer [Wed, 12 Aug 2015 20:18:58 +0000 (22:18 +0200)]
avformat/avidec: Simplify dshow_block_align based special case detection

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter: add aphasemeter filter
Paul B Mahol [Tue, 11 Aug 2015 14:37:45 +0000 (16:37 +0200)]
avfilter: add aphasemeter filter

4 years agoavformat: Move MAX_PROBE_PACKETS to internal.h
Michael Niedermayer [Sun, 9 Aug 2015 21:09:41 +0000 (23:09 +0200)]
avformat: Move MAX_PROBE_PACKETS to internal.h

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agomovenc: Add a new flag for writing global sidx indexes for dash
Martin Storsjö [Sun, 9 Aug 2015 20:11:55 +0000 (23:11 +0300)]
movenc: Add a new flag for writing global sidx indexes for dash

The double meaning of the faststart flag (moving a moov atom
to the start of files, making them streamable, for non-fragmented
files, vs inserting a global sidx index at the start of files
for fragmented files) is confusing - see 40ed1cbf1 for
explanation of its origins.

Since the second meaning of the flag hasn't been part of any
libav release yet, just rename it to get rid of the confusion
without any extra deprecation (which wouldn't get rid of the
potential confusion, of users adding -movflags faststart
even for fragmented files, where it isn't needed for making
them "streamable").

This gets back the old behaviour, where -movflags faststart
doesn't have any effect for fragmented files.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoMerge commit 'ab43beefab9147673e09679e04be08431684a5db'
Hendrik Leppkes [Wed, 12 Aug 2015 10:40:45 +0000 (12:40 +0200)]
Merge commit 'ab43beefab9147673e09679e04be08431684a5db'

* commit 'ab43beefab9147673e09679e04be08431684a5db':
  x86inc: Drop SECTION_TEXT macro

See f0b7882ceb791ff32267ad97bd21a09e9cbf83d5

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '1c6bb813284732d9a1acacfe99522d9f66ebf73e'
Hendrik Leppkes [Wed, 12 Aug 2015 10:37:44 +0000 (12:37 +0200)]
Merge commit '1c6bb813284732d9a1acacfe99522d9f66ebf73e'

* commit '1c6bb813284732d9a1acacfe99522d9f66ebf73e':
  x86inc: Disable vpbroadcastq workaround in newer yasm versions

See f151fbd9e58c7af6535efb342d868bf803afef34

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit 'f5e486f6f8c242bb2be01ad3ae952b5733ba1113'
Hendrik Leppkes [Wed, 12 Aug 2015 10:37:22 +0000 (12:37 +0200)]
Merge commit 'f5e486f6f8c242bb2be01ad3ae952b5733ba1113'

* commit 'f5e486f6f8c242bb2be01ad3ae952b5733ba1113':
  x86inc: Fix instantiation of YMM registers

See e93d3a22cb53bd88f551c1ad05cf3db3d453a396

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit 'b114d28a18050b5ebd22fc067332e5487243889c'
Hendrik Leppkes [Wed, 12 Aug 2015 10:37:01 +0000 (12:37 +0200)]
Merge commit 'b114d28a18050b5ebd22fc067332e5487243889c'

* commit 'b114d28a18050b5ebd22fc067332e5487243889c':
  x86inc: warn when instructions incompatible with current cpuflags are used

See a1684311b3de0766932c42b1ffdd59823d786bc2

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '9f1245eb9620a70feaa00ba745c6c7a56a839556'
Hendrik Leppkes [Wed, 12 Aug 2015 10:36:08 +0000 (12:36 +0200)]
Merge commit '9f1245eb9620a70feaa00ba745c6c7a56a839556'

* commit '9f1245eb9620a70feaa00ba745c6c7a56a839556':
  x86inc: Support arbitrary stack alignments

See 826790f59640a84813e8dd81c2bba559516f8e4d

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '8c75ba55a4367c854b577c849ea2195bd78c4c81'
Hendrik Leppkes [Wed, 12 Aug 2015 10:35:41 +0000 (12:35 +0200)]
Merge commit '8c75ba55a4367c854b577c849ea2195bd78c4c81'

* commit '8c75ba55a4367c854b577c849ea2195bd78c4c81':
  x86inc: warn if XOP integer FMA instruction emulation is impossible

See 8db0f71b49a360dd64ae482fa4244db055f117eb

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '8f4a06faf45c1cbcabec610f4b47824171379934'
Hendrik Leppkes [Wed, 12 Aug 2015 10:33:20 +0000 (12:33 +0200)]
Merge commit '8f4a06faf45c1cbcabec610f4b47824171379934'

* commit '8f4a06faf45c1cbcabec610f4b47824171379934':
  checkasm: Remove unnecessary include

See 5e8e121fccc247942a42b609f1e32060950c1a65

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '4a53c758d2f69302e6822b23f3e7349253b9e8d3'
Hendrik Leppkes [Wed, 12 Aug 2015 10:32:13 +0000 (12:32 +0200)]
Merge commit '4a53c758d2f69302e6822b23f3e7349253b9e8d3'

* commit '4a53c758d2f69302e6822b23f3e7349253b9e8d3':
  x86: dcadsp: Avoid SSE2 instructions in SSE functions

See fc7e02f0ff345d5331b7c78f2400668d2c79a8b0

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agodoc/ffmpeg,doc/ffplay: reference timespec definitions
Ganesh Ajjanagadde [Tue, 11 Aug 2015 17:00:46 +0000 (13:00 -0400)]
doc/ffmpeg,doc/ffplay: reference timespec definitions

Reference time definition syntax in option descriptions when appropriate.

Fixes trac ticket #4595.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
4 years agolibavcodec/tableprint_vlc.h: include lavu/reverse.c for ff_reverse.
Alexis Ballier [Wed, 12 Aug 2015 09:36:38 +0000 (11:36 +0200)]
libavcodec/tableprint_vlc.h: include lavu/reverse.c for ff_reverse.

Fixes the build with --enable-hardcoded-tables since ff_reverse has moved to lavu.

4 years agoavformat/avidec: Disable AVSTREAM_PARSE_TIMESTAMPS for flac
Michael Niedermayer [Wed, 12 Aug 2015 01:43:41 +0000 (03:43 +0200)]
avformat/avidec: Disable AVSTREAM_PARSE_TIMESTAMPS for flac

The flac parser does not support it, its also not needed.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/avidec: Add flac to the dshow_block_align exception list
Michael Niedermayer [Wed, 12 Aug 2015 01:11:15 +0000 (03:11 +0200)]
avformat/avidec: Add flac to the dshow_block_align exception list

Fixes Ticket4758

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/gsm_parser: Replace codec_id check by assert
Michael Niedermayer [Tue, 11 Aug 2015 22:16:13 +0000 (00:16 +0200)]
avcodec/gsm_parser: Replace codec_id check by assert

A parser should never be called with a mismatching codec

Found-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavutil: add ff_reverse as av_reverse replacement
Andreas Cadhalpun [Sat, 8 Aug 2015 08:41:34 +0000 (10:41 +0200)]
avutil: add ff_reverse as av_reverse replacement

The table is used in libavutil/eval.c.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
4 years agoffmpeg: replace deprecated av_log_ask_for_sample with av_log
Andreas Cadhalpun [Sat, 8 Aug 2015 08:41:32 +0000 (10:41 +0200)]
ffmpeg: replace deprecated av_log_ask_for_sample with av_log

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
4 years agoavfilter: add missing FF_API_AVFILTERPAD_PUBLIC guard
Andreas Cadhalpun [Sat, 8 Aug 2015 08:41:30 +0000 (10:41 +0200)]
avfilter: add missing FF_API_AVFILTERPAD_PUBLIC guard

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
4 years agotests/fate-run: make FATE non-interactive
Ganesh Ajjanagadde [Fri, 31 Jul 2015 12:39:00 +0000 (08:39 -0400)]
tests/fate-run: make FATE non-interactive

FATE is non-interactive; it should not listen to user commands

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This should fix leaving the terminal in a messed up state with
zsh in case of crashes during fate

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/g729_parser: Replace codec_id check by assert
Michael Niedermayer [Tue, 11 Aug 2015 20:53:36 +0000 (22:53 +0200)]
avcodec/g729_parser: Replace codec_id check by assert

A parser should never be called with a mismatching codec

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/g729: add g729_parser
Ganesh Ajjanagadde [Tue, 11 Aug 2015 17:04:09 +0000 (13:04 -0400)]
avcodec/g729: add g729_parser

Add trivial g729 parser; fixes Ticket4753

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc: Remove newline from avpriv_request_sample() calls.
Carl Eugen Hoyos [Tue, 11 Aug 2015 20:50:45 +0000 (22:50 +0200)]
lavc: Remove newline from avpriv_request_sample() calls.

4 years agoavfilter/vsrc_testsrc: correct colors for smptebars
Paul B Mahol [Sun, 9 Aug 2015 11:15:58 +0000 (13:15 +0200)]
avfilter/vsrc_testsrc: correct colors for smptebars

4 years agodoc/ffmpeg: correct minor typo
Ganesh Ajjanagadde [Tue, 11 Aug 2015 02:38:08 +0000 (22:38 -0400)]
doc/ffmpeg: correct minor typo

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavcodec/qsvdec.c: Extended error messages for MFXVideoDECODE_Init() result
Ivan Uskov [Thu, 6 Aug 2015 13:30:42 +0000 (09:30 -0400)]
libavcodec/qsvdec.c: Extended error messages for MFXVideoDECODE_Init() result

Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agommaldec: fix problems with flush logic
wm4 [Tue, 11 Aug 2015 10:11:04 +0000 (12:11 +0200)]
mmaldec: fix problems with flush logic

Don't try to do a blocking wait for MMAL output if we haven't even sent
a single real packet, but only flush packets. Obviously we can't expect
to get anything back.

Additionally, don't send a flush packet to MMAL in the same case. It
appears the MMAL decoder will sometimes hang in mmal_vc_port_disable()
(called from ffmmal_close_decoder()), waiting for a reply from the GPU
which never arrives. Either MMAL disallows sending flush packets without
preceding real data, or it's a MMAL bug.