]> git.sesse.net Git - ffmpeg/log
ffmpeg
10 years agoMerge commit '94a417acc05cc5151b473abc0bf51fad26f8c5a0'
Michael Niedermayer [Sat, 4 Jan 2014 00:18:33 +0000 (01:18 +0100)]
Merge commit '94a417acc05cc5151b473abc0bf51fad26f8c5a0'

* commit '94a417acc05cc5151b473abc0bf51fad26f8c5a0':
  mathematics: remove asserts from av_rescale_rnd()

Conflicts:
libavutil/mathematics.c

The asserts are left in place for now as no code checks the return
value, but we sure can change this if application developers
prefer

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '24057c83207d6ea8bfd824155ac37be8a33dfd0c'
Michael Niedermayer [Sat, 4 Jan 2014 00:05:52 +0000 (01:05 +0100)]
Merge commit '24057c83207d6ea8bfd824155ac37be8a33dfd0c'

* commit '24057c83207d6ea8bfd824155ac37be8a33dfd0c':
  eacmv: check the framerate before setting it.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit '5569146d48f06564e8fa393424782cceed510916'
Michael Niedermayer [Fri, 3 Jan 2014 23:50:19 +0000 (00:50 +0100)]
Merge commit '5569146d48f06564e8fa393424782cceed510916'

* commit '5569146d48f06564e8fa393424782cceed510916':
  adx: check that the offset is not negative

See: 30bce34b6719ca99ad72c62e2fba3eade71f1eae
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'a6a2282c25abe43e352010a7c3fbc92994c0bc1c'
Michael Niedermayer [Fri, 3 Jan 2014 23:34:52 +0000 (00:34 +0100)]
Merge commit 'a6a2282c25abe43e352010a7c3fbc92994c0bc1c'

* commit 'a6a2282c25abe43e352010a7c3fbc92994c0bc1c':
  rv30: fix extradata size check.

Conflicts:
libavcodec/rv30.c

See: 09c5f990bc7629dfbee8c760fd485936c60a7b40
Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge commit 'feded990e3ef9af4a0b827d5b6d8fe86f0b94942'
Michael Niedermayer [Fri, 3 Jan 2014 23:16:08 +0000 (00:16 +0100)]
Merge commit 'feded990e3ef9af4a0b827d5b6d8fe86f0b94942'

* commit 'feded990e3ef9af4a0b827d5b6d8fe86f0b94942':
  mpegvideo: set reference/pict_type on generated reference frames

Conflicts:
libavcodec/mpegvideo.c

The picture type is left at P type as it was explicitly set before

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/utils: fix order of buffers in timestamp update code
Michael Niedermayer [Fri, 3 Jan 2014 22:27:28 +0000 (23:27 +0100)]
avformat/utils: fix order of buffers in timestamp update code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mpegvideo: fix ac/dc_val and coded_block table sizes
Michael Niedermayer [Fri, 3 Jan 2014 19:20:12 +0000 (20:20 +0100)]
avcodec/mpegvideo: fix ac/dc_val and coded_block table sizes

With interlaced vc1 it was possible that accesses could happen outside these
tables before this.

Regression since 017e234c204f8ffb5f85a073231247881be1ac6f
Reproduced with a sample from Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Fixes (again) : 480i30__codec_WVC1__mode_2__framerate_29.970__type_2__preproc_17.SIGFPE.bfa.390.wmv
No releases are affected by this

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavutil/mathematics: fix 2 typos in the doxy
Michael Niedermayer [Fri, 3 Jan 2014 15:54:06 +0000 (16:54 +0100)]
avutil/mathematics: fix 2 typos in the doxy

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodoc/faq: remove "-profile option fails when encoding H.264 video with AAC audio"...
Stefano Sabatini [Fri, 3 Jan 2014 12:38:49 +0000 (13:38 +0100)]
doc/faq: remove "-profile option fails when encoding H.264 video with AAC audio" entry

The error was fixed in commit ce9bd303794fcc94aa232c116bece13c5994b55b
more than one year ago, and does not affect all the currently supported
versions.

In particular, fix trac issue #1535.

10 years agodoc/ffserver: mention how to access streams through RTSP
Stefano Sabatini [Fri, 3 Jan 2014 12:10:51 +0000 (13:10 +0100)]
doc/ffserver: mention how to access streams through RTSP

10 years agomathematics: remove asserts from av_rescale_rnd()
Anton Khirnov [Thu, 12 Dec 2013 06:34:13 +0000 (07:34 +0100)]
mathematics: remove asserts from av_rescale_rnd()

It is a public function, it must not assert on its parameters.

10 years agoeacmv: check the framerate before setting it.
Anton Khirnov [Thu, 12 Dec 2013 06:31:26 +0000 (07:31 +0100)]
eacmv: check the framerate before setting it.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agoadx: check that the offset is not negative
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
adx: check that the offset is not negative

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agorv30: fix extradata size check.
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
rv30: fix extradata size check.

It has been checking the number of bits in the offset instead of the
actual offset.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agompegvideo: set reference/pict_type on generated reference frames
Anton Khirnov [Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)]
mpegvideo: set reference/pict_type on generated reference frames

Otherwise the generic code will unref them, which can then result in
last_picture_ptr == current_picture_ptr, which causes deadlocks at least
in rv40.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org

10 years agoavcodec/avcodec: document that some video decoders do not support linesizes changing...
Michael Niedermayer [Fri, 3 Jan 2014 14:11:38 +0000 (15:11 +0100)]
avcodec/avcodec: document that some video decoders do not support linesizes changing between frames.

Omission in the documentation found by: Sebastian Dröge
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/bink: display audio track ids
Peter Ross [Fri, 3 Jan 2014 11:18:36 +0000 (22:18 +1100)]
avformat/bink: display audio track ids

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMAINTAINERS: add myself for spdif* and hls.c
Anssi Hannula [Fri, 3 Jan 2014 12:55:52 +0000 (14:55 +0200)]
MAINTAINERS: add myself for spdif* and hls.c

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
10 years agoavformat/hls: decouple playlists from variants
Anssi Hannula [Fri, 27 Dec 2013 11:01:10 +0000 (13:01 +0200)]
avformat/hls: decouple playlists from variants

Not all "sub-playlists" are variant playlists (containing the same
content with a different bitrate, etc) in the current version of the HLS
specification. They can now also be alternative renditions, containing
e.g. alternative audio tracks etc.

Decouple playlists from variants to prepare for handling the new
features.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
10 years agoavformat/http: always allow no-op seek
Anssi Hannula [Mon, 30 Dec 2013 10:46:32 +0000 (12:46 +0200)]
avformat/http: always allow no-op seek

This also allows checking stream position as per ffurl_seek() doxy.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
10 years agoavformat/bink: seek to first frame
Peter Ross [Fri, 3 Jan 2014 10:31:11 +0000 (21:31 +1100)]
avformat/bink: seek to first frame

Some rare bink files include unused bytes between the frame table index
and first frame data.

Fixes ticket #3266.

This patch has also been tested with non-seekable protocols.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agomatroskadec: Export the MuxingApp element value as metadata
James Almer [Sun, 24 Nov 2013 08:31:48 +0000 (05:31 -0300)]
matroskadec: Export the MuxingApp element value as metadata

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoffmpeg: do not fail when options are routed to libavformat and libavcodec and only...
Michael Niedermayer [Fri, 3 Jan 2014 01:16:35 +0000 (02:16 +0100)]
ffmpeg: do not fail when options are routed to libavformat and libavcodec and only one can be used

Fixes setting frame_size for pulse demuxer

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoh264: Clear ERContext.cur_pic when unref'ing current picture.
Dale Curtis [Thu, 2 Jan 2014 22:29:38 +0000 (14:29 -0800)]
h264: Clear ERContext.cur_pic when unref'ing current picture.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
10 years agoavcodec/mace: check buffer size
Michael Niedermayer [Thu, 2 Jan 2014 18:10:57 +0000 (19:10 +0100)]
avcodec/mace: check buffer size

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f9d2775e090_8782_surge-2-8-MAC3.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agomp3on4: fail when the header check fails
Michael Niedermayer [Thu, 2 Jan 2014 17:45:36 +0000 (18:45 +0100)]
mp3on4: fail when the header check fails

It seems the code assumed that when one out of multiple blocks fail
some span of time is correct, its not, its some channels
that are correct

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f44a03ba3ce_5692_id5_1.mp4
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/aacps: fix number of bands used with ipd/opd
Michael Niedermayer [Thu, 2 Jan 2014 16:46:21 +0000 (17:46 +0100)]
avcodec/aacps: fix number of bands used with ipd/opd

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f861d16355f_1664_File1_fixed.aac
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/iff: ensure that runs with insufficient input dont leave uninitialized bytes...
Michael Niedermayer [Thu, 2 Jan 2014 13:50:48 +0000 (14:50 +0100)]
avcodec/iff: ensure that runs with insufficient input dont leave uninitialized bytes in the output

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7fa0dea15eae_8988_test.iff
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/bink: recognize bink2 files
Peter Ross [Thu, 2 Jan 2014 08:34:45 +0000 (19:34 +1100)]
avformat/bink: recognize bink2 files

Support demuxing of audio streams in bink2 files.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodoc/muxers/hls: change "can used" to "can be used"
Stefano Sabatini [Thu, 2 Jan 2014 08:32:37 +0000 (09:32 +0100)]
doc/muxers/hls: change "can used" to "can be used"

Spotted-by: Alexander Strasser <eclipse7@gmx.net>
10 years agofate: Add OggVP8 demux test
James Almer [Tue, 31 Dec 2013 08:07:03 +0000 (05:07 -0300)]
fate: Add OggVP8 demux test

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoatrac3plus: Add forgotten initialization of an internal struct
Maxim Poliakovski [Wed, 1 Jan 2014 22:25:15 +0000 (23:25 +0100)]
atrac3plus: Add forgotten initialization of an internal struct

This patch also fixes trac ticket 3254.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodoc/doxy: remove unused files
Michael Niedermayer [Fri, 27 Dec 2013 12:24:48 +0000 (13:24 +0100)]
doc/doxy: remove unused files

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 2 Jan 2014 00:53:31 +0000 (01:53 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Makefile: add html template files to the doxygen deps

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodoc/muxers/segment: clarify ambiguos reference
Stefano Sabatini [Wed, 1 Jan 2014 23:33:01 +0000 (00:33 +0100)]
doc/muxers/segment: clarify ambiguos reference

Replace "The segmenter muxer" with "This muxer". The "segmenter muxer"
was never defined before, and thus it is a slightly ambiguous term.

10 years agodoc/muxers/segment: reference hls muxer
Stefano Sabatini [Wed, 1 Jan 2014 23:31:49 +0000 (00:31 +0100)]
doc/muxers/segment: reference hls muxer

10 years agodoc/muxers/hls: extend documentation
Stefano Sabatini [Wed, 1 Jan 2014 23:30:37 +0000 (00:30 +0100)]
doc/muxers/hls: extend documentation

In particular, reference segment muxer and clarify difference between
segment filename number and playlist sequence number.

Should fix trac ticket #2601.

10 years agoavformat/mux: fix "no tag found" check in validate_codec_tag()
Michael Niedermayer [Wed, 1 Jan 2014 21:29:06 +0000 (22:29 +0100)]
avformat/mux: fix "no tag found" check in validate_codec_tag()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/vqf: check avio_read()s return value more completely
Michael Niedermayer [Wed, 1 Jan 2014 14:29:20 +0000 (15:29 +0100)]
avformat/vqf: check avio_read()s return value more completely

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f180a523a71_5052_esvorbei_extd.vqf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/vqavideo: use av_mallocz() for decode_buffer()
Michael Niedermayer [Wed, 1 Jan 2014 14:29:20 +0000 (15:29 +0100)]
avcodec/vqavideo: use av_mallocz() for decode_buffer()

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f62eaba897d_595_4D6EFA92.VQA
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMakefile: add html template files to the doxygen deps
Anton Khirnov [Mon, 16 Dec 2013 08:30:17 +0000 (09:30 +0100)]
Makefile: add html template files to the doxygen deps

10 years agoconfigure: bump year number 2013 -> 2014
Stefano Sabatini [Wed, 1 Jan 2014 12:04:07 +0000 (13:04 +0100)]
configure: bump year number 2013 -> 2014

Happy new year!

10 years agodoc/protocols/rtsp, lavf/rtsp: fix/extend options documentation
Stefano Sabatini [Sun, 29 Dec 2013 15:43:48 +0000 (16:43 +0100)]
doc/protocols/rtsp, lavf/rtsp: fix/extend options documentation

10 years agoffplay: add documentation for "s" key
Werner Robitza [Sun, 29 Dec 2013 17:42:56 +0000 (18:42 +0100)]
ffplay: add documentation for "s" key

With various edits suggested by Stefano Sabatini and Clément Bœsch.

10 years agoavcodec/binkaudio: clear padding area of packet_buffer
Michael Niedermayer [Wed, 1 Jan 2014 02:30:16 +0000 (03:30 +0100)]
avcodec/binkaudio: clear padding area of packet_buffer

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f0dba198b34_2970_Snd0a3a2ad4.dee
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodxva2_vc1: signal skipped p frames
Hendrik Leppkes [Thu, 12 Dec 2013 20:12:53 +0000 (21:12 +0100)]
dxva2_vc1: signal skipped p frames

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodxva2_vc1: fix signaling of intensity compensation values
Hendrik Leppkes [Thu, 12 Dec 2013 20:12:52 +0000 (21:12 +0100)]
dxva2_vc1: fix signaling of intensity compensation values

lumscale/lumshift don't get reset back to their default values if
intensity compensation is not active, and a wrong signaling here can
cause playback issues.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agovc1: set chromaformat = 1 for simple/main profile
Hendrik Leppkes [Thu, 12 Dec 2013 20:12:51 +0000 (21:12 +0100)]
vc1: set chromaformat = 1 for simple/main profile

1 is the only valid value for VC-1/WMV3, and setting it here makes sure
no invalid value is send to a hw accelerator, for example.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodxva2_vc1: set PQUANT as described by the 2010 spec update
Hendrik Leppkes [Thu, 12 Dec 2013 20:12:50 +0000 (21:12 +0100)]
dxva2_vc1: set PQUANT as described by the 2010 spec update

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodxva2_vc1: set bfraction in slice info according to spec
Hendrik Leppkes [Thu, 12 Dec 2013 20:12:49 +0000 (21:12 +0100)]
dxva2_vc1: set bfraction in slice info according to spec

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agodxva2_vc1: set refdist value according to spec
Hendrik Leppkes [Thu, 12 Dec 2013 20:12:48 +0000 (21:12 +0100)]
dxva2_vc1: set refdist value according to spec

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/mpegvideo_enc: implement frame skip score normalization
Michael Niedermayer [Fri, 20 Dec 2013 13:09:58 +0000 (14:09 +0100)]
avcodec/mpegvideo_enc: implement frame skip score normalization

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/hevc: clear HEVClc when its deallocated in hevc_decode_free()
Michael Niedermayer [Tue, 31 Dec 2013 14:18:47 +0000 (15:18 +0100)]
avcodec/hevc: clear HEVClc when its deallocated in hevc_decode_free()

Fixes reading freed memory
Fixes: asan_heap-uaf_1abf8ef_3987_NUT_A_ericsson_4.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/version: bump micro for addition of internal field to AVStream
Michael Niedermayer [Tue, 31 Dec 2013 13:16:27 +0000 (14:16 +0100)]
avformat/version: bump micro for addition of internal field to AVStream

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat: dont run update_initial_duration() twice
Michael Niedermayer [Tue, 31 Dec 2013 07:36:14 +0000 (08:36 +0100)]
avformat: dont run update_initial_duration() twice

This should avoid floods of first_dts not matching debug messages

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoAvoid using empty macro arguments.
Reimar Döffinger [Mon, 30 Dec 2013 11:10:35 +0000 (12:10 +0100)]
Avoid using empty macro arguments.

These are not supported by all compilers (gcc 2.95 but also older SPARC
compilers, see gcc bug #33304 for example), and there is no real need for them.
One use of this feature remains in libavdevice/v4l2.c which can't be
replaced quite as easily.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years agoavformat/id3v2: allow ID3 parsing without AVFormatContext
Anssi Hannula [Mon, 30 Dec 2013 08:02:59 +0000 (10:02 +0200)]
avformat/id3v2: allow ID3 parsing without AVFormatContext

Add ff_id3v2_read_dict() for parsing without AVFormatContext, but
instead with AVIOContext and AVDictionary.

AVFormatContext is still used for logging, if available.

Chapter parsing is the only non-logging functionality that actually
needs AVFormatContext, and AFAICS it should be modified to write the
data to ID3v2ExtraMeta first, from where it can be implanted to
AVFormatContext by a separate function (like it is done with
read_apic() and ff_id3v2_parse_apic()). That is outside the scope of
this patch, though.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
10 years agoavformat/http: allow the caller to select a request range
Anssi Hannula [Sat, 28 Dec 2013 07:41:24 +0000 (09:41 +0200)]
avformat/http: allow the caller to select a request range

Add AVOptions for setting the initial offset and the ending offset, so
they can be used for setting an appropriate Range header.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
10 years agoavformat/id3v2: parse ID3 Private frames as extra metadata
Anssi Hannula [Mon, 30 Dec 2013 08:09:17 +0000 (10:09 +0200)]
avformat/id3v2: parse ID3 Private frames as extra metadata

They are used in HLS.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
10 years agoavformat/mpegts: demux timed ID3 metadata
Anssi Hannula [Mon, 30 Dec 2013 07:50:46 +0000 (09:50 +0200)]
avformat/mpegts: demux timed ID3 metadata

Used in some HLS streams ("Timed Metadata for HTTP Live Streaming").

This is just ID3 tags at arbitrary stream positions, but I still added
"timed" to the codec name to avoid confusion with regular non-stream ID3
tags.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
10 years agoavcodec/lagarith: check and propagate return value from init_get_bits8()
Michael Niedermayer [Mon, 30 Dec 2013 13:27:04 +0000 (14:27 +0100)]
avcodec/lagarith: check and propagate return value from init_get_bits8()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/lagarith: use init_get_bits8()
Michael Niedermayer [Mon, 30 Dec 2013 12:49:49 +0000 (13:49 +0100)]
avcodec/lagarith: use init_get_bits8()

Suggested-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/lagarith: reenable buggy lag_decode_zero_run_line()
Michael Niedermayer [Mon, 30 Dec 2013 12:47:34 +0000 (13:47 +0100)]
avcodec/lagarith: reenable buggy lag_decode_zero_run_line()

This is to prevent regressions in case the old code was able to partly
decode frames (no way to say without a testcase)
Add a memset to prevent use of uninitialized memory until we have a
testcase and can test/fix it

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'cigaes/master'
Michael Niedermayer [Mon, 30 Dec 2013 12:29:47 +0000 (13:29 +0100)]
Merge remote-tracking branch 'cigaes/master'

* cigaes/master:
  lavc/mjpegenc: use proper error codes.
  lavc/mjpegenc: check av_frame_alloc() failure.
  lavc/libopenjpegenc: check av_frame_alloc() failure.
  lavc/diracdec: check av_frame_alloc() failure.
  lavc/utils: check av_frame_alloc() failure.
  ffprobe: check av_frame_alloc() failure.
  lavc/ffwavesynth: fix dependency sizeof(AVFrame).

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoaf_aresample: remove only use of array compound literals with non-const initializers...
Reimar Döffinger [Sun, 29 Dec 2013 23:52:48 +0000 (00:52 +0100)]
af_aresample: remove only use of array compound literals with non-const initializers in FFmpeg.

Some older compilers might have particular trouble with them,
and they do not really seem worth it to me.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years agoconfigure: check that pthreads is compatible with compiler.
Reimar Döffinger [Sun, 29 Dec 2013 23:47:12 +0000 (00:47 +0100)]
configure: check that pthreads is compatible with compiler.

In particular the mutex initialization for example won't actually
compile with e.g. gcc 2.95.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years agocompat: provide va_copy for old gcc versions.
Reimar Döffinger [Mon, 30 Dec 2013 11:14:06 +0000 (12:14 +0100)]
compat: provide va_copy for old gcc versions.

Since we have this compat/va_copy.h header already we might just as well make
use of it for more than one compiler.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 30 Dec 2013 10:23:32 +0000 (11:23 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavu: Move preprocessor macros in a separate file

Conflicts:
libavutil/avutil.h
libavutil/utils.c
libavutil/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agolavc/mjpegenc: use proper error codes.
Nicolas George [Sun, 29 Dec 2013 09:54:32 +0000 (10:54 +0100)]
lavc/mjpegenc: use proper error codes.

10 years agolavc/mjpegenc: check av_frame_alloc() failure.
Nicolas George [Sun, 29 Dec 2013 09:52:19 +0000 (10:52 +0100)]
lavc/mjpegenc: check av_frame_alloc() failure.

10 years agolavc/libopenjpegenc: check av_frame_alloc() failure.
Nicolas George [Sun, 29 Dec 2013 09:50:24 +0000 (10:50 +0100)]
lavc/libopenjpegenc: check av_frame_alloc() failure.

10 years agolavc/diracdec: check av_frame_alloc() failure.
Nicolas George [Sun, 29 Dec 2013 09:49:01 +0000 (10:49 +0100)]
lavc/diracdec: check av_frame_alloc() failure.

10 years agolavc/utils: check av_frame_alloc() failure.
Nicolas George [Sun, 29 Dec 2013 09:42:54 +0000 (10:42 +0100)]
lavc/utils: check av_frame_alloc() failure.

10 years agoffprobe: check av_frame_alloc() failure.
Nicolas George [Sun, 29 Dec 2013 09:37:58 +0000 (10:37 +0100)]
ffprobe: check av_frame_alloc() failure.

10 years agolavc/ffwavesynth: fix dependency sizeof(AVFrame).
Nicolas George [Sun, 29 Dec 2013 09:33:27 +0000 (10:33 +0100)]
lavc/ffwavesynth: fix dependency sizeof(AVFrame).

10 years agooggdec: add support for VP8 demuxing
James Almer [Wed, 25 Dec 2013 05:48:34 +0000 (02:48 -0300)]
oggdec: add support for VP8 demuxing

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'cehoyos/master'
Michael Niedermayer [Mon, 30 Dec 2013 01:12:49 +0000 (02:12 +0100)]
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Fix condition for transparency warning in xsub encoder.
  Allow hiding the banner.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/lagarith: fix init_get_bits() size in lag_decode_arith_plane()
Michael Niedermayer [Sun, 29 Dec 2013 22:38:20 +0000 (23:38 +0100)]
avcodec/lagarith: fix init_get_bits() size in lag_decode_arith_plane()

untested due to lack of sample

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/lagarith: fix src/src_size for esc_count < 8
Michael Niedermayer [Sun, 29 Dec 2013 22:38:20 +0000 (23:38 +0100)]
avcodec/lagarith: fix src/src_size for esc_count < 8

untested due to lack of sample

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavcodec/lagarith: disable lag_decode_zero_run_line() and ask for a sample
Michael Niedermayer [Sun, 29 Dec 2013 21:58:38 +0000 (22:58 +0100)]
avcodec/lagarith: disable lag_decode_zero_run_line() and ask for a sample

The code seems to have never been tested
fixing it should be quite easy but needs a sample/testcase

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f9a862dfabf_413_2889_assassin_OL.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoFix condition for transparency warning in xsub encoder.
Carl Eugen Hoyos [Sun, 29 Dec 2013 22:18:10 +0000 (23:18 +0100)]
Fix condition for transparency warning in xsub encoder.

10 years agoAllow hiding the banner.
Carl Eugen Hoyos [Sat, 28 Dec 2013 04:18:39 +0000 (05:18 +0100)]
Allow hiding the banner.

Fixes ticket #3246.

10 years agolavu: Move preprocessor macros in a separate file
Luca Barbato [Fri, 27 Dec 2013 01:57:48 +0000 (02:57 +0100)]
lavu: Move preprocessor macros in a separate file

And remove all the circular inclusions of avutil.h while at it.

10 years agoMerge remote-tracking branch 'cigaes/master'
Michael Niedermayer [Sun, 29 Dec 2013 20:11:25 +0000 (21:11 +0100)]
Merge remote-tracking branch 'cigaes/master'

* cigaes/master:
  lavd/xv: report if no adaptor present.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoMerge remote-tracking branch 'lukaszmluki/master'
Michael Niedermayer [Sun, 29 Dec 2013 20:10:59 +0000 (21:10 +0100)]
Merge remote-tracking branch 'lukaszmluki/master'

* lukaszmluki/master:
  lavf/libssh: improve authentication
  lavf/libssh: fix file mode

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agolavd/xv: report if no adaptor present.
Nicolas George [Sun, 29 Dec 2013 10:29:18 +0000 (11:29 +0100)]
lavd/xv: report if no adaptor present.

10 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Sun, 29 Dec 2013 15:32:43 +0000 (16:32 +0100)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: do not wait for the picture allocation to finish on exit
  ffplay: remove two unneeded av_free_packet calls
  ffplay: remove some unneded av_frame_unref calls
  ffplay: remove unneeded avcodec_get_frame_defaults
  ffplay: use precalculated frame size and bytes per sec values
  ffplay: precalculate audio output frame size and byte per sec

Merged-by: Michael Niedermayer <michaelni@gmx.at>
10 years agolavf/libssh: improve authentication
Lukasz Marek [Sat, 28 Dec 2013 18:34:29 +0000 (19:34 +0100)]
lavf/libssh: improve authentication

- Add authentication using keys
- Provide better message on fail

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
10 years agolavf/libssh: fix file mode
Lukasz Marek [Sat, 28 Dec 2013 18:33:21 +0000 (19:33 +0100)]
lavf/libssh: fix file mode

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
10 years agoavformat/wc3movie: Check strings before printing.
Michael Niedermayer [Sat, 21 Dec 2013 11:52:23 +0000 (12:52 +0100)]
avformat/wc3movie: Check strings before printing.

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f7812ca062f_2812_SC_32_part.MVE
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoavformat/siff: check avio_read() return value before returning packet
Michael Niedermayer [Sun, 29 Dec 2013 12:20:03 +0000 (13:20 +0100)]
avformat/siff: check avio_read() return value before returning packet

Fixes: /ld/michael/ffmpeg_uninit/ffmpeg_uninit/done/msan_uninit-mem_7fb3e0fa86e9_1980_INTRO_B.VB
Fixes use of uninitialized memory
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years agoffplay: do not wait for the picture allocation to finish on exit
Marton Balint [Sun, 29 Dec 2013 02:52:09 +0000 (03:52 +0100)]
ffplay: do not wait for the picture allocation to finish on exit

When SDL could not allocate a YUV overlay or open a window, the video thread
got locked up because it waited for the allocation to finish forever.

Reported-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
10 years agoffplay: remove two unneeded av_free_packet calls
Marton Balint [Wed, 25 Dec 2013 15:16:23 +0000 (16:16 +0100)]
ffplay: remove two unneeded av_free_packet calls

Signed-off-by: Marton Balint <cus@passwd.hu>
10 years agoffplay: remove some unneded av_frame_unref calls
Marton Balint [Wed, 25 Dec 2013 14:55:30 +0000 (15:55 +0100)]
ffplay: remove some unneded av_frame_unref calls

av_buffersrc_add_frame implicitly unreferences the added frame.

Signed-off-by: Marton Balint <cus@passwd.hu>
10 years agoffplay: remove unneeded avcodec_get_frame_defaults
Marton Balint [Wed, 25 Dec 2013 14:50:48 +0000 (15:50 +0100)]
ffplay: remove unneeded avcodec_get_frame_defaults

Signed-off-by: Marton Balint <cus@passwd.hu>
10 years agoffplay: use precalculated frame size and bytes per sec values
Marton Balint [Sun, 15 Dec 2013 19:00:45 +0000 (20:00 +0100)]
ffplay: use precalculated frame size and bytes per sec values

Signed-off-by: Marton Balint <cus@passwd.hu>
10 years agoffplay: precalculate audio output frame size and byte per sec
Marton Balint [Sun, 15 Dec 2013 18:51:32 +0000 (19:51 +0100)]
ffplay: precalculate audio output frame size and byte per sec

Signed-off-by: Marton Balint <cus@passwd.hu>
10 years agodoc/encoders: add wavpackenc doc
Timothy Gu [Wed, 18 Dec 2013 05:12:08 +0000 (21:12 -0800)]
doc/encoders: add wavpackenc doc

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years agodoc/encoders: reformat libwavpack documentation
Timothy Gu [Wed, 18 Dec 2013 05:11:06 +0000 (21:11 -0800)]
doc/encoders: reformat libwavpack documentation

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
10 years agoconfigure: remove git url check
Lukasz Marek [Mon, 9 Dec 2013 00:40:03 +0000 (01:40 +0100)]
configure: remove git url check

This part of the script doesn't check if git command is available and produce error if not.
It is 2 years since address changed and it is more reasonable to remove it than fix it.

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>