ffmpeg.git
7 years agoRemove libdirac decoder.
Diego Biurrun [Sat, 14 Apr 2012 12:54:03 +0000 (14:54 +0200)]
Remove libdirac decoder.

libschroedinger is the preferred way to decode Dirac video.

7 years agomatroska: Add incremental parsing of clusters.
Dale Curtis [Thu, 19 Apr 2012 18:12:24 +0000 (11:12 -0700)]
matroska: Add incremental parsing of clusters.

Reduces the amount of upfront data required for cluster parsing
thus decreasing latency on seek and startup.

The change in the seek-lavf_mkv FATE test is due to incremental
parsing no longer reading as much data as the old parser and
thus not having that additional data to generate index entries
based on keyframes.  Index entries are added correctly as the
file is parsed.

All FATE tests pass and Chrome has been using this patch for ~6
months without issue.

Currently incremental parsing is not supported for files with
SSA tracks since they require merging packets between clusters.
In this case the code falls back to non-incremental parsing.

Signed-off-by: Aaron Colwell <acolwell@chromium.org>
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoavconv: fix off by one check in complex_filter
Luca Barbato [Sun, 22 Apr 2012 23:37:54 +0000 (16:37 -0700)]
avconv: fix off by one check in complex_filter

nb_input_files is already an invalid index.

7 years agompegts: Try seeking back even for nonseekable protocols
Martin Storsjö [Sat, 21 Apr 2012 19:48:34 +0000 (22:48 +0300)]
mpegts: Try seeking back even for nonseekable protocols

The mpegts demuxer reads 5 KB at startup just for discovering
the packet size. Since the default avio buffer size is 32 KB,
the seek back to the start will in most cases be within the
avio buffer, and will in most cases succeed even if the actual
protocol isn't seekable.

This makes the demuxer startup faster/with less data when
reading data from a non-seekable input, by not skipping
the first few KB.

If it fails, don't warn if the protocol isn't seekable, making
it behave as before in the failure case.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoswscale: K&R formatting cosmetics (part III)
Diego Biurrun [Sun, 15 Apr 2012 19:33:30 +0000 (21:33 +0200)]
swscale: K&R formatting cosmetics (part III)

7 years agoARM: allow runtime masking of CPU features
Mans Rullgard [Sat, 21 Apr 2012 14:31:10 +0000 (15:31 +0100)]
ARM: allow runtime masking of CPU features

This allows masking CPU features with the -cpuflags avconv option
which is useful for testing different optimisations without rebuilding.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agodsputil: remove unused functions
Mans Rullgard [Sat, 21 Apr 2012 18:51:19 +0000 (19:51 +0100)]
dsputil: remove unused functions

These functions were left unused by the lowres removal.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agomov: Treat keyframe indexes as 1-origin if starting at non-zero.
Yusuke Nakamura [Mon, 16 Apr 2012 14:27:45 +0000 (23:27 +0900)]
mov: Treat keyframe indexes as 1-origin if starting at non-zero.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agomov: Take stps entries into consideration also about key_off.
Yusuke Nakamura [Fri, 13 Apr 2012 10:44:34 +0000 (19:44 +0900)]
mov: Take stps entries into consideration also about key_off.

Splitted files don't start always from a sync sample.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoRemove lowres video decoding
Mans Rullgard [Thu, 12 Apr 2012 12:55:49 +0000 (13:55 +0100)]
Remove lowres video decoding

This feature is complex, of questionable utility, and slows down
normal decoding.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoavcodec: remove AVCodecContext.dsp_mask
Mans Rullgard [Fri, 20 Apr 2012 13:31:08 +0000 (14:31 +0100)]
avcodec: remove AVCodecContext.dsp_mask

This removes all references to AVCodecContext.dsp_mask and marks
it for eviction at the next version bump.  It has been superseded
by av_set_cpu_flag_mask() which, unlike this field, works everywhere.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoavconv: fix a segfault when default encoder for a format doesn't exist.
Anton Khirnov [Wed, 18 Apr 2012 04:53:11 +0000 (06:53 +0200)]
avconv: fix a segfault when default encoder for a format doesn't exist.

Fail earlier and with a more descriptive error message.

7 years agoutvideo: general cosmetics
Jan Ekström [Fri, 20 Apr 2012 13:31:26 +0000 (13:31 +0000)]
utvideo: general cosmetics

General cosmetics, such as keeping lines under 80 characters,
fixing a couple of typos (predition -> prediction) and a
general style fix that was pointed out by Derek when I was having
my sliced multithreading patch in review by him.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoaac: Handle HE-AACv2 when sniffing a channel order.
Alex Converse [Fri, 20 Apr 2012 21:01:57 +0000 (14:01 -0700)]
aac: Handle HE-AACv2 when sniffing a channel order.

7 years agomovenc: Support high sample rates in isomedia formats by setting the sample rate...
Alex Converse [Fri, 20 Apr 2012 20:21:28 +0000 (13:21 -0700)]
movenc: Support high sample rates in isomedia formats by setting the sample rate field in stsd to 0.

Libisomediafile appears to always set this field to zero.

7 years agoxxan: Remove write-only variable in xan_decode_frame_type0().
Diego Biurrun [Thu, 19 Apr 2012 12:52:10 +0000 (14:52 +0200)]
xxan: Remove write-only variable in xan_decode_frame_type0().

libavcodec/xxan.c:293:13: warning: variable ‘corr_end’ set but not used

7 years agoivi_common: Initialize a variable at declaration in ff_ivi_decode_blocks().
Diego Biurrun [Mon, 2 Apr 2012 17:34:44 +0000 (19:34 +0200)]
ivi_common: Initialize a variable at declaration in ff_ivi_decode_blocks().

This simplifies the code a bit and avoids an uninitialized variable warning.

7 years agoavcodec: add a cook parser to get subpacket duration
Justin Ruggles [Tue, 10 Apr 2012 20:33:45 +0000 (16:33 -0400)]
avcodec: add a cook parser to get subpacket duration

Fixes jittery video playback of rm files with cook audio.

7 years agoFATE: allow lavf tests to alter input parameters
Justin Ruggles [Tue, 17 Apr 2012 03:38:34 +0000 (23:38 -0400)]
FATE: allow lavf tests to alter input parameters

Change some lavf tests to avoid resampling and channel mixing.

7 years agoFATE: replace the acodec-pcm_s24daud test with an enc_dec_pcm checksum test
Justin Ruggles [Tue, 17 Apr 2012 01:21:30 +0000 (21:21 -0400)]
FATE: replace the acodec-pcm_s24daud test with an enc_dec_pcm checksum test

This avoids resampling and channel mixing by using a source with
the correct channel layout and sample rate.

7 years agoFATE: replace the acodec-g726 test with 4 new encode/decode tests
Justin Ruggles [Tue, 17 Apr 2012 02:42:53 +0000 (22:42 -0400)]
FATE: replace the acodec-g726 test with 4 new encode/decode tests

Avoids resampling and channel mixing. This only tests the behavior
with respect to input and output audio rather than also testing changes
to the encoder or muxer that do not affect the resulting decoded output.

7 years agoFATE: replace current g722 encoding tests with an encode/decode test
Justin Ruggles [Tue, 17 Apr 2012 01:49:11 +0000 (21:49 -0400)]
FATE: replace current g722 encoding tests with an encode/decode test

Avoids resampling and channel mixing. This only tests the behavior
with respect to input and output audio rather than also testing changes
to the encoder or muxer that do not affect the resulting decoded output.

7 years agoFATE: add a pattern rule for generating asynth wav files
Justin Ruggles [Thu, 19 Apr 2012 01:41:01 +0000 (21:41 -0400)]
FATE: add a pattern rule for generating asynth wav files

7 years agoFATE: optionally write a WAVE header in audiogen
Justin Ruggles [Tue, 17 Apr 2012 14:12:38 +0000 (10:12 -0400)]
FATE: optionally write a WAVE header in audiogen

7 years agoavutil: add audio fifo buffer
Justin Ruggles [Fri, 23 Mar 2012 21:45:48 +0000 (17:45 -0400)]
avutil: add audio fifo buffer

The functions operate on the sample level rather than the byte level and work
with all audio sample formats.

7 years agodv: Initialize encoder tables during encoder init.
Diego Biurrun [Wed, 18 Apr 2012 16:47:16 +0000 (18:47 +0200)]
dv: Initialize encoder tables during encoder init.

7 years agodv: Replace some magic numbers by the appropriate #define.
Diego Biurrun [Wed, 18 Apr 2012 14:05:17 +0000 (16:05 +0200)]
dv: Replace some magic numbers by the appropriate #define.

7 years agoFATE: pass the decoded output format and audio source file to enc_dec_pcm
Justin Ruggles [Tue, 17 Apr 2012 15:47:57 +0000 (16:47 +0100)]
FATE: pass the decoded output format and audio source file to enc_dec_pcm

This will allow decoding to md5 and doing a diff comparison to a reference
checksum instead of a fuzzy stddev or oneoff comparison.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoFATE: specify the input format when decoding in enc_dec_pcm()
Justin Ruggles [Tue, 17 Apr 2012 01:06:00 +0000 (21:06 -0400)]
FATE: specify the input format when decoding in enc_dec_pcm()

The output format is not always the same as the file extension,
which is sometimes required for correct probing. We can avoid
probing by specifying the format since it is already known.

7 years agox86inc: support AVX abstraction for 2-operand instructions
Loren Merritt [Tue, 10 Apr 2012 14:40:38 +0000 (10:40 -0400)]
x86inc: support AVX abstraction for 2-operand instructions

Add cvtdq2ps and cvtps2dq to the AVX instruction list.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
7 years agoconfigure: detect PGI compiler and set suitable flags
Mans Rullgard [Wed, 18 Apr 2012 23:42:56 +0000 (00:42 +0100)]
configure: detect PGI compiler and set suitable flags

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoavconv: check for an incompatible changing channel layout
Justin Ruggles [Tue, 17 Apr 2012 17:30:00 +0000 (13:30 -0400)]
avconv: check for an incompatible changing channel layout

The decoder can change the layout and channel count during decoding,
but currently we only validate that the two are compatible when opening
the codec. This checks for incompatibilities after each decoded frame.

7 years agoavio: make AVIOContext.av_class pointer to const
Mans Rullgard [Wed, 18 Apr 2012 20:01:15 +0000 (21:01 +0100)]
avio: make AVIOContext.av_class pointer to const

Fix this warning:
libavformat/aviobuf.c:663:20: warning: assignment discards qualifiers from pointer target type

Although this is a public header, it should remain source and
binary compatible.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agonutdec: add malloc check and fix const to non-const conversion warnings
Mans Rullgard [Wed, 18 Apr 2012 19:48:36 +0000 (20:48 +0100)]
nutdec: add malloc check and fix const to non-const conversion warnings

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoppc: drop unused function dct_quantize_altivec()
Diego Biurrun [Mon, 2 Apr 2012 16:03:29 +0000 (16:03 +0000)]
ppc: drop unused function dct_quantize_altivec()

This also allows dropping some PPC-specific ugliness from dsputil.[ch].

7 years agompegaudiodec: Do not discard mp_decode_frame() return value.
Diego Biurrun [Thu, 5 Apr 2012 14:48:33 +0000 (16:48 +0200)]
mpegaudiodec: Do not discard mp_decode_frame() return value.

This fixes the warning:
libavcodec/mpegaudiodec.c:1704:14: warning: variable ‘out_size’ set but not used

7 years agomatroska: do not set invalid default duration if frame rate is zero
Mans Rullgard [Wed, 18 Apr 2012 12:48:20 +0000 (13:48 +0100)]
matroska: do not set invalid default duration if frame rate is zero

If a video track specifies a zero frame rate (invalid but occurs),
this results in a division by zero and subsequent undefined conversion
to integer.  Setting the default duration from the frame rate only
if the latter is greater than zero avoids such problems.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agomkv: use av_reduce instead of av_d2q for framerate estimation
Luca Barbato [Tue, 17 Apr 2012 23:32:07 +0000 (16:32 -0700)]
mkv: use av_reduce instead of av_d2q for framerate estimation

It avoids some rounding errors.

7 years agomkv: report average framerate as minimal as well
Luca Barbato [Tue, 17 Apr 2012 22:47:22 +0000 (15:47 -0700)]
mkv: report average framerate as minimal as well

This is in line with other demuxers and overall seems more correct
than assuming codec time base.

7 years agoavcodec_string: Favor AVCodecContext.codec over the default codec.
Alex Converse [Tue, 17 Apr 2012 18:32:56 +0000 (11:32 -0700)]
avcodec_string: Favor AVCodecContext.codec over the default codec.

This improves output for formats with more than one AVCodec.

7 years agocook: Make constants passed to AV_BE2NE32C() unsigned to avoid signed overflow.
Alex Converse [Tue, 17 Apr 2012 01:48:39 +0000 (18:48 -0700)]
cook: Make constants passed to AV_BE2NE32C() unsigned to avoid signed overflow.

7 years agoaacenc: Fix issues with huge values of bit_rate.
Reimar Döffinger [Fri, 6 Apr 2012 13:25:05 +0000 (15:25 +0200)]
aacenc: Fix issues with huge values of bit_rate.

Do not pointlessly call ff_alloc_packet multiple times,
and fix an infinite loop by clamping the maximum
number of bits to target in the algorithm that does
not use lambda.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agodv_tablegen: Drop unnecessary av_unused attribute from dv_vlc_map_tableinit().
Diego Biurrun [Mon, 16 Apr 2012 16:58:11 +0000 (18:58 +0200)]
dv_tablegen: Drop unnecessary av_unused attribute from dv_vlc_map_tableinit().

7 years agoproresenc: multithreaded quantiser search
Kostya Shishkov [Sun, 15 Apr 2012 06:48:43 +0000 (08:48 +0200)]
proresenc: multithreaded quantiser search

7 years agoriff: use bps instead of bits_per_coded_sample in the WAVEFORMATEXTENSIBLE header
Justin Ruggles [Mon, 16 Apr 2012 16:14:25 +0000 (12:14 -0400)]
riff: use bps instead of bits_per_coded_sample in the WAVEFORMATEXTENSIBLE header

This matches the value for the plain WAVEFORMATEX header.
Also fixes stream copy to WAVE for non-16-bit raw pcm.

7 years agoavconv: only set the "channels" option when it exists for the specified input format
Justin Ruggles [Mon, 16 Apr 2012 16:51:24 +0000 (12:51 -0400)]
avconv: only set the "channels" option when it exists for the specified input format

This allows the user to specify an input channel layout without avconv aborting because the
"channels" option was not found.

7 years agoavplay: update get_buffer to be inline with avconv
Luca Barbato [Mon, 16 Apr 2012 06:08:45 +0000 (23:08 -0700)]
avplay: update get_buffer to be inline with avconv

The buffer must have its dimension, pixel format and aspect ratio
set.

7 years agoaacdec: More robust output configuration.
Alex Converse [Tue, 10 Apr 2012 23:27:28 +0000 (16:27 -0700)]
aacdec: More robust output configuration.

Save the old output configuration (if it has been used
successfully) when trying a new configuration. If the new configuration
fails to decode, restore the last successful configuration.

7 years agofaac: Fix multi-channel ordering
Carl Eugen Hoyos [Wed, 25 Jan 2012 01:51:49 +0000 (02:51 +0100)]
faac: Fix multi-channel ordering

Signed-off-by: Alex Converse <alex.converse@gmail.com>
7 years agofaac: Add .channel_layouts
Alex Converse [Mon, 16 Apr 2012 17:35:11 +0000 (10:35 -0700)]
faac: Add .channel_layouts

7 years agortmp: Support 'rtmp_playpath', an option which overrides the stream identifier
Samuel Pitoiset [Sun, 15 Apr 2012 19:50:50 +0000 (21:50 +0200)]
rtmp: Support 'rtmp_playpath', an option which overrides the stream identifier

This option is the stream identifier to play or to publish.
Sometimes the URL parser cannot determine the correct
playpath automatically, so it must be given explicitly
using this option (ie. -rtmp_playpath).

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortmp: Support 'rtmp_app', an option which overrides the name of application
Samuel Pitoiset [Sun, 15 Apr 2012 19:49:48 +0000 (21:49 +0200)]
rtmp: Support 'rtmp_app', an option which overrides the name of application

This option is the name of application to connect on the RTMP server.
Sometimes the URL parser cannot determine the app name automatically,
so it must be given explicitly using this option (ie. -rtmp_app).

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoavutil: add better documentation for AVSampleFormat
Justin Ruggles [Wed, 11 Apr 2012 16:44:26 +0000 (12:44 -0400)]
avutil: add better documentation for AVSampleFormat

7 years agoindeo3: add parens around some macro arguments
Mans Rullgard [Mon, 16 Apr 2012 14:48:05 +0000 (15:48 +0100)]
indeo3: add parens around some macro arguments

Without these, the expansion contains things like --1 with
some compilers resulting in build errors.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoh264: use proper PROLOGUE statement for a function using 8 registers.
Ronald S. Bultje [Sun, 15 Apr 2012 15:11:55 +0000 (08:11 -0700)]
h264: use proper PROLOGUE statement for a function using 8 registers.

Fixes crashes when using biweight on win64.

7 years agodoc: Update sample Vim config with suitable (function) indentation settings.
Diego Biurrun [Tue, 28 Feb 2012 19:44:41 +0000 (20:44 +0100)]
doc: Update sample Vim config with suitable (function) indentation settings.

7 years agodv: Merge dvquant.h into dvdata.c where all other DV tables reside.
Diego Biurrun [Wed, 4 Apr 2012 15:32:55 +0000 (17:32 +0200)]
dv: Merge dvquant.h into dvdata.c where all other DV tables reside.

7 years agodv: Move static tables only used in one place to where they are used.
Diego Biurrun [Wed, 4 Apr 2012 15:13:13 +0000 (17:13 +0200)]
dv: Move static tables only used in one place to where they are used.

7 years agographparser: set next to NULL on an entry extracted from inputs list
Anton Khirnov [Sun, 15 Apr 2012 19:08:37 +0000 (21:08 +0200)]
graphparser: set next to NULL on an entry extracted from inputs list

Prevents it from referring to the rest of the list.

7 years agodoc/filters: update documentation.
Anton Khirnov [Tue, 3 Apr 2012 06:32:23 +0000 (08:32 +0200)]
doc/filters: update documentation.

7 years agoavconv: flush decoders immediately after an EOF.
Anton Khirnov [Mon, 2 Apr 2012 18:13:29 +0000 (20:13 +0200)]
avconv: flush decoders immediately after an EOF.

Prevents extensive buffering when overlaying a single picture.

7 years agoavconv: send EOF to vsrc_buffer.
Anton Khirnov [Sun, 1 Apr 2012 17:01:37 +0000 (19:01 +0200)]
avconv: send EOF to vsrc_buffer.

7 years agoavconv: reindent.
Anton Khirnov [Fri, 30 Mar 2012 20:07:56 +0000 (22:07 +0200)]
avconv: reindent.

7 years agoavconv: add support for complex filtergraphs.
Anton Khirnov [Sun, 1 Apr 2012 13:08:33 +0000 (15:08 +0200)]
avconv: add support for complex filtergraphs.

7 years agoavconv: make filtergraphs global.
Anton Khirnov [Thu, 29 Mar 2012 06:51:17 +0000 (08:51 +0200)]
avconv: make filtergraphs global.

This is the first step towards supporting complex filtergraphs with more
than one input and/or output.

7 years agoavconv: move filtered_frame from InputStream to OutputStream.
Anton Khirnov [Thu, 29 Mar 2012 07:00:09 +0000 (09:00 +0200)]
avconv: move filtered_frame from InputStream to OutputStream.

It more properly belongs to output, not input.

7 years agoavconv: don't set output width/height directly from input value.
Anton Khirnov [Thu, 29 Mar 2012 05:48:27 +0000 (07:48 +0200)]
avconv: don't set output width/height directly from input value.

Always take it from lavfi. This way we don't need a clearly defined
corresponding input stream.

7 years agoavconv: move resample_{width,height,pix_fmt} to InputStream.
Anton Khirnov [Thu, 29 Mar 2012 05:40:26 +0000 (07:40 +0200)]
avconv: move resample_{width,height,pix_fmt} to InputStream.

This is a more proper place for them, since they store parameters of the
input, not output, stream.

7 years agoavconv: remove a useless variable from OutputStream.
Anton Khirnov [Fri, 23 Mar 2012 19:59:09 +0000 (20:59 +0100)]
avconv: remove a useless variable from OutputStream.

7 years agoavconv: get output pixel format from lavfi.
Anton Khirnov [Fri, 23 Mar 2012 14:46:30 +0000 (15:46 +0100)]
avconv: get output pixel format from lavfi.

This way we don't require a clearly defined corresponding input stream.

The result for the xwd test changes because rgb24 is now chosen instead
of bgra.

7 years agographparser: fix the order in which unlabeled input links are returned.
Anton Khirnov [Sun, 15 Apr 2012 12:52:00 +0000 (14:52 +0200)]
graphparser: fix the order in which unlabeled input links are returned.

7 years agoavconv: change {input,output}_{streams,files} into arrays of pointers.
Anton Khirnov [Sun, 15 Apr 2012 13:28:30 +0000 (15:28 +0200)]
avconv: change {input,output}_{streams,files} into arrays of pointers.

Right now, they are arrays of structs, reallocated when new
streams/files are added. This makes storing pointers to those structs
harder than necessary.

7 years agoavconv: don't pass input/output streams to some functions.
Anton Khirnov [Sun, 15 Apr 2012 13:03:07 +0000 (15:03 +0200)]
avconv: don't pass input/output streams to some functions.

They are globals, no point in pretending they are not.

7 years agodoc: Improve suggested Emacs settings for our coding style.
Diego Biurrun [Sat, 14 Apr 2012 17:24:16 +0000 (19:24 +0200)]
doc: Improve suggested Emacs settings for our coding style.

Switch from changing global values to defining a separate C style
and add appropriate settings for indenting assignments that span
more than one line.

7 years agoutvideo: Remove unused variable 'src_size'
Derek Buitenhuis [Sat, 14 Apr 2012 21:26:58 +0000 (17:26 -0400)]
utvideo: Remove unused variable 'src_size'

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agomov: free memory on header parsing failure
Dale Curtis [Sun, 15 Apr 2012 00:48:42 +0000 (17:48 -0700)]
mov: free memory on header parsing failure

Call mov_read_close when mov_read_header fails.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agomov: fix leaking memory with multiple drefs.
Dale Curtis [Fri, 13 Apr 2012 00:56:57 +0000 (17:56 -0700)]
mov: fix leaking memory with multiple drefs.

Instead of allocating over the original, free first. MOVStreamContext
is zero initialized so no double free will occur. Same style as other
fixes for the same problem in this file.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoswscale: clip before assigning tables in RGB output functions.
Ronald S. Bultje [Fri, 13 Apr 2012 21:42:21 +0000 (14:42 -0700)]
swscale: clip before assigning tables in RGB output functions.

7 years agoswscale: fix off-by-one in second coefficient in bilinear filters.
Ronald S. Bultje [Fri, 13 Apr 2012 21:37:47 +0000 (14:37 -0700)]
swscale: fix off-by-one in second coefficient in bilinear filters.

If coefficient A is 12-bits xixed-point number "X", then the other
coefficient is (1 << 12) - X, not (1 << 12) - X - 1.

7 years agovsrc_buffer: fix check from 7ae7c41.
Anton Khirnov [Sat, 14 Apr 2012 10:49:27 +0000 (12:49 +0200)]
vsrc_buffer: fix check from 7ae7c41.

The user submitted variable in this function is frame, not buf.

7 years agolibxvid: Reorder functions to avoid forward declarations; make functions static.
Diego Biurrun [Thu, 12 Apr 2012 11:43:09 +0000 (13:43 +0200)]
libxvid: Reorder functions to avoid forward declarations; make functions static.

7 years agolibxvid: drop some pointless dead code
Diego Biurrun [Thu, 12 Apr 2012 11:42:09 +0000 (13:42 +0200)]
libxvid: drop some pointless dead code

7 years agowmal: vertical alignment cosmetics
Mashiat Sarker Shakkhar [Fri, 13 Apr 2012 21:00:22 +0000 (14:00 -0700)]
wmal: vertical alignment cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agowmal: Warn about missing bitstream splicing feature and ask for sample.
Mashiat Sarker Shakkhar [Fri, 13 Apr 2012 21:00:21 +0000 (14:00 -0700)]
wmal: Warn about missing bitstream splicing feature and ask for sample.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agowmal: Skip seekable_frame_in_packet.
Mashiat Sarker Shakkhar [Fri, 13 Apr 2012 21:00:20 +0000 (14:00 -0700)]
wmal: Skip seekable_frame_in_packet.

There is no point in storing the value in a variable, since it is not
used anywhere else in the decoder.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agowmal: Drop unused variable num_possible_block_size.
Mashiat Sarker Shakkhar [Fri, 13 Apr 2012 21:00:19 +0000 (14:00 -0700)]
wmal: Drop unused variable num_possible_block_size.

This is probably a leftover from WMA Pro.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoavfiltergraph: make the AVFilterInOut alloc/free API public
Stefano Sabatini [Sat, 11 Jun 2011 13:30:46 +0000 (15:30 +0200)]
avfiltergraph: make the AVFilterInOut alloc/free API public

This is required for letting applications to create and destroy
AVFilterInOut structs in a convenient way.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agographparser: allow specifying sws flags in the graph description.
Anton Khirnov [Mon, 9 Apr 2012 04:13:53 +0000 (06:13 +0200)]
graphparser: allow specifying sws flags in the graph description.

7 years agographparser: fix the order of connecting unlabeled links.
Anton Khirnov [Mon, 9 Apr 2012 03:01:05 +0000 (05:01 +0200)]
graphparser: fix the order of connecting unlabeled links.

Right now, e.g. scale,[in]overlay would connect scale to the first
overlay input and [in] to the second, which goes against the
documentation and is unintuitive.

The bug happens because of the ordering mess in curr_inputs variable:
1) the unlabeled links from the previous filter are added to it in
correct order
2) input labels are parsed and inserted to the beginning one by one
(i.e. in reverse order)
3) curr_inputs is matched against filter inputs in reverse order

Fix the problem by always using proper ordering without trying to be
clever.

7 years agographparser: add avfilter_graph_parse2().
Anton Khirnov [Wed, 21 Mar 2012 06:46:56 +0000 (07:46 +0100)]
graphparser: add avfilter_graph_parse2().

Unlike avfilter_graph_parse(), it returns unlinked inputs and outputs
to the caller, which allows parsing of graphs where inputs/outputs are
not known in advance.

7 years agovsrc_buffer: allow using a NULL buffer to signal EOF.
Anton Khirnov [Sun, 1 Apr 2012 16:53:58 +0000 (18:53 +0200)]
vsrc_buffer: allow using a NULL buffer to signal EOF.

7 years agoswscale: handle last pixel if lines have an odd width.
Ronald S. Bultje [Fri, 6 Apr 2012 00:30:19 +0000 (17:30 -0700)]
swscale: handle last pixel if lines have an odd width.

Fixes bug 270.

7 years agoqdm2: fix a dubious pointer cast
Mans Rullgard [Fri, 13 Apr 2012 16:43:54 +0000 (17:43 +0100)]
qdm2: fix a dubious pointer cast

This reworks a loop to get rid of an ugly pointer cast,
fixing errors seen with the PathScale ENZO compiler.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoWMAL: Do not try to read rawpcm coefficients if bits is invalid
Michael Niedermayer [Fri, 13 Apr 2012 14:40:53 +0000 (07:40 -0700)]
WMAL: Do not try to read rawpcm coefficients if bits is invalid

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agomov: Fix detecting there is no sync sample.
Yusuke Nakamura [Fri, 13 Apr 2012 09:59:14 +0000 (18:59 +0900)]
mov: Fix detecting there is no sync sample.

Stss atom without entries doesn't mean every sample is a sync sample.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agotiffdec: K&R cosmetics
Alex Converse [Fri, 13 Apr 2012 01:28:37 +0000 (18:28 -0700)]
tiffdec: K&R cosmetics

7 years agoavf: has_duration does not check the global one
Luca Barbato [Fri, 13 Apr 2012 05:00:57 +0000 (22:00 -0700)]
avf: has_duration does not check the global one

Some container formats report a global duration, but not a per stream
one.

7 years agodsputil: fix optimized emu_edge function on Win64.
Ronald S. Bultje [Fri, 13 Apr 2012 18:06:39 +0000 (11:06 -0700)]
dsputil: fix optimized emu_edge function on Win64.

Recent register allocation changes (x86inc.asm update) changed the
register order and thus opcodes for the inner loops. One of them became
>128bytes, which confuses other parts of this function where it jumps
to fixed-offset positions to extend the edge by fixed amounts. A simple
register change fixes this.

7 years agoswscale: K&R formatting cosmetics (part II)
Diego Biurrun [Sun, 1 Apr 2012 08:34:10 +0000 (10:34 +0200)]
swscale: K&R formatting cosmetics (part II)

Also adjust some comments including wording and typo fixes.

7 years agotiffdec: Add a malloc check and refactor another.
Alex Converse [Fri, 13 Apr 2012 01:22:07 +0000 (18:22 -0700)]
tiffdec: Add a malloc check and refactor another.