ffmpeg.git
5 years agoavformat/oggparsecelt: fix memleak
Michael Niedermayer [Sat, 26 Apr 2014 19:31:15 +0000 (21:31 +0200)]
avformat/oggparsecelt: fix memleak

Fixes: CID1108605

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/tee: print errors for each failed bitstream filter
Michael Niedermayer [Sat, 26 Apr 2014 19:08:44 +0000 (21:08 +0200)]
avformat/tee: print errors for each failed bitstream filter

Fixes CID1108584

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/apedec: tmpk==32 is not supported, prevent undefined behavior
Michael Niedermayer [Sat, 26 Apr 2014 18:56:31 +0000 (20:56 +0200)]
avcodec/apedec: tmpk==32 is not supported, prevent undefined behavior

Fixes CID1206639
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoAdd AV_LOG_PRINT_LEVEL flag to include log severity in default log formatting.
tue46wsdgxfjrt [Fri, 28 Feb 2014 00:36:09 +0000 (16:36 -0800)]
Add AV_LOG_PRINT_LEVEL flag to include log severity in default log formatting.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agocmdutils: preserve unchanged log flags when setting AV_LOG_SKIP_REPEATED
tue46wsdgxfjrt [Fri, 28 Feb 2014 00:36:09 +0000 (16:36 -0800)]
cmdutils: preserve unchanged log flags when setting AV_LOG_SKIP_REPEATED

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavfi/avfilter: clarify avfilter_graph_get_filter() doxygen
Lukasz Marek [Thu, 24 Apr 2014 22:26:49 +0000 (00:26 +0200)]
lavfi/avfilter: clarify avfilter_graph_get_filter() doxygen

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/vc1dec: print debug message if a b frame without reference is skiped
Michael Niedermayer [Fri, 25 Apr 2014 23:41:31 +0000 (01:41 +0200)]
avcodec/vc1dec: print debug message if a b frame without reference is skiped

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'cdf6eb5a9710566be217a3f17d3d94ac4e4d2662'
Michael Niedermayer [Fri, 25 Apr 2014 23:04:29 +0000 (01:04 +0200)]
Merge commit 'cdf6eb5a9710566be217a3f17d3d94ac4e4d2662'

* commit 'cdf6eb5a9710566be217a3f17d3d94ac4e4d2662':
  vc1: Do not return an error when skipping b frames

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffserver: fix missing frees at connection setup
Reynaldo H. Verdejo Pinochet [Fri, 25 Apr 2014 22:38:24 +0000 (19:38 -0300)]
ffserver: fix missing frees at connection setup

Should fix FFmpeg Coverity Scan issue #732266 and some of #732265

Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
5 years agoffserver: free AVStream st before wiping context
Reynaldo H. Verdejo Pinochet [Fri, 25 Apr 2014 21:47:55 +0000 (18:47 -0300)]
ffserver: free AVStream st before wiping context

Should fix FFmpeg Coverity Scan issue #732269

Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
5 years agoffserver: free nacl as needed
Reynaldo H. Verdejo Pinochet [Fri, 25 Apr 2014 21:19:16 +0000 (18:19 -0300)]
ffserver: free nacl as needed

Should fix FFmpeg Coverity Scan issue #732268

Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
5 years agolavfi/avfilter: fix typos in doxgens
Lukasz Marek [Fri, 25 Apr 2014 21:36:27 +0000 (23:36 +0200)]
lavfi/avfilter: fix typos in doxgens

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/dpx: extract frame rate
Michael Niedermayer [Fri, 25 Apr 2014 21:13:17 +0000 (23:13 +0200)]
avcodec/dpx: extract frame rate

Fixes part of Ticket3511

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/movenc: dont store invalid tapt atom
Michael Niedermayer [Fri, 25 Apr 2014 19:47:25 +0000 (21:47 +0200)]
avformat/movenc: dont store invalid tapt atom

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '99e22b7859177f6d3ed6121040924b337dce5497'
Michael Niedermayer [Fri, 25 Apr 2014 19:08:29 +0000 (21:08 +0200)]
Merge commit '99e22b7859177f6d3ed6121040924b337dce5497'

* commit '99e22b7859177f6d3ed6121040924b337dce5497':
  mov: Emit the correct tags for clcp tracks

Conflicts:
libavformat/movenc.c

See: a5f6720f13c7678c61be1413debf3e11e678781c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '802385dbc2c57abd76f6a00e32f3df35e9526c08'
Michael Niedermayer [Fri, 25 Apr 2014 17:58:34 +0000 (19:58 +0200)]
Merge commit '802385dbc2c57abd76f6a00e32f3df35e9526c08'

* commit '802385dbc2c57abd76f6a00e32f3df35e9526c08':
  mov: Write prof section of tapt tag

See: 8a9b48bfa9156c79ca8a57130ea18465eb717d66
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/avidec: skip len=0 entries from the index
Don Moir [Fri, 25 Apr 2014 15:57:49 +0000 (17:57 +0200)]
avformat/avidec: skip len=0 entries from the index

Reduces cpu & memory requirements for the index
See Ticket 3531

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovc1: Do not return an error when skipping b frames
Alessandro Ghedini [Mon, 21 Apr 2014 17:10:52 +0000 (19:10 +0200)]
vc1: Do not return an error when skipping b frames

This caused mpv (and possibly others) to fallback to software decoding after
seeking a VC1 stream.

Bug-Id: 667

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agomov: Emit the correct tags for clcp tracks
Miles Gould [Mon, 21 Apr 2014 13:46:22 +0000 (14:46 +0100)]
mov: Emit the correct tags for clcp tracks

Bug-Id: 664

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agomov: Write prof section of tapt tag
Aidan Skinner [Mon, 21 Apr 2014 13:47:38 +0000 (14:47 +0100)]
mov: Write prof section of tapt tag

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoswresample: add swri_resample_double_sse2
James Almer [Fri, 25 Apr 2014 07:52:31 +0000 (04:52 -0300)]
swresample: add swri_resample_double_sse2

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mdct_template: Use av_malloc_array()
Michael Niedermayer [Fri, 25 Apr 2014 13:07:31 +0000 (15:07 +0200)]
avcodec/mdct_template: Use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/ttaenc: use av_malloc_array()
Michael Niedermayer [Fri, 25 Apr 2014 13:04:42 +0000 (15:04 +0200)]
avcodec/ttaenc: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/utils: use av_malloc(z)_array()
Michael Niedermayer [Fri, 25 Apr 2014 13:03:26 +0000 (15:03 +0200)]
avcodec/utils: use av_malloc(z)_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '6d69f9f37689c999815a65a2d99999fad3a41705'
Michael Niedermayer [Fri, 25 Apr 2014 11:55:37 +0000 (13:55 +0200)]
Merge commit '6d69f9f37689c999815a65a2d99999fad3a41705'

* commit '6d69f9f37689c999815a65a2d99999fad3a41705':
  vp9: write uveob as 16-bit value for 16x16/32x32 transforms.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9: write uveob as 16-bit value for 16x16/32x32 transforms.
Ronald S. Bultje [Fri, 25 Apr 2014 11:51:39 +0000 (07:51 -0400)]
vp9: write uveob as 16-bit value for 16x16/32x32 transforms.

This fixes make fate-vp9-00-quantizer-01 THREADS=2.

5 years agovp9: use LOCAL_ALIGNED_32 for left/top intra_pred pointers
James Almer [Thu, 24 Apr 2014 17:11:24 +0000 (14:11 -0300)]
vp9: use LOCAL_ALIGNED_32 for left/top intra_pred pointers

This is needed for future AVX2 implementations

Signed-off-by: James Almer <jamrial@gmail.com>
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavu: add LOCAL_ALIGNED_32
James Almer [Thu, 24 Apr 2014 02:53:36 +0000 (23:53 -0300)]
lavu: add LOCAL_ALIGNED_32

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil/opencl: fix a segmentfault in libavutil/opencl.c
Y.C. Liu [Tue, 22 Apr 2014 14:24:22 +0000 (22:24 +0800)]
avutil/opencl: fix a segmentfault in libavutil/opencl.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoconfigure: allow overriding ranlib
Michael Niedermayer [Tue, 22 Apr 2014 19:54:08 +0000 (21:54 +0200)]
configure: allow overriding ranlib

Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovc-1: Optimise parser (with special attention to ARM)
Ben Avison [Wed, 23 Apr 2014 00:41:04 +0000 (01:41 +0100)]
vc-1: Optimise parser (with special attention to ARM)

The previous implementation of the parser made four passes over each input
buffer (reduced to two if the container format already guaranteed the input
buffer corresponded to frames, such as with MKV). But these buffers are
often 200K in size, certainly enough to flush the data out of L1 cache, and
for many CPUs, all the way out to main memory. The passes were:

1) locate frame boundaries (not needed for MKV etc)
2) copy the data into a contiguous block (not needed for MKV etc)
3) locate the start codes within each frame
4) unescape the data between start codes

After this, the unescaped data was parsed to extract certain header fields,
but because the unescape operation was so large, this was usually also
effectively operating on uncached memory. Most of the unescaped data was
simply thrown away and never processed further. Only step 2 - because it
used memcpy - was using prefetch, making things even worse.

This patch reorganises these steps so that, aside from the copying, the
operations are performed in parallel, maximising cache utilisation. No more
than the worst-case number of bytes needed for header parsing is unescaped.
Most of the data is, in practice, only read in order to search for a start
code, for which optimised implementations already existed in the H264 codec
(notably the ARM version uses prefetch, so we end up doing both remaining
passes at maximum speed). For MKV files, we know when we've found the last
start code of interest in a given frame, so we are able to avoid doing even
that one remaining pass for most of the buffer.

In some use-cases (such as the Raspberry Pi) video decode is handled by the
GPU, but the entire elementary stream is still fed through the parser to
pick out certain elements of the header which are necessary to manage the
decode process. As you might expect, in these cases, the performance of the
parser is significant.

To measure parser performance, I used the same VC-1 elementary stream in
either an MPEG-2 transport stream or a MKV file, and fed it through ffmpeg
with -c:v copy -c:a copy -f null. These are the gperftools counts for
those streams, both filtered to only include vc1_parse() and its callees,
and unfiltered (to include the whole binary). Lower numbers are better:

                Before          After
File  Filtered  Mean   StdDev   Mean   StdDev  Confidence  Change
M2TS  No        861.7  8.2      650.5  8.1     100.0%      +32.5%
MKV   No        868.9  7.4      731.7  9.0     100.0%      +18.8%
M2TS  Yes       250.0  11.2     27.2   3.4     100.0%      +817.9%
MKV   Yes       149.0  12.8     1.7    0.8     100.0%      +8526.3%

Yes, that last case shows vc1_parse() running 86 times faster! The M2TS
case does show a larger absolute improvement though, since it was worse
to begin with.

This patch has been tested with the FATE suite (albeit on x86 for speed).

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovc-1: Add platform-specific start code search routine to VC1DSPContext.
Ben Avison [Wed, 16 Apr 2014 00:51:32 +0000 (01:51 +0100)]
vc-1: Add platform-specific start code search routine to VC1DSPContext.

Initialise VC1DSPContext for parser as well as for decoder.
Note, the VC-1 code doesn't actually use the function pointer yet.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoh264: Move search code search functions into separate source files.
Ben Avison [Wed, 16 Apr 2014 00:51:31 +0000 (01:51 +0100)]
h264: Move search code search functions into separate source files.

This permits re-use with parsers for codecs which use similar start codes.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'cehoyos/master'
Michael Niedermayer [Thu, 24 Apr 2014 23:56:15 +0000 (01:56 +0200)]
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Enable muxing ac-3 in caf.
  Use correct msvc type specifiers for ptrdiff_t and size_t.
  Fix vf_eq.c and vf_eq2.c compilation with !HAVE_6REGS.
  Fix libpostproc compilation with !HAVE_6REGS.
  Never write 0 as maximum bitrate for asf files.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '8de77b665d2a2f1cd560d2183fd4664298b30715'
Michael Niedermayer [Thu, 24 Apr 2014 23:33:41 +0000 (01:33 +0200)]
Merge commit '8de77b665d2a2f1cd560d2183fd4664298b30715'

* commit '8de77b665d2a2f1cd560d2183fd4664298b30715':
  fate: Add fic-in-avi test

Conflicts:
tests/ref/fate/fic-avi

See: d66de5006bbcfc8dd875b9385ec3552d1f9fcd6b
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'a24a252709dd38f12aa4929ce4981f87091a5113'
Michael Niedermayer [Thu, 24 Apr 2014 23:18:55 +0000 (01:18 +0200)]
Merge commit 'a24a252709dd38f12aa4929ce4981f87091a5113'

* commit 'a24a252709dd38f12aa4929ce4981f87091a5113':
  aarch64: NEON optimized FIR audio resampling

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'cae8df78759c2e69257f7fe58842f34c0d98a7ec'
Michael Niedermayer [Thu, 24 Apr 2014 23:03:28 +0000 (01:03 +0200)]
Merge commit 'cae8df78759c2e69257f7fe58842f34c0d98a7ec'

* commit 'cae8df78759c2e69257f7fe58842f34c0d98a7ec':
  lavr: define ResampleContext in resample.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'a88e1d1c598e641eecd5d43730211d91c82787c6'
Michael Niedermayer [Thu, 24 Apr 2014 22:55:00 +0000 (00:55 +0200)]
Merge commit 'a88e1d1c598e641eecd5d43730211d91c82787c6'

* commit 'a88e1d1c598e641eecd5d43730211d91c82787c6':
  lavu: add CHK_OFFS as AV_CHECK_OFFSET to check struct member offsets

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86/mpegaudiodsp: define apply_window_mp3 as SSE
James Almer [Thu, 24 Apr 2014 20:32:04 +0000 (17:32 -0300)]
x86/mpegaudiodsp: define apply_window_mp3 as SSE

None of the handwritten asm in this function seems to be SSE2

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate: Add fic-in-avi test
Derek Buitenhuis [Wed, 23 Apr 2014 16:15:13 +0000 (12:15 -0400)]
fate: Add fic-in-avi test

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agofate: Add fic-in-avi test
Derek Buitenhuis [Wed, 23 Apr 2014 16:15:13 +0000 (12:15 -0400)]
fate: Add fic-in-avi test

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agoMerge commit '152b797cd687e96a582a1cb908dddf3d330d7637'
Michael Niedermayer [Thu, 24 Apr 2014 19:49:02 +0000 (21:49 +0200)]
Merge commit '152b797cd687e96a582a1cb908dddf3d330d7637'

* commit '152b797cd687e96a582a1cb908dddf3d330d7637':
  flv: Do not mangle dts values for negative cts

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

* commit '5d983fdbca5570a1545a892583a372cfb3fffe92':
  flv: Warn only once

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '374fdc8c071dcd96422378b0a1a0d453336d8a01'
Michael Niedermayer [Thu, 24 Apr 2014 19:27:09 +0000 (21:27 +0200)]
Merge commit '374fdc8c071dcd96422378b0a1a0d453336d8a01'

* commit '374fdc8c071dcd96422378b0a1a0d453336d8a01':
  flv: Improve log messages

Conflicts:
libavformat/flvdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoaarch64: NEON optimized FIR audio resampling
Janne Grunau [Mon, 21 Apr 2014 14:13:28 +0000 (16:13 +0200)]
aarch64: NEON optimized FIR audio resampling

Optimized for the default filter length 16.

30% faster opus silk decoding.

5 years agolavr: define ResampleContext in resample.h
Janne Grunau [Mon, 21 Apr 2014 14:12:21 +0000 (16:12 +0200)]
lavr: define ResampleContext in resample.h

Required for arch optimized resampling.

5 years agolavu: add CHK_OFFS as AV_CHECK_OFFSET to check struct member offsets
Janne Grunau [Wed, 23 Apr 2014 10:19:59 +0000 (12:19 +0200)]
lavu: add CHK_OFFS as AV_CHECK_OFFSET to check struct member offsets

5 years agoEnable muxing ac-3 in caf.
Carl Eugen Hoyos [Thu, 24 Apr 2014 16:02:20 +0000 (18:02 +0200)]
Enable muxing ac-3 in caf.

The files play fine with QuickTime.

5 years agoUse correct msvc type specifiers for ptrdiff_t and size_t.
Carl Eugen Hoyos [Thu, 24 Apr 2014 16:01:30 +0000 (18:01 +0200)]
Use correct msvc type specifiers for ptrdiff_t and size_t.

The Windows runtime aborts if it finds %t or %z.
Fixes ticket #3472.

Reviewed-by: Ronald Bultje
5 years agoFix vf_eq.c and vf_eq2.c compilation with !HAVE_6REGS.
Carl Eugen Hoyos [Thu, 24 Apr 2014 15:50:27 +0000 (17:50 +0200)]
Fix vf_eq.c and vf_eq2.c compilation with !HAVE_6REGS.

5 years agoFix libpostproc compilation with !HAVE_6REGS.
Carl Eugen Hoyos [Thu, 24 Apr 2014 15:50:02 +0000 (17:50 +0200)]
Fix libpostproc compilation with !HAVE_6REGS.

5 years agoNever write 0 as maximum bitrate for asf files.
Carl Eugen Hoyos [Thu, 24 Apr 2014 15:47:49 +0000 (17:47 +0200)]
Never write 0 as maximum bitrate for asf files.

WMP refuses to play such streams.

5 years agoavdevice/qtkit: fix include
Michael Niedermayer [Thu, 24 Apr 2014 03:12:07 +0000 (05:12 +0200)]
avdevice/qtkit: fix include

Fixes: Ticket 3588

Found-by: jeremyhu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoconfigure: Fix ld flags when rpath is enabled.
YuDenzel [Wed, 23 Apr 2014 05:06:37 +0000 (13:06 +0800)]
configure: Fix ld flags when rpath is enabled.

Provide correct rpath flags to ld when --enable-rpath is provided.

5 years agoswresample: fix AV_CH_LAYOUT_STEREO_DOWNMIX input
Michael Niedermayer [Wed, 23 Apr 2014 23:25:46 +0000 (01:25 +0200)]
swresample: fix AV_CH_LAYOUT_STEREO_DOWNMIX input

Fixes Ticket 3542

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '7cade8ea2bb19e78dae42b29720535a70fb2ae84'
Michael Niedermayer [Wed, 23 Apr 2014 21:03:17 +0000 (23:03 +0200)]
Merge commit '7cade8ea2bb19e78dae42b29720535a70fb2ae84'

* commit '7cade8ea2bb19e78dae42b29720535a70fb2ae84':
  on2avc: change a comment at #endif to match actual define

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/fic: avoid 2 additions per idct row
Michael Niedermayer [Wed, 23 Apr 2014 19:06:50 +0000 (21:06 +0200)]
avcodec/fic: avoid 2 additions per idct row

before:
5225 decicycles in IDCT, 32756 runs, 12 skips

after:
5057 decicycles in IDCT, 32765 runs, 3 skips

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate/libswresample: use linear interpolation on both aresample filters
Michael Niedermayer [Wed, 23 Apr 2014 20:00:55 +0000 (22:00 +0200)]
fate/libswresample: use linear interpolation on both aresample filters

This also tests LINEAR_CORE_FLT_SSE

Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/h263dec: Fix h263 probe
Michael Niedermayer [Wed, 23 Apr 2014 19:47:48 +0000 (21:47 +0200)]
avformat/h263dec: Fix h263 probe

The code was missing 1 bit in the src format

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoflv: Do not mangle dts values for negative cts
Luca Barbato [Wed, 23 Apr 2014 19:20:17 +0000 (21:20 +0200)]
flv: Do not mangle dts values for negative cts

Some applications really mean to send negative pts.

5 years agoflv: Warn only once
Luca Barbato [Wed, 23 Apr 2014 19:19:27 +0000 (21:19 +0200)]
flv: Warn only once

No point in sending the message multiple time.

5 years agoavfilter/avcodec: Use av_mallocz_array()
Michael Niedermayer [Wed, 23 Apr 2014 19:13:53 +0000 (21:13 +0200)]
avfilter/avcodec: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavdevice/jack_audio: use av_malloc_array()
Michael Niedermayer [Wed, 23 Apr 2014 19:13:31 +0000 (21:13 +0200)]
avdevice/jack_audio: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoflv: Improve log messages
Luca Barbato [Wed, 23 Apr 2014 19:04:20 +0000 (21:04 +0200)]
flv: Improve log messages

Messages should start with a capital letter and possibly end with a "."
if they are statements.

5 years agoon2avc: change a comment at #endif to match actual define
Kostya Shishkov [Wed, 23 Apr 2014 18:02:37 +0000 (20:02 +0200)]
on2avc: change a comment at #endif to match actual define

5 years agoMerge commit 'e2834567d73bd1e46478ba67ac133cb8ef5f50fd'
Michael Niedermayer [Wed, 23 Apr 2014 18:47:13 +0000 (20:47 +0200)]
Merge commit 'e2834567d73bd1e46478ba67ac133cb8ef5f50fd'

* commit 'e2834567d73bd1e46478ba67ac133cb8ef5f50fd':
  On2 AVC decoder

Conflicts:
Changelog
configure
libavcodec/avcodec.h
libavcodec/codec_desc.c
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'd7eb8f903338048c0b222d92357d67f5d3b54295'
Michael Niedermayer [Wed, 23 Apr 2014 18:38:14 +0000 (20:38 +0200)]
Merge commit 'd7eb8f903338048c0b222d92357d67f5d3b54295'

* commit 'd7eb8f903338048c0b222d92357d67f5d3b54295':
  fic: Make warning message more accurate
  fic: Remove redundant clips
  fic: Simplify alpha blending

See: 14da7f9eb7d74524ef29ba6b7fb478720a00137f
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoOn2 AVC decoder
Kostya Shishkov [Sun, 9 Jun 2013 18:03:33 +0000 (20:03 +0200)]
On2 AVC decoder

5 years agofic: Support rendering cursors
Derek Buitenhuis [Sat, 19 Apr 2014 22:46:52 +0000 (18:46 -0400)]
fic: Support rendering cursors

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agofic: Make warning message more accurate
Derek Buitenhuis [Wed, 23 Apr 2014 16:53:00 +0000 (17:53 +0100)]
fic: Make warning message more accurate

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agofic: Remove redundant clips
Derek Buitenhuis [Wed, 23 Apr 2014 16:18:36 +0000 (12:18 -0400)]
fic: Remove redundant clips

The equations can't overflow or underflow anyway.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agoavcodec/jpeg2000dwt: use av_malloc_array()
Michael Niedermayer [Wed, 23 Apr 2014 13:52:45 +0000 (15:52 +0200)]
avcodec/jpeg2000dwt: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/motionpixels: use av_mallocz_array()
Michael Niedermayer [Wed, 23 Apr 2014 13:51:56 +0000 (15:51 +0200)]
avcodec/motionpixels: use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/snow_dwt: use av_malloc(z)_array()
Michael Niedermayer [Wed, 23 Apr 2014 13:51:21 +0000 (15:51 +0200)]
avcodec/snow_dwt: use av_malloc(z)_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/rtmppkt: Fix random crash
kyh96403 [Wed, 16 Apr 2014 01:01:34 +0000 (10:01 +0900)]
avformat/rtmppkt: Fix random crash

Fixes Ticket3564

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffprobe: fix scaling of vali in value_string() in case -prefix is selected
Stefano Sabatini [Tue, 22 Apr 2014 11:01:14 +0000 (13:01 +0200)]
ffprobe: fix scaling of vali in value_string() in case -prefix is selected

Fix trac ticket #3523.

5 years agoexamples: rename avcodec.c to decoding_encoding.c
Stefano Sabatini [Tue, 1 Apr 2014 09:12:51 +0000 (11:12 +0200)]
examples: rename avcodec.c to decoding_encoding.c

Restore the old name, which was more meaningful and consistent with the
names of the other examples.

5 years agoavformat/mux: Check for and remove invalid packet durations
Michael Niedermayer [Wed, 23 Apr 2014 04:04:50 +0000 (06:04 +0200)]
avformat/mux: Check for and remove invalid packet durations

Fixes assertion failure
Fixes Ticket3575

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/flvdec: also include file position in debug output
Michael Niedermayer [Wed, 23 Apr 2014 00:21:27 +0000 (02:21 +0200)]
avformat/flvdec: also include file position in debug output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil/avutil.h: remove duplicate rational.h include
Michael Niedermayer [Tue, 22 Apr 2014 22:49:34 +0000 (00:49 +0200)]
avutil/avutil.h: remove duplicate rational.h include

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'b0bdc2a7123abd0287de435726ab68e9e475a8d8'
Michael Niedermayer [Tue, 22 Apr 2014 22:46:28 +0000 (00:46 +0200)]
Merge commit 'b0bdc2a7123abd0287de435726ab68e9e475a8d8'

* commit 'b0bdc2a7123abd0287de435726ab68e9e475a8d8':
  avutil: move av_get_time_base_q() after include rational.h

See: c7251fec39c5b54470bb295acfc81d89683843c7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '502512ea0f179165782777265f441d4061ff6012'
Michael Niedermayer [Tue, 22 Apr 2014 22:37:16 +0000 (00:37 +0200)]
Merge commit '502512ea0f179165782777265f441d4061ff6012'

* commit '502512ea0f179165782777265f441d4061ff6012':
  avutil: Add av_get_time_base_q()

Conflicts:
doc/APIchanges
libavutil/utils.c
libavutil/version.h

See: dac7e8a94e49e41f1dd0af34dc17d124d5b156ba
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '9155c595f1a9c5a089a59e2c0aefdfabd0a6c59b'
Michael Niedermayer [Tue, 22 Apr 2014 22:13:18 +0000 (00:13 +0200)]
Merge commit '9155c595f1a9c5a089a59e2c0aefdfabd0a6c59b'

* commit '9155c595f1a9c5a089a59e2c0aefdfabd0a6c59b':
  fic: Support rendering cursors

Not merged as the commit is missing changes that where replied to with "done" on ffmpeg-devel

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '40b331e1f41cf118bd1b0807cac801437255636f'
Michael Niedermayer [Tue, 22 Apr 2014 21:57:35 +0000 (23:57 +0200)]
Merge commit '40b331e1f41cf118bd1b0807cac801437255636f'

* commit '40b331e1f41cf118bd1b0807cac801437255636f':
  fic: Use proper quantization matrix index

See: 6d149d28183a59a28143431f8e629484a52948b2
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofic: Simplify alpha blending
Derek Buitenhuis [Tue, 22 Apr 2014 20:42:11 +0000 (16:42 -0400)]
fic: Simplify alpha blending

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agoMerge commit '3956a5e0ea46ed7e27ca888fe11c47986ad99261'
Michael Niedermayer [Tue, 22 Apr 2014 21:51:13 +0000 (23:51 +0200)]
Merge commit '3956a5e0ea46ed7e27ca888fe11c47986ad99261'

* commit '3956a5e0ea46ed7e27ca888fe11c47986ad99261':
  aarch64: NEON vorbis_inverse_coupling

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '8f9fe6ae3461ce270bce6b7083fda5ec314cdad4'
Michael Niedermayer [Tue, 22 Apr 2014 21:45:44 +0000 (23:45 +0200)]
Merge commit '8f9fe6ae3461ce270bce6b7083fda5ec314cdad4'

* commit '8f9fe6ae3461ce270bce6b7083fda5ec314cdad4':
  aarch64: NEON fixed/floating point MPADSP apply_window

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil: move av_get_time_base_q() after include rational.h
Michael Niedermayer [Tue, 22 Apr 2014 20:44:14 +0000 (22:44 +0200)]
avutil: move av_get_time_base_q() after include rational.h

Fix compilation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agoMerge commit 'f4d5a2cc35fcdf06ec031fabe8b0710e995fe924'
Michael Niedermayer [Tue, 22 Apr 2014 21:32:55 +0000 (23:32 +0200)]
Merge commit 'f4d5a2cc35fcdf06ec031fabe8b0710e995fe924'

* commit 'f4d5a2cc35fcdf06ec031fabe8b0710e995fe924':
  aarch64: NEON float to s16 audio conversion

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'ee2bc5974fe64fd214f52574400ae01c85f4b855'
Michael Niedermayer [Tue, 22 Apr 2014 21:26:51 +0000 (23:26 +0200)]
Merge commit 'ee2bc5974fe64fd214f52574400ae01c85f4b855'

* commit 'ee2bc5974fe64fd214f52574400ae01c85f4b855':
  aarch64: NEON float (i)MDCT

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '650c4300d94aa9398ff1dd4f454bf39eaa285f62'
Michael Niedermayer [Tue, 22 Apr 2014 21:05:56 +0000 (23:05 +0200)]
Merge commit '650c4300d94aa9398ff1dd4f454bf39eaa285f62'

* commit '650c4300d94aa9398ff1dd4f454bf39eaa285f62':
  aarch64: NEON float FFT

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil: move av_get_time_base_q() after include rational.h
Michael Niedermayer [Tue, 22 Apr 2014 20:44:14 +0000 (22:44 +0200)]
avutil: move av_get_time_base_q() after include rational.h

Fix compilation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavutil: Add av_get_time_base_q()
Derek Buitenhuis [Tue, 22 Apr 2014 05:26:07 +0000 (07:26 +0200)]
avutil: Add av_get_time_base_q()

This fixes usage of AV_TIME_BASE_Q in C++ applications, which
cannot use compound literals directly in their code.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoavutil: Add av_get_time_base_q()
Derek Buitenhuis [Tue, 22 Apr 2014 05:26:07 +0000 (07:26 +0200)]
avutil: Add av_get_time_base_q()

This fixes usage of AV_TIME_BASE_Q in C++ applications, which
cannot use compound literals directly in their code.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agofic: Use proper quantization matrix index
Derek Buitenhuis [Sat, 19 Apr 2014 19:40:35 +0000 (15:40 -0400)]
fic: Use proper quantization matrix index

The matrices are not zigzagged.

Fixes artefacting.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agofic: Support rendering cursors
Derek Buitenhuis [Sat, 19 Apr 2014 22:46:52 +0000 (18:46 -0400)]
fic: Support rendering cursors

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agofic: Use proper quantization matrix index
Derek Buitenhuis [Sat, 19 Apr 2014 19:40:35 +0000 (15:40 -0400)]
fic: Use proper quantization matrix index

The matrices are not zigzagged.

Fixes artefacting.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
5 years agoaarch64: NEON vorbis_inverse_coupling
Janne Grunau [Sun, 20 Apr 2014 15:57:36 +0000 (17:57 +0200)]
aarch64: NEON vorbis_inverse_coupling

From the ARMv7 NEON version. 16 times faster as the C version, overall
more than 12% faster vorbis decoding on Apple's A7.

5 years agoaarch64: NEON fixed/floating point MPADSP apply_window
Janne Grunau [Sat, 19 Apr 2014 16:17:23 +0000 (18:17 +0200)]
aarch64: NEON fixed/floating point MPADSP apply_window

30%/25% (fixed/float) faster mp3 decoding on Apple's A7. The floating
point decoder is approximately 7% faster.

5 years agoAdd "const" to avoid compiler warning.
Reimar Döffinger [Tue, 22 Apr 2014 18:41:34 +0000 (20:41 +0200)]
Add "const" to avoid compiler warning.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>