ffmpeg.git
5 years agoavcodec/interplayvideo: Use ff_tlog() for block level decode tracing
Michael Niedermayer [Sun, 26 Apr 2015 10:31:56 +0000 (12:31 +0200)]
avcodec/interplayvideo: Use ff_tlog() for block level decode tracing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/h264_slice: Change a few asserts to av_assert*
Michael Niedermayer [Sun, 26 Apr 2015 10:28:36 +0000 (12:28 +0200)]
avcodec/h264_slice: Change a few asserts to av_assert*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '5aed1d4240d411533c102eec6944aa925b7f4964'
Michael Niedermayer [Sat, 25 Apr 2015 23:20:08 +0000 (01:20 +0200)]
Merge commit '5aed1d4240d411533c102eec6944aa925b7f4964'

* commit '5aed1d4240d411533c102eec6944aa925b7f4964':
  vaapi: Fix -Wimplicit-function-declaration for ff_dlog() usage

See: 8f7b022c8c2f40bf8ddfd90778a4c91424d3a8e5
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/ituh263dec: Use ff_tlog() for block level information
Michael Niedermayer [Sat, 25 Apr 2015 23:00:05 +0000 (01:00 +0200)]
avcodec/ituh263dec: Use ff_tlog() for block level information

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/h264_cabac: Use ff_tlog() for block level information
Michael Niedermayer [Sat, 25 Apr 2015 22:58:51 +0000 (00:58 +0200)]
avcodec/h264_cabac: Use ff_tlog() for block level information

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovaapi: Fix -Wimplicit-function-declaration for ff_dlog() usage
Rico Tzschichholz [Thu, 23 Apr 2015 13:30:01 +0000 (14:30 +0100)]
vaapi: Fix -Wimplicit-function-declaration for ff_dlog() usage

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoavcodec/mpeg12dec: Make ff_dlog() messages more clear
Michael Niedermayer [Sat, 25 Apr 2015 18:23:28 +0000 (20:23 +0200)]
avcodec/mpeg12dec: Make ff_dlog() messages more clear

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mpeg12dec: Change mb decode tracing stuff to use ff_tlog()
Michael Niedermayer [Sat, 25 Apr 2015 17:42:49 +0000 (19:42 +0200)]
avcodec/mpeg12dec: Change mb decode tracing stuff to use ff_tlog()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil/softfloat: document av_int2sf()
Michael Niedermayer [Sat, 25 Apr 2015 12:51:02 +0000 (14:51 +0200)]
avutil/softfloat: document av_int2sf()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoconfigure: add Loongson-3 support
ZhouXiaoyong [Wed, 15 Apr 2015 11:50:01 +0000 (19:50 +0800)]
configure: add Loongson-3 support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mips: disable assembly not supported for Loongson-3
ZhouXiaoyong [Wed, 15 Apr 2015 12:18:15 +0000 (20:18 +0800)]
avcodec/mips: disable assembly not supported for Loongson-3

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/snowenc: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP
Michael Niedermayer [Sat, 25 Apr 2015 10:44:04 +0000 (12:44 +0200)]
avcodec/snowenc: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolibavcodec/snowdec: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP
Michael Niedermayer [Sat, 25 Apr 2015 02:50:47 +0000 (04:50 +0200)]
libavcodec/snowdec: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/format: Add generic trace av_log in av_probe_input_format3()
Michael Niedermayer [Mon, 20 Apr 2015 15:38:56 +0000 (17:38 +0200)]
avformat/format: Add generic trace av_log in av_probe_input_format3()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/movtextdec: Decoding of Bold-Italic_Underlined styles for 3gpp timed text...
Niklesh [Fri, 24 Apr 2015 21:23:26 +0000 (02:53 +0530)]
avcodec/movtextdec: Decoding of Bold-Italic_Underlined styles for 3gpp timed text subtitles

Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in>
Previous version reviewed-by: Philip Langdale <philipl@overt.org>
Previous version reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'cfdaa4de6c496b0b761c763cd18067cb1af268a7'
Michael Niedermayer [Fri, 24 Apr 2015 21:22:57 +0000 (23:22 +0200)]
Merge commit 'cfdaa4de6c496b0b761c763cd18067cb1af268a7'

* commit 'cfdaa4de6c496b0b761c763cd18067cb1af268a7':
  dss_sp: use lowercase codec name without whitespace

See: 35e855d5b6950887320040da723cf5d5085263a7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/libxvid: remove now redundant init cleanup code
Michael Niedermayer [Fri, 24 Apr 2015 20:50:40 +0000 (22:50 +0200)]
avcodec/libxvid: remove now redundant init cleanup code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '18db1286b04557aa2d2df7efbcb65ae825d5a469'
Michael Niedermayer [Fri, 24 Apr 2015 20:48:29 +0000 (22:48 +0200)]
Merge commit '18db1286b04557aa2d2df7efbcb65ae825d5a469'

* commit '18db1286b04557aa2d2df7efbcb65ae825d5a469':
  libxvid: Make codec use the init-cleanup flag and mark it as init-thread-safe

Conflicts:
libavcodec/libxvid.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'eae7338e1592f4a398b7c3cb9d1ac854b7a44ff8'
Michael Niedermayer [Fri, 24 Apr 2015 20:21:12 +0000 (22:21 +0200)]
Merge commit 'eae7338e1592f4a398b7c3cb9d1ac854b7a44ff8'

* commit 'eae7338e1592f4a398b7c3cb9d1ac854b7a44ff8':
  libx264: Make codec use the init-cleanup flag and mark it as init-thread-safe

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '74a1cad7e3ba79e5b1e5b2e2bcf6179520442679'
Michael Niedermayer [Fri, 24 Apr 2015 20:20:41 +0000 (22:20 +0200)]
Merge commit '74a1cad7e3ba79e5b1e5b2e2bcf6179520442679'

* commit '74a1cad7e3ba79e5b1e5b2e2bcf6179520442679':
  lclenc: Mark codec as init-thread-safe and init-cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'bb428e00ac158244d6691bf135be404e85b66a8b'
Michael Niedermayer [Fri, 24 Apr 2015 20:00:28 +0000 (22:00 +0200)]
Merge commit 'bb428e00ac158244d6691bf135be404e85b66a8b'

* commit 'bb428e00ac158244d6691bf135be404e85b66a8b':
  hqx: Mark codec as init-thread-safe and init-cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '43171886e08b6a2f20a1e2f3ecc95a7984b591cd'
Michael Niedermayer [Fri, 24 Apr 2015 19:48:19 +0000 (21:48 +0200)]
Merge commit '43171886e08b6a2f20a1e2f3ecc95a7984b591cd'

* commit '43171886e08b6a2f20a1e2f3ecc95a7984b591cd':
  huffyuvenc: Mark codec as init-thread-safe and init-cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'd90133b77bf69667d10e54de9aae7da223c6876a'
Michael Niedermayer [Fri, 24 Apr 2015 19:34:28 +0000 (21:34 +0200)]
Merge commit 'd90133b77bf69667d10e54de9aae7da223c6876a'

* commit 'd90133b77bf69667d10e54de9aae7da223c6876a':
  asvenc: Mark codec as init-thread-safe and init-cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'a4edaeb50fc7510f28a5d79349a7926a182c9930'
Michael Niedermayer [Fri, 24 Apr 2015 19:26:54 +0000 (21:26 +0200)]
Merge commit 'a4edaeb50fc7510f28a5d79349a7926a182c9930'

* commit 'a4edaeb50fc7510f28a5d79349a7926a182c9930':
  hq_hqa: Fix table data for profile 17

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'b17cbb0b1c4fdf8324eff24d40a02201bfaebfd3'
Michael Niedermayer [Fri, 24 Apr 2015 19:16:08 +0000 (21:16 +0200)]
Merge commit 'b17cbb0b1c4fdf8324eff24d40a02201bfaebfd3'

* commit 'b17cbb0b1c4fdf8324eff24d40a02201bfaebfd3':
  riff: Add GMP4 fourcc for mpeg4

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '3c04ec04df8cba12f3a7408709ff5c1fddfe8d82'
Michael Niedermayer [Fri, 24 Apr 2015 18:56:41 +0000 (20:56 +0200)]
Merge commit '3c04ec04df8cba12f3a7408709ff5c1fddfe8d82'

* commit '3c04ec04df8cba12f3a7408709ff5c1fddfe8d82':
  riff: Add GLV4 fourcc for mpeg4

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '5bba3ab0cf7a0238ee1ea31ca2da08ce860fd8f9'
Michael Niedermayer [Fri, 24 Apr 2015 18:49:20 +0000 (20:49 +0200)]
Merge commit '5bba3ab0cf7a0238ee1ea31ca2da08ce860fd8f9'

* commit '5bba3ab0cf7a0238ee1ea31ca2da08ce860fd8f9':
  internal: Make dlog/tlog a no-op when disabled

Conflicts:
libavcodec/internal.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'b90adb0aba073f9c1b4abca852119947393ced4c'
Michael Niedermayer [Fri, 24 Apr 2015 18:37:47 +0000 (20:37 +0200)]
Merge commit 'b90adb0aba073f9c1b4abca852119947393ced4c'

* commit 'b90adb0aba073f9c1b4abca852119947393ced4c':
  rtsp: Make sure we don't write too many transport entries into a fixed-size array

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC copy and hv mc functions
Shivraj Patil [Wed, 22 Apr 2015 09:04:44 +0000 (14:34 +0530)]
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC copy and hv mc functions

Incorporated review comment.
Removed "__" from volatile.

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9: add fate test for intraonly frames.
Ronald S. Bultje [Thu, 23 Apr 2015 00:59:27 +0000 (20:59 -0400)]
vp9: add fate test for intraonly frames.

Sample available at:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-16-intra-only.webm

5 years agovp9: fix intraonly frame decoding.
Ronald S. Bultje [Thu, 23 Apr 2015 00:57:15 +0000 (20:57 -0400)]
vp9: fix intraonly frame decoding.

5 years agovp9: add fate test for segmentation image-edge issue.
Ronald S. Bultje [Thu, 23 Apr 2015 00:18:52 +0000 (20:18 -0400)]
vp9: add fate test for segmentation image-edge issue.

Sample available at:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-15-segkey_adpq.webm

5 years agovp9: use aligned size to write segmentation map into cache.
Ronald S. Bultje [Thu, 23 Apr 2015 00:14:19 +0000 (20:14 -0400)]
vp9: use aligned size to write segmentation map into cache.

The unaligned size is not handled in setctx_2d(), causing edges of images
to have improper segmentation prediction, which causes visual artifacts
at image edges a few frames later.

5 years agovp9: remove another optimization branch in iadst16 which causes overflows.
Ronald S. Bultje [Wed, 22 Apr 2015 19:48:37 +0000 (15:48 -0400)]
vp9: remove another optimization branch in iadst16 which causes overflows.

See sample vp90-2-14-resize-fp-tiles-16-8.webm from the vp9 test vector
set to reproduce the issue.

5 years agovp9: add fate tests for show-existing-frame feature.
Ronald S. Bultje [Wed, 22 Apr 2015 16:24:41 +0000 (12:24 -0400)]
vp9: add fate tests for show-existing-frame feature.

Samples available at:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-10-show-existing-frame.webm
http://downloads.webmproject.org/test_data/libvpx/vp90-2-10-show-existing-frame2.webm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9: add lf_deltas fate test.
Ronald S. Bultje [Wed, 22 Apr 2015 15:51:03 +0000 (11:51 -0400)]
vp9: add lf_deltas fate test.

Sample available at:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-09-lf_deltas.webm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodss_sp: use lowercase codec name without whitespace
Andreas Cadhalpun [Wed, 22 Apr 2015 12:42:08 +0000 (14:42 +0200)]
dss_sp: use lowercase codec name without whitespace

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
5 years agolibxvid: Make codec use the init-cleanup flag and mark it as init-thread-safe
Vittorio Giovara [Mon, 6 Apr 2015 23:47:18 +0000 (01:47 +0200)]
libxvid: Make codec use the init-cleanup flag and mark it as init-thread-safe

This takes care of memory leaks on init error.

5 years agolibx264: Make codec use the init-cleanup flag and mark it as init-thread-safe
Vittorio Giovara [Mon, 6 Apr 2015 23:47:18 +0000 (01:47 +0200)]
libx264: Make codec use the init-cleanup flag and mark it as init-thread-safe

This takes care of memory leaks on init error.

5 years agolclenc: Mark codec as init-thread-safe and init-cleanup
Vittorio Giovara [Mon, 6 Apr 2015 23:47:18 +0000 (01:47 +0200)]
lclenc: Mark codec as init-thread-safe and init-cleanup

5 years agohqx: Mark codec as init-thread-safe and init-cleanup
Vittorio Giovara [Mon, 6 Apr 2015 22:40:37 +0000 (00:40 +0200)]
hqx: Mark codec as init-thread-safe and init-cleanup

5 years agohuffyuvenc: Mark codec as init-thread-safe and init-cleanup
Vittorio Giovara [Mon, 6 Apr 2015 23:47:18 +0000 (01:47 +0200)]
huffyuvenc: Mark codec as init-thread-safe and init-cleanup

5 years agoasvenc: Mark codec as init-thread-safe and init-cleanup
Vittorio Giovara [Mon, 6 Apr 2015 23:48:12 +0000 (01:48 +0200)]
asvenc: Mark codec as init-thread-safe and init-cleanup

5 years agohq_hqa: Fix table data for profile 17
Vittorio Giovara [Thu, 23 Apr 2015 10:29:53 +0000 (11:29 +0100)]
hq_hqa: Fix table data for profile 17

The table had a wrong table height and was missing the first line of bytes.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
5 years agoriff: Add GMP4 fourcc for mpeg4
Vittorio Giovara [Thu, 23 Apr 2015 12:25:20 +0000 (13:25 +0100)]
riff: Add GMP4 fourcc for mpeg4

5 years agoriff: Add GLV4 fourcc for mpeg4
Vittorio Giovara [Tue, 21 Apr 2015 12:10:00 +0000 (13:10 +0100)]
riff: Add GLV4 fourcc for mpeg4

5 years agointernal: Make dlog/tlog a no-op when disabled
Vittorio Giovara [Tue, 21 Apr 2015 12:24:18 +0000 (13:24 +0100)]
internal: Make dlog/tlog a no-op when disabled

Improves Coverity analysis, avoiding "double semicolon" CIDs.

5 years agortsp: Make sure we don't write too many transport entries into a fixed-size array
Martin Storsjö [Fri, 24 Apr 2015 09:38:09 +0000 (12:38 +0300)]
rtsp: Make sure we don't write too many transport entries into a fixed-size array

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoavformat/mp3: large id3 tags break concatenated file detection
wm4 [Fri, 24 Apr 2015 10:26:39 +0000 (12:26 +0200)]
avformat/mp3: large id3 tags break concatenated file detection

If the file size is much larger than what is indicated in the XING
header, the demuxer assumes it's a concatenated file, and throws away
the (presumably) incorrect duration information. Unfortunately, this
also triggers if the id3 tags are very large (embedded pictures and
such). Then the half-baked heuristic not only breaks the duration
display, but also gapless audio.

Fix it by subtracting the size of the headers (the check is off by some
bytes, but that doesn't matter at all). Note that there could be an
arbitrary amount of tags _after_ the mp3 data, but hopefully these are
not too large to trigger the heuristic in practice.

Also add a warning when this happens.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavd/v4l2: print buffer flags in case of error
Giorgio Vazzana [Thu, 16 Oct 2014 09:10:03 +0000 (11:10 +0200)]
lavd/v4l2: print buffer flags in case of error

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil/frame: fix everythnig/everything typo
Clément Bœsch [Fri, 24 Apr 2015 08:57:03 +0000 (10:57 +0200)]
avutil/frame: fix everythnig/everything typo

5 years agolibvpxdec: cosmetics: reindent
James Zern [Wed, 22 Apr 2015 21:16:39 +0000 (14:16 -0700)]
libvpxdec: cosmetics: reindent

Signed-off-by: James Zern <jzern@google.com>
5 years agolibvpxenc: cosmetics: reindent
James Zern [Wed, 22 Apr 2015 21:16:06 +0000 (14:16 -0700)]
libvpxenc: cosmetics: reindent

Signed-off-by: James Zern <jzern@google.com>
5 years agolibvpxenc: only set noise reduction w/vp8
James Zern [Tue, 21 Apr 2015 07:03:00 +0000 (00:03 -0700)]
libvpxenc: only set noise reduction w/vp8

this quiets a warning:
Failed to set VP8E_SET_NOISE_SENSITIVITY codec control: Unspecified
internal error

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Zern <jzern@google.com>
5 years agogit-howto.texi: fix a typo
James Zern [Wed, 22 Apr 2015 21:17:19 +0000 (14:17 -0700)]
git-howto.texi: fix a typo

replace 'Refer to and to sync...' with a reference to the section that
discusses updated the source tree.

Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Zern <jzern@google.com>
5 years agoavformat/wvdec: fix seeking
wm4 [Thu, 23 Apr 2015 11:33:06 +0000 (13:33 +0200)]
avformat/wvdec: fix seeking

While I'm not sure why exactly sure why the old code could end up in the
wrong position, using the generic index code is much simpler and is
known to work correctly.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '1bd2646a6da808f6f9881525771db098c54bc3d2'
Michael Niedermayer [Fri, 24 Apr 2015 01:01:56 +0000 (03:01 +0200)]
Merge commit '1bd2646a6da808f6f9881525771db098c54bc3d2'

* commit '1bd2646a6da808f6f9881525771db098c54bc3d2':
  rtpenc_jpeg: Handle case of picture dimensions not dividing by 8

Conflicts:
libavformat/rtpenc_jpeg.c

See: 7f64a7503b19b39f1251e4380987034c569bebf5
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'eb7ddb5066843ab16caf33b05eafb2576648b797'
Michael Niedermayer [Fri, 24 Apr 2015 00:50:47 +0000 (02:50 +0200)]
Merge commit 'eb7ddb5066843ab16caf33b05eafb2576648b797'

* commit 'eb7ddb5066843ab16caf33b05eafb2576648b797':
  rtsp: Don't warn about unparsed time ranges

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agotests/fate-run: do not attempt to parse tiny_psnrs output if it failed
Michael Niedermayer [Thu, 23 Apr 2015 02:27:56 +0000 (04:27 +0200)]
tests/fate-run: do not attempt to parse tiny_psnrs output if it failed

This avoids confusing syntax errors with awk later

Likely fixes awk errors at:
http://buildd.debian-ports.org/status/fetch.php?pkg=ffmpeg&arch=sparc64&ver=7%3A2.6.2-1&stamp=1428928967

Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Thanks-to: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> for the link
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoalac: reject rice_limit 0 if compression is used
Andreas Cadhalpun [Thu, 23 Apr 2015 22:01:43 +0000 (00:01 +0200)]
alac: reject rice_limit 0 if compression is used

If rice_limit is 0, k can be 0 in decode_scalar, which calls show_bits(gb, k).

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agortpenc_jpeg: Handle case of picture dimensions not dividing by 8
Andrey Utkin [Fri, 10 Apr 2015 21:54:10 +0000 (00:54 +0300)]
rtpenc_jpeg: Handle case of picture dimensions not dividing by 8

This fixes the calculation of the number of needed blocks to make
sure that ALL pixels are represented by the result.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agortsp: Don't warn about unparsed time ranges
Martin Storsjö [Wed, 22 Apr 2015 20:15:58 +0000 (23:15 +0300)]
rtsp: Don't warn about unparsed time ranges

This removes the error logging added in 4e54432164.

This avoids warnings about "Invalid interval start specification 'now'"
for live rtsp streams.

We only try to parse some of the many valid values for time ranges
in RTSP - the other ones are fully valid but not interesting for the
use case in rtsp.c, so we shouldn't warn about them.

(Parsing the time ranges is needed to allow seeking, but e.g. setting
the current realtime clock for the start time doesn't make sense.
av_parse_time has got a different mode for parsing absolute times
as well, which can handle the special case "now", but that doesn't
make much sense for this particular use in rtsp.c.)

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoMerge commit '358b7ec3099eca6e999ad9dc0da0a23571a7a2f8'
Michael Niedermayer [Thu, 23 Apr 2015 20:16:01 +0000 (22:16 +0200)]
Merge commit '358b7ec3099eca6e999ad9dc0da0a23571a7a2f8'

* commit '358b7ec3099eca6e999ad9dc0da0a23571a7a2f8':
  fate: Fix test name for pixfmts tests

Conflicts:
tests/fate-run.sh

See: e1ee0521a698809ed216e9e5c11bd2bbb466ed04
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '0a51c7d42a519c63178a4f3e35b8967f21da3a6a'
Michael Niedermayer [Thu, 23 Apr 2015 20:04:28 +0000 (22:04 +0200)]
Merge commit '0a51c7d42a519c63178a4f3e35b8967f21da3a6a'

* commit '0a51c7d42a519c63178a4f3e35b8967f21da3a6a':
  prores: Set the bits_per_coded_sample for alpha pix_fmt

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '28eddef689f2b4843a84f7d05fd9614246f92cc4'
Michael Niedermayer [Thu, 23 Apr 2015 19:57:12 +0000 (21:57 +0200)]
Merge commit '28eddef689f2b4843a84f7d05fd9614246f92cc4'

* commit '28eddef689f2b4843a84f7d05fd9614246f92cc4':
  hq_hqa: Validate get_vlc2 return value

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'a78f5548d94f23ce23cece41edf0fe9d18926de6'
Michael Niedermayer [Thu, 23 Apr 2015 19:31:06 +0000 (21:31 +0200)]
Merge commit 'a78f5548d94f23ce23cece41edf0fe9d18926de6'

* commit 'a78f5548d94f23ce23cece41edf0fe9d18926de6':
  avcodec: Free the default avoptions on init failure

See: 1907ff0a67edeb98d9153aac79f35961837ba3f6
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'aef0be08756e00f363c524453c948a6e2a348614'
Michael Niedermayer [Thu, 23 Apr 2015 19:17:08 +0000 (21:17 +0200)]
Merge commit 'aef0be08756e00f363c524453c948a6e2a348614'

* commit 'aef0be08756e00f363c524453c948a6e2a348614':
  avcodec: Unref the dummy buffer on the fail path

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '8eb57dc9d5ea13c12573e0759da0f7e79825af98'
Michael Niedermayer [Thu, 23 Apr 2015 19:08:58 +0000 (21:08 +0200)]
Merge commit '8eb57dc9d5ea13c12573e0759da0f7e79825af98'

* commit '8eb57dc9d5ea13c12573e0759da0f7e79825af98':
  buffersrc: Use the correct deallocation function

See: a6df9ce61520ad7583a90a20e82d857b8d4fb133
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoswscale/swscale: Get rid of the SWS_GAMMA_CORRECT flag
Michael Niedermayer [Thu, 23 Apr 2015 18:13:58 +0000 (20:13 +0200)]
swscale/swscale: Get rid of the SWS_GAMMA_CORRECT flag

This avoids using up a bit of the public flags

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoAdd gamma encodign/decoding before/after scaling in libswscale
Pedro Arthur [Fri, 17 Apr 2015 20:08:42 +0000 (17:08 -0300)]
Add gamma encodign/decoding before/after scaling in libswscale

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9: set timestamps for show_existing_frame return images.
Ronald S. Bultje [Wed, 22 Apr 2015 16:24:40 +0000 (12:24 -0400)]
vp9: set timestamps for show_existing_frame return images.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoalsdec: only adapt order for positive max_order
Andreas Cadhalpun [Wed, 22 Apr 2015 14:03:41 +0000 (16:03 +0200)]
alsdec: only adapt order for positive max_order

For max_order = 0 the clipping range is invalid. (amin = 2, amax = 1)

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9: maintain lf_delta values if feature is turned off.
Ronald S. Bultje [Wed, 22 Apr 2015 15:51:02 +0000 (11:51 -0400)]
vp9: maintain lf_delta values if feature is turned off.

This is required if it's subsequently re-enabled with no value updates
(which means, use values that were previously set).

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9: add fate test for bilinear MC filter.
Ronald S. Bultje [Wed, 22 Apr 2015 15:51:01 +0000 (11:51 -0400)]
vp9: add fate test for bilinear MC filter.

Sample at:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-06-bilinear.webm

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agotests/tiny_psnr: do not ignore errors from run_psnr
Michael Niedermayer [Thu, 23 Apr 2015 02:25:40 +0000 (04:25 +0200)]
tests/tiny_psnr: do not ignore errors from run_psnr

failure to calculate psnr should not result in tiny_psnr returning success

Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavf: Reset global flag on deinit
Vittorio Giovara [Wed, 22 Apr 2015 13:59:56 +0000 (14:59 +0100)]
lavf: Reset global flag on deinit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agonetwork: Do not leave context locked on error
Vittorio Giovara [Wed, 22 Apr 2015 13:59:55 +0000 (14:59 +0100)]
network: Do not leave context locked on error

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate: add mp3 CBR seek test
wm4 [Wed, 22 Apr 2015 17:57:02 +0000 (19:57 +0200)]
fate: add mp3 CBR seek test

This tests the "old", now non-default seek mode, and this requires a
special extra argument.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate: Fix test name for pixfmts tests
Timothy Gu [Mon, 20 Apr 2015 03:37:43 +0000 (20:37 -0700)]
fate: Fix test name for pixfmts tests

The last pixel format gets leaked as `$test` further down the pipeline.

See for example https://fate.libav.org/x86_32-netbsd-clang-no-inline-asm/20150420020104
Note the odd test names like “yuvj444p.”

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agovp9: add fate size for resolution changes.
Ronald S. Bultje [Wed, 22 Apr 2015 00:54:52 +0000 (20:54 -0400)]
vp9: add fate size for resolution changes.

See sample:
http://downloads.webmproject.org/test_data/libvpx/vp90-2-05-resize.ivf

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9: add support for resolution changes in inter frames.
Ronald S. Bultje [Wed, 22 Apr 2015 00:54:51 +0000 (20:54 -0400)]
vp9: add support for resolution changes in inter frames.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate: add cinepak encoder vsynth tests
James Almer [Wed, 22 Apr 2015 20:34:28 +0000 (17:34 -0300)]
fate: add cinepak encoder vsynth tests

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostproc: Made QP, nonBQP, and pQPb arrays
Tucker DiNapoli [Wed, 22 Apr 2015 20:27:27 +0000 (16:27 -0400)]
postproc: Made QP, nonBQP, and pQPb arrays

Also pulled QP initialization out of inner loop, which removed some redundent code.

Added some dummy fields to PPContext to allow current code to work while
changing the rest of the postprocessing code to support the arrays.

I also increased alignment requirements for some fields in the PPContext struct to
support future avx2 code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostproc: Replaced inline asm for prefetching with prefetch functions
Tucker DiNapoli [Wed, 22 Apr 2015 20:27:26 +0000 (16:27 -0400)]
postproc: Replaced inline asm for prefetching with prefetch functions

Prefetching functions are defined in postprocess_template using the
RENAME macro so that prefetching is used when available. For x86
targets inline asm is used and the functions are non-empty only for
cpus where prefetching is available. For non x86 targets the gcc bultin
prefetch is used if it is available, otherwise no prefetching is done.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat: add AVFMT_FLAG_FASTSEEK, use it for mp3
wm4 [Wed, 22 Apr 2015 10:24:41 +0000 (12:24 +0200)]
avformat: add AVFMT_FLAG_FASTSEEK, use it for mp3

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9: remove one optimization branch in iadst16 which causes overflows.
Ronald S. Bultje [Wed, 22 Apr 2015 18:53:01 +0000 (14:53 -0400)]
vp9: remove one optimization branch in iadst16 which causes overflows.

See sample vp90-2-14-resize-fp-tiles-16-8-4-2-1.webm from the vp9 test
vector set which reproduces the issue. This probably costs a few cycles,
but I don't think there's an easy way to workaround that.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoprores: Set the bits_per_coded_sample for alpha pix_fmt
Luca Barbato [Wed, 22 Apr 2015 18:50:10 +0000 (20:50 +0200)]
prores: Set the bits_per_coded_sample for alpha pix_fmt

Improve the compatibility with other software.

5 years agobink: check vst->index_entries before using it
Andreas Cadhalpun [Wed, 22 Apr 2015 15:08:51 +0000 (17:08 +0200)]
bink: check vst->index_entries before using it

This fixes a NULL pointer dereference if vst->duration is 0.

The problem was introduced in commit 0588acaf.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodshow: add capture device save and load
Mate Sebok [Wed, 22 Apr 2015 16:38:38 +0000 (18:38 +0200)]
dshow: add capture device save and load

Signed-off-by: Mate Sebok <smfinc.org@gmail.com>
Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate: gapless: remove useless tests
wm4 [Wed, 22 Apr 2015 10:24:40 +0000 (12:24 +0200)]
fate: gapless: remove useless tests

These could be kept, but they are not overly useful. The only thing they
had over the remaining mp3 gapless test was seeking, which was incorrect
in the toc test, and only by chance correct in the notoc test.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoapi-flac-test: Coding style
Ludmila Glinskih [Wed, 22 Apr 2015 15:09:15 +0000 (18:09 +0300)]
api-flac-test: Coding style

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agompeg4videodec: only allow a positive length
Andreas Cadhalpun [Wed, 22 Apr 2015 14:32:42 +0000 (16:32 +0200)]
mpeg4videodec: only allow a positive length

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodss_sp: use lowercase codec name without whitespace
Andreas Cadhalpun [Wed, 22 Apr 2015 12:42:08 +0000 (14:42 +0200)]
dss_sp: use lowercase codec name without whitespace

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/mp3dec: make generic index mode the default
wm4 [Wed, 22 Apr 2015 10:24:39 +0000 (12:24 +0200)]
avformat/mp3dec: make generic index mode the default

It's the most useful mode, because it seeks accurately, and does not
break features like gapless audio.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/mp3dec: allow enabling generic seek mode
wm4 [Wed, 22 Apr 2015 10:24:38 +0000 (12:24 +0200)]
avformat/mp3dec: allow enabling generic seek mode

"-usetoc 2" now invokes the generic seek and indexing mode. This mode
skips data until the seek target is reached, and this is exact. It also
makes gapless audio actually work if a seek past the start of the file
is involved.

Change the fate-gapless-mp3 test to use the new mode, and move the old
one to fate-gapless-mp3-toc (since the test forces use of the Xing TOC).
The new mode has a different result for the seek - this result is
actually correct.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/mp3dec: use the common mechanism for skipping samples
wm4 [Wed, 22 Apr 2015 10:24:37 +0000 (12:24 +0200)]
avformat/mp3dec: use the common mechanism for skipping samples

The mp2 seek test results change. Whether to skip samples if the file
had no LAME gapless tags was inconsistent. When seeking to the start
of the file, 529 samples were skipped, but when playing from start,
nothing was skipped. This commit changes the behavior on seek to skip
nothing.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat: add common mechanism for skipping samples at the start of file
wm4 [Wed, 22 Apr 2015 10:24:36 +0000 (12:24 +0200)]
avformat: add common mechanism for skipping samples at the start of file

This makes using the generic indexing code with mp3 easier at a later
point.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agohq_hqa: Validate get_vlc2 return value
Luca Barbato [Tue, 21 Apr 2015 12:42:21 +0000 (14:42 +0200)]
hq_hqa: Validate get_vlc2 return value

The `hq_ac_vlc.table` is incomplete, so unaccounted symbol return -1
as value.

5 years agoavcodec: Free the default avoptions on init failure
Luca Barbato [Tue, 21 Apr 2015 16:17:38 +0000 (18:17 +0200)]
avcodec: Free the default avoptions on init failure

5 years agoavcodec: Unref the dummy buffer on the fail path
Luca Barbato [Tue, 21 Apr 2015 12:26:36 +0000 (14:26 +0200)]
avcodec: Unref the dummy buffer on the fail path