platform/upstream/libav.git
11 years agoasfenc: return error on negative timestamp
Luca Barbato [Sun, 17 Mar 2013 14:13:43 +0000 (15:13 +0100)]
asfenc: return error on negative timestamp

According to the specification the timestamp is represented by a 32bit
unsigned.

CC: libav-stable@libav.org
11 years agolavc,lavfi: fix calculating the plane size in the AVBufferRef wrappers
Anton Khirnov [Sat, 16 Mar 2013 17:09:17 +0000 (18:09 +0100)]
lavc,lavfi: fix calculating the plane size in the AVBufferRef wrappers

It is supposed to be height * linesize, not width * linesize.
Thanks to Hendrik Leppkes for pointing out the bug.

11 years agodocument the release process
Reinhard Tartler [Sun, 24 Feb 2013 18:11:07 +0000 (19:11 +0100)]
document the release process

11 years agoaf_join: do not leak input frames.
Anton Khirnov [Wed, 13 Mar 2013 19:43:35 +0000 (20:43 +0100)]
af_join: do not leak input frames.

11 years agoasrc_anullsrc: return EOF, not -1
Anton Khirnov [Tue, 12 Mar 2013 19:17:32 +0000 (20:17 +0100)]
asrc_anullsrc: return EOF, not -1

11 years agoasrc_anullsrc: do not set samplerate and channel layout explicitly
Anton Khirnov [Tue, 12 Mar 2013 19:14:29 +0000 (20:14 +0100)]
asrc_anullsrc: do not set samplerate and channel layout explicitly

They are auto-negotiated.

11 years agovf_showinfo: remove its useless init function
Anton Khirnov [Tue, 12 Mar 2013 18:45:56 +0000 (19:45 +0100)]
vf_showinfo: remove its useless init function

Filter private data is memset to 0 so there is no point in explicitly
initing anything to 0.

11 years agoAVOptions: fix using named constants with child contexts.
Anton Khirnov [Tue, 12 Mar 2013 17:21:27 +0000 (18:21 +0100)]
AVOptions: fix using named constants with child contexts.

The named constant needs to be searched for in the same object on which
the option is set, i.e. target_obj.

11 years agoAVOption: remove an unused function parameter.
Anton Khirnov [Tue, 12 Mar 2013 17:09:48 +0000 (18:09 +0100)]
AVOption: remove an unused function parameter.

11 years agofilters.texi: restore mistakenly removed section name for noformat
Anton Khirnov [Mon, 25 Feb 2013 22:01:11 +0000 (23:01 +0100)]
filters.texi: restore mistakenly removed section name for noformat

11 years agoavfiltergraph: use sizeof(var) instead of sizeof(type)
Anton Khirnov [Mon, 25 Feb 2013 11:14:56 +0000 (12:14 +0100)]
avfiltergraph: use sizeof(var) instead of sizeof(type)

11 years agoavfiltergraph: replace AVFilterGraph.filter_count with nb_filters
Anton Khirnov [Mon, 25 Feb 2013 11:12:36 +0000 (12:12 +0100)]
avfiltergraph: replace AVFilterGraph.filter_count with nb_filters

This is more consistent with the naming in the rest of Libav.

11 years agolavfi: use designated initializers in avfilter_class
Anton Khirnov [Mon, 25 Feb 2013 11:09:01 +0000 (12:09 +0100)]
lavfi: use designated initializers in avfilter_class

11 years agolavf: sanity check size in av_get/append_packet().
Anton Khirnov [Tue, 19 Feb 2013 16:20:35 +0000 (17:20 +0100)]
lavf: sanity check size in av_get/append_packet().

To avoid allocating ridiculous amounts of memory for corrupted files,
read the input in chunks limited to filesize or an arbitrary large
amount when that is not known (chosen to be 50M).

11 years agolzo: fix overflow checking in copy_backptr()
Xi Wang [Fri, 15 Mar 2013 10:59:22 +0000 (06:59 -0400)]
lzo: fix overflow checking in copy_backptr()

The check `src > dst' in the form `&c->out[-back] > c->out' invokes
pointer overflow, which is undefined behavior in C.

Remove the check.  Also replace `&c->out[-back] < c->out_start' with
a safe form `c->out - c->out_start < back' to avoid overflow.

CC: libav-stable@libav.org
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoflacdec: simplify bounds checking in flac_probe()
Xi Wang [Fri, 15 Mar 2013 11:11:47 +0000 (07:11 -0400)]
flacdec: simplify bounds checking in flac_probe()

Simplify `p->buf > p->buf + p->buf_size - 4' as `p->buf_size < 4'.
Avoid a possible out-of-bounds pointer, which is undefined behavior
in C.

CC: libav-stable@libav.org
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoatrac3: avoid oversized shifting in decode_bytes()
Xi Wang [Fri, 15 Mar 2013 10:31:21 +0000 (06:31 -0400)]
atrac3: avoid oversized shifting in decode_bytes()

When `off' is 0, `0x537F6103 << 32' in the following expression invokes
undefined behavior, the result of which is not necessarily 0.

    (0x537F6103 >> (off * 8)) | (0x537F6103 << (32 - (off * 8)))

Avoid oversized shifting.

CC: libav-stable@libav.org
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoadd support for Monkey's Audio versions from 3.93
Kostya Shishkov [Tue, 12 Mar 2013 18:33:29 +0000 (19:33 +0100)]
add support for Monkey's Audio versions from 3.93

11 years agoape: provide two additional bytes in buffer for old MAC versions
Kostya Shishkov [Tue, 12 Mar 2013 06:17:03 +0000 (07:17 +0100)]
ape: provide two additional bytes in buffer for old MAC versions

Range coder in 3.90-3.95 overread two bytes in the final normalize.

11 years agoape: make version-dependent decoding functions called via pointers
Kostya Shishkov [Tue, 12 Mar 2013 06:33:12 +0000 (07:33 +0100)]
ape: make version-dependent decoding functions called via pointers

This will help in supporting old versions, e.g. version 3.93 uses the same
range coder but different predictor and version 3.82 uses different range
coder and predictor. Also this should not make decoding newer versions slower
by introducing additional checks on versions.

11 years agompegts: add support for stream_type 0x42, which is CAVS
Can Wu [Tue, 26 Feb 2013 02:01:21 +0000 (10:01 +0800)]
mpegts: add support for stream_type 0x42, which is CAVS

This allows demuxing and muxing of CAVS TS streams.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agoavconv: mark attachment streams as immediately finished
Anton Khirnov [Thu, 14 Mar 2013 08:44:07 +0000 (09:44 +0100)]
avconv: mark attachment streams as immediately finished

There are never any packets for those streams.
Fixes an infinite loop with -attach.

11 years agovaapi: fix argument for ff_vaapi_common_end_frame call
Janne Grunau [Thu, 14 Mar 2013 14:12:30 +0000 (15:12 +0100)]
vaapi: fix argument for ff_vaapi_common_end_frame call

11 years agoavcodec: av_log_missing_feature(1) ---> avpriv_request_sample()
Diego Biurrun [Wed, 13 Mar 2013 20:18:34 +0000 (21:18 +0100)]
avcodec: av_log_missing_feature(1) ---> avpriv_request_sample()

11 years agoavcodec: av_log_ask_for_sample() ---> avpriv_request_sample()
Diego Biurrun [Wed, 13 Mar 2013 20:17:05 +0000 (21:17 +0100)]
avcodec: av_log_ask_for_sample() ---> avpriv_request_sample()

11 years agorsodec: Use avpriv_report_missing_feature() where appropriate
Diego Biurrun [Sat, 9 Mar 2013 22:15:41 +0000 (23:15 +0100)]
rsodec: Use avpriv_report_missing_feature() where appropriate

11 years agoavformat: av_log_ask_for_sample() ---> avpriv_request_sample()
Diego Biurrun [Mon, 25 Feb 2013 22:54:28 +0000 (23:54 +0100)]
avformat: av_log_ask_for_sample() ---> avpriv_request_sample()

11 years agoav_log_missing_feature() ---> avpriv_report_missing_feature()
Diego Biurrun [Mon, 25 Feb 2013 22:53:52 +0000 (23:53 +0100)]
av_log_missing_feature() ---> avpriv_report_missing_feature()

11 years agoAdd av_log_{ask_for_sample|missing_feature} replacements to libavutil
Diego Biurrun [Tue, 22 Jan 2013 01:41:54 +0000 (02:41 +0100)]
Add av_log_{ask_for_sample|missing_feature} replacements to libavutil

This allows reporting missing features and requesting samples from
all libraries in a standard way; with a simplified API.

11 years agoismindex: Check the return value of allocations
Martin Storsjö [Wed, 13 Mar 2013 12:13:46 +0000 (14:13 +0200)]
ismindex: Check the return value of allocations

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoismindex: Factorize code for printing chunk duration lists
Martin Storsjö [Wed, 13 Mar 2013 10:29:43 +0000 (12:29 +0200)]
ismindex: Factorize code for printing chunk duration lists

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoismindex: Rename structs and fields from "file" to "track"
Martin Storsjö [Wed, 13 Mar 2013 09:42:34 +0000 (11:42 +0200)]
ismindex: Rename structs and fields from "file" to "track"

The tool nowadays supports more than one track per file,
this makes reading the code slightly less confusing.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavpacket: copy side data type and size in av_dup_packet
Janne Grunau [Tue, 12 Mar 2013 21:16:45 +0000 (22:16 +0100)]
avpacket: copy side data type and size in av_dup_packet

11 years agohqdn3d: Fix out of array read in LOWPASS
Loren Merritt [Fri, 21 Sep 2012 23:43:16 +0000 (01:43 +0200)]
hqdn3d: Fix out of array read in LOWPASS

CC:libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agocabac: remove unused argument of ff_init_cabac_states()
Michael Niedermayer [Sun, 26 Aug 2012 03:44:46 +0000 (05:44 +0200)]
cabac: remove unused argument of ff_init_cabac_states()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agorawdec: fix a typo -- || instead of |
Nicolas George [Sat, 9 Mar 2013 15:47:38 +0000 (16:47 +0100)]
rawdec: fix a typo -- || instead of |

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agomatroskadec: request a read buffer for the wav header
Luca Barbato [Tue, 12 Mar 2013 17:56:28 +0000 (18:56 +0100)]
matroskadec: request a read buffer for the wav header

Solve an infiniloop.

CC: libav-stable@libav.org
11 years agodsputil: convert remaining functions to use ptrdiff_t strides
Luca Barbato [Fri, 8 Mar 2013 21:40:03 +0000 (22:40 +0100)]
dsputil: convert remaining functions to use ptrdiff_t strides

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoAdd informative messages to av_log_ask_for_sample calls lacking them
Diego Biurrun [Sat, 9 Mar 2013 15:30:03 +0000 (16:30 +0100)]
Add informative messages to av_log_ask_for_sample calls lacking them

11 years agoanm: Get rid of some very silly goto statements
Diego Biurrun [Sat, 9 Mar 2013 21:28:02 +0000 (22:28 +0100)]
anm: Get rid of some very silly goto statements

11 years agovda: remove async decoder leftovers
Luca Barbato [Sat, 9 Mar 2013 15:23:54 +0000 (16:23 +0100)]
vda: remove async decoder leftovers

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoavframe: call release_buffer only if it is set
Janne Grunau [Mon, 11 Mar 2013 15:24:36 +0000 (16:24 +0100)]
avframe: call release_buffer only if it is set

AVCodecContext release_buffer() shall be NULL for audio codecs using
get_buffer. The backward compatibility code hence have to check before
calling it.

11 years agopthread: unref the decoded but not returned frames on close.
Anton Khirnov [Mon, 11 Mar 2013 17:04:58 +0000 (18:04 +0100)]
pthread: unref the decoded but not returned frames on close.

Fixes memleaks when frame mt is used and the decoder is not flushed at
the end.

11 years agoh264: check that DPB is allocated before accessing it in flush_dpb()
Anton Khirnov [Sun, 10 Mar 2013 22:28:31 +0000 (23:28 +0100)]
h264: check that DPB is allocated before accessing it in flush_dpb()

11 years agovf_hqdn3d: fix uninitialized variable use
Anton Khirnov [Thu, 28 Feb 2013 07:47:21 +0000 (08:47 +0100)]
vf_hqdn3d: fix uninitialized variable use

CC:libav-stable@libav.org

11 years agovf_gradfun: fix uninitialized variable use
Anton Khirnov [Thu, 28 Feb 2013 07:47:21 +0000 (08:47 +0100)]
vf_gradfun: fix uninitialized variable use

CC:libav-stable@libav.org

11 years agoh264_refs: cosmetics, reformat
Anton Khirnov [Thu, 7 Mar 2013 17:04:19 +0000 (18:04 +0100)]
h264_refs: cosmetics, reformat

11 years agoh264: remove a useless svq3 condition
Anton Khirnov [Thu, 7 Mar 2013 15:40:26 +0000 (16:40 +0100)]
h264: remove a useless svq3 condition

The svq3 decoder does not call ff_h264_frame_start() anymore.

11 years agompegvideo: remove FMT_H264
Anton Khirnov [Thu, 7 Mar 2013 15:38:21 +0000 (16:38 +0100)]
mpegvideo: remove FMT_H264

11 years agompegvideo: reindent
Anton Khirnov [Thu, 7 Mar 2013 15:37:45 +0000 (16:37 +0100)]
mpegvideo: reindent

11 years agompegvideo: remove useless references to h264 and svq3
Anton Khirnov [Thu, 7 Mar 2013 15:35:57 +0000 (16:35 +0100)]
mpegvideo: remove useless references to h264 and svq3

The h264 decoder does not use mpegvideo anymore. The svq3 decoder only
uses ff_draw_horiz_band().

11 years agolavf: remove disabled FF_API_R_FRAME_RATE cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavf: remove disabled FF_API_R_FRAME_RATE cruft

11 years agolavf: remove disabled FF_API_AV_GETTIME cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavf: remove disabled FF_API_AV_GETTIME cruft

11 years agolavf: remove disabled FF_API_INTERLEAVE_PACKET cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavf: remove disabled FF_API_INTERLEAVE_PACKET cruft

11 years agolavf: remove disabled FF_API_READ_PACKET cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavf: remove disabled FF_API_READ_PACKET cruft

11 years agolavf: remove disabled FF_API_APPLEHTTP_PROTO cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavf: remove disabled FF_API_APPLEHTTP_PROTO cruft

11 years agolavf: remove disabled FF_API_CLOSE_INPUT_FILE cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavf: remove disabled FF_API_CLOSE_INPUT_FILE cruft

11 years agolavc: remove disabled FF_API_IDCT cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_IDCT cruft

11 years agolavc: remove disabled FF_API_SNOW cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_SNOW cruft

11 years agolavc: remove disabled FF_API_MMI cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_MMI cruft

11 years agolavc: remove disabled FF_API_LIBMPEG2 cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_LIBMPEG2 cruft

11 years agolavc: remove disabled FF_API_AVCODEC_RESAMPLE cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_AVCODEC_RESAMPLE cruft

11 years agoatomic: prefer gcc builtins over win32 atomics, if available.
Hendrik Leppkes [Sun, 10 Mar 2013 22:03:42 +0000 (23:03 +0100)]
atomic: prefer gcc builtins over win32 atomics, if available.

The mingw win32 atomics appear to be faulty, so they should not be used
if the gcc ones are available.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavframe: copy reordered_opaque in copy_props
Janne Grunau [Mon, 11 Mar 2013 12:29:39 +0000 (13:29 +0100)]
avframe: copy reordered_opaque in copy_props

Fixes video playback in applications still using reordered_opaque.

11 years agora144: check buffer size before requesting a buffer
Janne Grunau [Sun, 10 Mar 2013 21:09:24 +0000 (22:09 +0100)]
ra144: check buffer size before requesting a buffer

Return an error on incomplete frames.

11 years agowmapro: unref skipped frames
Janne Grunau [Sun, 10 Mar 2013 21:13:03 +0000 (22:13 +0100)]
wmapro: unref skipped frames

11 years agosvq1: use av_frame_free to free refcounted frame
Janne Grunau [Sun, 10 Mar 2013 20:30:54 +0000 (21:30 +0100)]
svq1: use av_frame_free to free refcounted frame

Fixes a memleak due to avcodec_free_frame not freeing the frame data.

11 years agolavc: fix get_buffer() compatibility layer for audio.
Anton Khirnov [Sun, 10 Mar 2013 16:56:35 +0000 (17:56 +0100)]
lavc: fix get_buffer() compatibility layer for audio.

planes - FF_ARRAY_ELEMS would be evaluated as unsigned and underflow
instead of being negative as was intended.

11 years agoratecontrol: remove an unused variable
Anton Khirnov [Wed, 21 Sep 2011 19:47:16 +0000 (21:47 +0200)]
ratecontrol: remove an unused variable

11 years agovorbisdec: do not leak the first frame.
Anton Khirnov [Sat, 9 Mar 2013 17:38:27 +0000 (18:38 +0100)]
vorbisdec: do not leak the first frame.

11 years agovf_pad: fix a & instead of && typo
Xi Wang [Sun, 10 Mar 2013 03:34:27 +0000 (22:34 -0500)]
vf_pad: fix a & instead of && typo

Avoid buffer overflow in buffer_needs_copy()

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agoavplay: enable only when SDL 1.2 is found
Vittorio Giovara [Wed, 6 Mar 2013 16:15:50 +0000 (17:15 +0100)]
avplay: enable only when SDL 1.2 is found

SDL 2 is API incompatible.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agolavc: remove disabled FF_API_VDA_ASYNC cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_VDA_ASYNC cruft

11 years agolavc: remove disabled FF_API_CODEC_ID cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_CODEC_ID cruft

11 years agolavc: remove disabled FF_API_FIND_BEST_PIX_FMT cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_FIND_BEST_PIX_FMT cruft

11 years agolavc: remove disabled FF_API_DSP_MASK cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_DSP_MASK cruft

11 years agolavc: remove disabled FF_API_SUB_ID cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_SUB_ID cruft

11 years agolavc: remove disabled FF_API_INTER_THRESHOLD cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_INTER_THRESHOLD cruft

11 years agolavc: remove disabled FF_API_COLOR_TABLE_ID cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_COLOR_TABLE_ID cruft

11 years agolavc: remove disabled FF_API_MPV_GLOBAL_OPTS cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_MPV_GLOBAL_OPTS cruft

11 years agolavc: remove disabled FF_API_OLD_ENCODE_VIDEO cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_OLD_ENCODE_VIDEO cruft

11 years agolavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruft

11 years agolavc: remove disabled FF_API_OLD_DECODE_AUDIO cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_OLD_DECODE_AUDIO cruft

11 years agoatomic: fix CAS with armcc.
Anton Khirnov [Fri, 8 Mar 2013 19:57:31 +0000 (20:57 +0100)]
atomic: fix CAS with armcc.

On the current code, armcc will fail with:
"libavutil/atomic_gcc.h", line 52: Error:  #2771: first argument must be
a pointer to integer or enumeration type

11 years agopng: use av_mallocz_array() for the zlib zalloc function
Justin Ruggles [Wed, 16 Jan 2013 23:10:57 +0000 (18:10 -0500)]
png: use av_mallocz_array() for the zlib zalloc function

Fixes valgrind uninitialized memory errors when decoding png.

CC:libav-stable@libav.org

11 years agolibmp3lame: use the correct remaining buffer size when flushing
Justin Ruggles [Wed, 16 Jan 2013 22:52:55 +0000 (17:52 -0500)]
libmp3lame: use the correct remaining buffer size when flushing

CC:libav-stable@libav.org

11 years agoatomic: Exclude the unsupported implementation headers from checkheaders
Martin Storsjö [Fri, 8 Mar 2013 13:31:54 +0000 (15:31 +0200)]
atomic: Exclude the unsupported implementation headers from checkheaders

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavconv: do not silently ignore unused codec AVOptions.
Anton Khirnov [Thu, 21 Feb 2013 09:58:46 +0000 (10:58 +0100)]
avconv: do not silently ignore unused codec AVOptions.

Print an error and abort when the option is of the wrong type (decoding
for output file or vice versa), since this could never be correct for
any input or output configuration.

Print a warning and continue when the option is of the correct type,
just unused, so same commandlines can be reused for different kinds of
input or output files.

11 years agoavconv: fix a typo
Anton Khirnov [Thu, 21 Feb 2013 09:57:57 +0000 (10:57 +0100)]
avconv: fix a typo

11 years agoFATE: replace -vb with -b:v
Anton Khirnov [Thu, 21 Feb 2013 09:56:33 +0000 (10:56 +0100)]
FATE: replace -vb with -b:v

The -{vas}<option> syntax is now obsolete and deprecated, and has never
been documented or encouraged.

11 years agoFATE: remove the -dct option from some decoding tests.
Anton Khirnov [Thu, 21 Feb 2013 09:50:57 +0000 (10:50 +0100)]
FATE: remove the -dct option from some decoding tests.

It is an encoding option, it has no effect when applied to decoding.

11 years agoavconv: use a local variable for InputFile in open_input_file().
Anton Khirnov [Thu, 21 Feb 2013 08:53:28 +0000 (09:53 +0100)]
avconv: use a local variable for InputFile in open_input_file().

This is shorter and more readable.

11 years agoavconv: use a local variable for OutputFile in open_output_file().
Anton Khirnov [Thu, 21 Feb 2013 08:53:28 +0000 (09:53 +0100)]
avconv: use a local variable for OutputFile in open_output_file().

This is shorter and more readable.

11 years agoavconv: print an error on applying options of the wrong type.
Anton Khirnov [Wed, 20 Feb 2013 07:02:16 +0000 (08:02 +0100)]
avconv: print an error on applying options of the wrong type.

I.e. input options to output files or vice versa.

11 years agoatomic: Check for __sync_val_compare_and_swap instead of __sync_synchronize
Martin Storsjö [Fri, 8 Mar 2013 10:32:38 +0000 (12:32 +0200)]
atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronize

Not all gcc configurations have an implementation of all the atomic
operations, and some gcc configurations have some atomic builtins
implemented but not all.

Thus check for the most essential function, whose presence should
indicate that all others are present as well, since it can be used
to implement all the other ones.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agooutput-example: Update to use encode_video2 instead of the now dropped encode_video
Martin Storsjö [Fri, 8 Mar 2013 09:59:57 +0000 (11:59 +0200)]
output-example: Update to use encode_video2 instead of the now dropped encode_video

Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years agoatomic: Add include guards to the implementation headers
Martin Storsjö [Fri, 8 Mar 2013 09:16:14 +0000 (11:16 +0200)]
atomic: Add include guards to the implementation headers

This makes them pass standalone compilation tests. Previously,
they included atomic.h which included themselves again, leading to
double definitions.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agolavc: update the fallback versions of ff_thread_*
Anton Khirnov [Fri, 8 Mar 2013 07:43:32 +0000 (08:43 +0100)]
lavc: update the fallback versions of ff_thread_*

Fixes build without threads after
759001c534287a96dc96d1e274665feb7059145d.

11 years agolibopencore-amr: Add the missing 3rd argument of ff_get_buffer()
Yusuke Nakamura [Fri, 8 Mar 2013 07:51:55 +0000 (16:51 +0900)]
libopencore-amr: Add the missing 3rd argument of ff_get_buffer()

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agovmdaudio: fix invalid reads when packet size is not a multiple of chunk size
Anton Khirnov [Wed, 6 Mar 2013 09:42:51 +0000 (10:42 +0100)]
vmdaudio: fix invalid reads when packet size is not a multiple of chunk size

CC:libav-stable@libav.org