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>
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>
Janne Grunau [Tue, 12 Mar 2013 21:16:45 +0000 (22:16 +0100)]
avpacket: copy side data type and size in av_dup_packet
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>
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>
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>
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
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>
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
Diego Biurrun [Sat, 9 Mar 2013 21:28:02 +0000 (22:28 +0100)]
anm: Get rid of some very silly goto statements
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>
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.
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.
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()
Anton Khirnov [Thu, 28 Feb 2013 07:47:21 +0000 (08:47 +0100)]
vf_hqdn3d: fix uninitialized variable use
CC:libav-stable@libav.org
Anton Khirnov [Thu, 28 Feb 2013 07:47:21 +0000 (08:47 +0100)]
vf_gradfun: fix uninitialized variable use
CC:libav-stable@libav.org
Anton Khirnov [Thu, 7 Mar 2013 17:04:19 +0000 (18:04 +0100)]
h264_refs: cosmetics, reformat
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.
Anton Khirnov [Thu, 7 Mar 2013 15:38:21 +0000 (16:38 +0100)]
mpegvideo: remove FMT_H264
Anton Khirnov [Thu, 7 Mar 2013 15:37:45 +0000 (16:37 +0100)]
mpegvideo: reindent
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().
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavf: 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_AV_GETTIME cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavf: 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_READ_PACKET cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavf: 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_CLOSE_INPUT_FILE cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_IDCT cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_SNOW cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_MMI cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_LIBMPEG2 cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_AVCODEC_RESAMPLE cruft
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>
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.
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.
Janne Grunau [Sun, 10 Mar 2013 21:13:03 +0000 (22:13 +0100)]
wmapro: unref skipped frames
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.
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.
Anton Khirnov [Wed, 21 Sep 2011 19:47:16 +0000 (21:47 +0200)]
ratecontrol: remove an unused variable
Anton Khirnov [Sat, 9 Mar 2013 17:38:27 +0000 (18:38 +0100)]
vorbisdec: do not leak the first frame.
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>
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>
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: 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_CODEC_ID cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: 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_DSP_MASK cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: 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_INTER_THRESHOLD cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: 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_MPV_GLOBAL_OPTS cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: 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_AUDIO cruft
Anton Khirnov [Sat, 23 Feb 2013 07:20:12 +0000 (08:20 +0100)]
lavc: remove disabled FF_API_OLD_DECODE_AUDIO cruft
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
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
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
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>
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.
Anton Khirnov [Thu, 21 Feb 2013 09:57:57 +0000 (10:57 +0100)]
avconv: fix a typo
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.
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.
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.
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.
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.
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>
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>
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>
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.
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>
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
Anton Khirnov [Wed, 6 Mar 2013 09:02:50 +0000 (10:02 +0100)]
wmaprodec: return an error, not 0, when the input is too small.
Returning 0 may result in an infinite loop in valid calling programs. A
decoder should never return 0 without producing any output.
CC:libav-stable@libav.org
Anton Khirnov [Wed, 6 Mar 2013 08:58:00 +0000 (09:58 +0100)]
wmaprodec: require block_align to be set.
Avoids an infinite loop in the calling programs with decoder not
consuming any input and not returning output.
CC:libav-stable@libav.org
Anton Khirnov [Wed, 6 Mar 2013 08:58:00 +0000 (09:58 +0100)]
wmadec: require block_align to be set.
Avoids an infinite loop in the calling programs with decoder not
consuming any input and not returning output.
CC:libav-stable@libav.org
Anton Khirnov [Wed, 6 Mar 2013 08:41:44 +0000 (09:41 +0100)]
ivi_common: do not call MC for intra frames when dc_transform is unset
CC:libav-stable@libav.org
Anton Khirnov [Wed, 6 Mar 2013 08:15:19 +0000 (09:15 +0100)]
roqvideodec: fix a potential infinite loop in roqvideo_decode_frame().
When there is just 1 byte remanining in the buffer, nothing will be read
and the loop will continue forever. Check that there are at least 8
bytes, which are always read at the beginning.
CC:libav-stable@libav.org
Anton Khirnov [Wed, 6 Mar 2013 08:06:16 +0000 (09:06 +0100)]
xxan: fix invalid memory access in xan_decode_frame_type0()
The loop a few lines below the xan_unpack() call accesses up to
dec_size * 2 bytes into y_buffer, so dec_size must be limited to
buffer_size / 2.
CC:libav-stable@libav.org
Anton Khirnov [Tue, 19 Feb 2013 16:19:30 +0000 (17:19 +0100)]
tty: set avg_frame_rate.
The container does not store any timestamps and is CFR-only.
Anton Khirnov [Tue, 19 Feb 2013 07:41:38 +0000 (08:41 +0100)]
FATE: enable multiple slices in the ffv1 vsynth test
This allows us to test the slice threading code.
Anton Khirnov [Tue, 19 Feb 2013 07:15:07 +0000 (08:15 +0100)]
ffv1: fix calculating slice dimensions for version 2
It got broken in
0f13cd3187192ba0cc2b043430de6e279e7b97c3.
CC:libav-stable@libav.org
Anton Khirnov [Wed, 13 Feb 2013 20:04:42 +0000 (21:04 +0100)]
eamad: allocate a dummy reference frame when the real one is missing
CC:libav-stable@libav.org
Anton Khirnov [Thu, 7 Mar 2013 07:16:07 +0000 (08:16 +0100)]
Replace remaining includes of audioconvert.h with channel_layout.h
Anton Khirnov [Thu, 7 Mar 2013 07:15:31 +0000 (08:15 +0100)]
Replace some forgotten instances of PIX_FMT_* with AV_PIX_FMT_*.
Anton Khirnov [Sun, 17 Feb 2013 09:31:25 +0000 (10:31 +0100)]
Add the bumps and APIchanges entries for reference counted buffers changes.
Anton Khirnov [Sat, 23 Feb 2013 07:18:28 +0000 (08:18 +0100)]
lavc: postpone the removal of request_channels API.
Its replacement is still not ready.
Anton Khirnov [Fri, 15 Feb 2013 16:30:30 +0000 (17:30 +0100)]
AVFrame: deprecate all now unused fields
Anton Khirnov [Fri, 15 Feb 2013 16:29:16 +0000 (17:29 +0100)]
lavc: stop setting AVFrame.motion_subsample_log2
It is not used inside lavc anywhere and now it makes no sense to export
it.
Anton Khirnov [Sun, 17 Feb 2013 15:05:00 +0000 (16:05 +0100)]
avserver: don't set deprecated options.
Anton Khirnov [Sun, 17 Feb 2013 15:06:16 +0000 (16:06 +0100)]
avplay: switch to new refcounted frames API
Remove now unused cmdutils get_buffer() implementation.
Anton Khirnov [Mon, 21 Jan 2013 20:10:18 +0000 (21:10 +0100)]
avconv: convert to new refcounted AVFrame API
Anton Khirnov [Wed, 13 Feb 2013 14:49:39 +0000 (15:49 +0100)]
mpegvideo: drop vismv code
It has been broken for over a year without anyone complaining or
noticing, thus proving that nobody ever uses it.
Anton Khirnov [Mon, 11 Feb 2013 07:13:22 +0000 (08:13 +0100)]
lavc: make up a fake frame channel layout when there is no real one.
This should ensure that a valid channel layout is always set on a frame,
until a better solution is implemented.
Anton Khirnov [Mon, 11 Feb 2013 07:09:37 +0000 (08:09 +0100)]
lavc: limit maximum number of channels to 63
This is the most that can be represented with the current channel layout
system. This limit should be raised/removed when a better system is
implemented.
Anton Khirnov [Mon, 11 Feb 2013 07:09:02 +0000 (08:09 +0100)]
lavc: allow decoders to override frame parameters.
Anton Khirnov [Wed, 13 Feb 2013 07:50:04 +0000 (08:50 +0100)]
lavc decoders: properly initialize AVFrame.
Anton Khirnov [Wed, 21 Nov 2012 20:34:46 +0000 (21:34 +0100)]
lavc decoders: work with refcounted frames.
Anton Khirnov [Sun, 3 Mar 2013 19:43:43 +0000 (20:43 +0100)]
mpegvideo_enc: drop support for reusing the input motion vectors.
This misfeature is most likely completely useless and conflicts with
removing the mpegvideo-specific fields from AVFrame. In the improbable
case it is actually useful, it should be reimplemented in a better way.
Anton Khirnov [Wed, 28 Nov 2012 07:41:07 +0000 (08:41 +0100)]
lavfi: switch to AVFrame.
Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it
and use AVFrame instead.
Anton Khirnov [Tue, 25 Dec 2012 21:11:36 +0000 (22:11 +0100)]
AVFrame: add side data.
Anton Khirnov [Wed, 17 Oct 2012 09:51:01 +0000 (11:51 +0200)]
Move AVFrame from lavc to lavu.
Add AVBuffer-based reference counting API to it.
Anton Khirnov [Mon, 8 Oct 2012 05:50:14 +0000 (07:50 +0200)]
lavc: move AVFrame.hwaccel_picture_private to Picture.
This field is private and should not be present in a public struct. It
is only used in DXVA with mpegvideo-based decoders currently.