]> git.sesse.net Git - ffmpeg/log
ffmpeg
11 years agolavfi/psnr: rename 's' parameter to match documentation
Paul B Mahol [Tue, 9 Jul 2013 09:38:47 +0000 (09:38 +0000)]
lavfi/psnr: rename 's' parameter to match documentation

Also removes some irrelevant lines in documentation.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoffmpeg_opt: do not warn about unused gop_timecode
Michael Niedermayer [Tue, 9 Jul 2013 08:54:40 +0000 (10:54 +0200)]
ffmpeg_opt: do not warn about unused gop_timecode

The option is injected by generic code and being sometimes unused is normal.

Fixes Ticket2762

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 9 Jul 2013 08:07:01 +0000 (10:07 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  movenc: Rename the timestamp parameter to dts in write_hint_packets

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'a87a0acf9b5d27aad032e61eef4973e62a4a6830'
Michael Niedermayer [Tue, 9 Jul 2013 07:59:29 +0000 (09:59 +0200)]
Merge commit 'a87a0acf9b5d27aad032e61eef4973e62a4a6830'

* commit 'a87a0acf9b5d27aad032e61eef4973e62a4a6830':
  movenc: Make sure the RTP hint tracks have nondecreasing DTS

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/h264_ps: try to support Ambarella AVC
Michael Niedermayer [Tue, 9 Jul 2013 03:21:26 +0000 (05:21 +0200)]
avcodec/h264_ps: try to support Ambarella AVC

Fixes Ticket2763

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoWebM muxer writes WebVTT subtitle track
Matthew Heaney [Mon, 8 Jul 2013 23:25:30 +0000 (16:25 -0700)]
WebM muxer writes WebVTT subtitle track

The Matroska muxer now allows WebVTT subtitle tracks to be written
while in WebM muxing mode.

WebVTT subtitle tracks have four kinds: "subtitles", "captions",
"descriptions", and "metadata". Each text track kind has a distinct
Mastroska CodecID and track type, as described in the temporal
metadata guidelines here:

http://wiki.webmproject.org/webm-metadata/temporal-metadata/webvtt-in-webm

When the stream has codec id AV_CODEC_ID_WEBVTT, the stream packet is
serialized per the temporal metadata guidelines cited above. The
WebVTT cue is written as a Matroska block group. The block frame
comprises the WebVTT cue id, followed by the cue settings, followed by
the cue text.  (The block timestamp is synthesized from the cue
timestamp.)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/libvpxenc: make class names unique
Michael Niedermayer [Tue, 9 Jul 2013 00:57:05 +0000 (02:57 +0200)]
avcodec/libvpxenc: make class names unique

This should fix an infinite loop with -h full

Found-by: <Foofie>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffmpeg: Allow overriding ffservers input
Michael Niedermayer [Mon, 8 Jul 2013 23:48:29 +0000 (01:48 +0200)]
ffmpeg: Allow overriding ffservers input

Fixes Ticket1970

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffmpeg: move creation_time for ffserver setting up
Michael Niedermayer [Mon, 8 Jul 2013 23:40:11 +0000 (01:40 +0200)]
ffmpeg: move creation_time for ffserver setting up

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi: fix broken logic in metadata handling
Paul B Mahol [Mon, 8 Jul 2013 20:13:14 +0000 (20:13 +0000)]
lavfi: fix broken logic in metadata handling

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agompeg12dec: avoid reinitializtation on PS changes when possible.
Michael Niedermayer [Mon, 8 Jul 2013 19:46:20 +0000 (21:46 +0200)]
mpeg12dec: avoid reinitializtation on PS changes when possible.

Fixes Ticket2574

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agotests/fate/filter-audio: update asyncts reference
Michael Niedermayer [Mon, 8 Jul 2013 17:30:37 +0000 (19:30 +0200)]
tests/fate/filter-audio: update asyncts reference

The new reference matches the one used by qatar

Fixes: fate-filter-asyncts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi/rotate: switch to new drawutils
Paul B Mahol [Mon, 8 Jul 2013 15:12:11 +0000 (15:12 +0000)]
lavfi/rotate: switch to new drawutils

Get rid of ugly hacks, also add support for more pixel formats.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agolavfi/drawutils: fix planar rgb
Paul B Mahol [Mon, 8 Jul 2013 15:17:33 +0000 (15:17 +0000)]
lavfi/drawutils: fix planar rgb

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agolavfi/pad: use FFSIGN
Paul B Mahol [Mon, 8 Jul 2013 15:33:40 +0000 (15:33 +0000)]
lavfi/pad: use FFSIGN

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoavformat/mov: read stream bitrates from isml manifest
Alexandre Sicard [Mon, 8 Jul 2013 09:56:40 +0000 (11:56 +0200)]
avformat/mov: read stream bitrates from isml manifest

This allows to read a live isml movie and segment it using the
smoothstreaming muxer, which requires the bitrates to be known for each stream.

Signed-off-by: Alexandre Sicard <alexandre.sicard@smartjog.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agomp3dec: detect CBR and use CBR axiom to seek
Michael Niedermayer [Sun, 7 Jul 2013 11:15:32 +0000 (13:15 +0200)]
mp3dec: detect CBR and use CBR axiom to seek

This should also work reasonable with truncated and growing mp3s.
Fixes Ticket2590

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi: add psnr filter
Paul B Mahol [Sat, 6 Jul 2013 00:21:12 +0000 (00:21 +0000)]
lavfi: add psnr filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoswscale: treat gray as a fullrage (0-255) format
Michael Niedermayer [Sat, 6 Jul 2013 00:37:28 +0000 (02:37 +0200)]
swscale: treat gray as a fullrage (0-255) format

Fixes Ticket2684

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoCheck the return value of ff_rv34_decode_init() in rv30.c and rv40.c
Carl Eugen Hoyos [Sun, 7 Jul 2013 22:34:58 +0000 (00:34 +0200)]
Check the return value of ff_rv34_decode_init() in rv30.c and rv40.c

Avoids possible null pointer dereferences on oom.

Fixes ticket #2727.

11 years agomovenc: Rename the timestamp parameter to dts in write_hint_packets
Martin Storsjö [Sun, 7 Jul 2013 14:03:00 +0000 (17:03 +0300)]
movenc: Rename the timestamp parameter to dts in write_hint_packets

This matches its actual intended use better.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agomovenc: Make sure the RTP hint tracks have nondecreasing DTS
Martin Storsjö [Sun, 7 Jul 2013 13:55:26 +0000 (16:55 +0300)]
movenc: Make sure the RTP hint tracks have nondecreasing DTS

The RTP timestamps can be decreasing for codecs with B-frames. For
these cases, make sure the timestamps in the MP4 file track itself
are nondecreasing, and add an offset to the RTP packet hint instead
to produce the intended RTP timestamp.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agocmdutils: replace exit() by exit_program()
Michael Niedermayer [Mon, 8 Jul 2013 09:10:02 +0000 (11:10 +0200)]
cmdutils: replace exit() by exit_program()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffmpeg_opt: replace exit() by exit_program()
Michael Niedermayer [Mon, 8 Jul 2013 09:09:42 +0000 (11:09 +0200)]
ffmpeg_opt: replace exit() by exit_program()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffmpeg_filter: replace exit() by exit_program()
Michael Niedermayer [Mon, 8 Jul 2013 09:09:22 +0000 (11:09 +0200)]
ffmpeg_filter: replace exit() by exit_program()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 8 Jul 2013 03:15:10 +0000 (05:15 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  qdm2: check and reset dithering index per channel

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '76efedeadb1f6bf79020c44a71dd0cee13d932ad'
Michael Niedermayer [Mon, 8 Jul 2013 03:10:06 +0000 (05:10 +0200)]
Merge commit '76efedeadb1f6bf79020c44a71dd0cee13d932ad'

* commit '76efedeadb1f6bf79020c44a71dd0cee13d932ad':
  qdm2: formatting cosmetics

Conflicts:
libavcodec/qdm2.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'f054e309c58894450a5d18cce9799ef58aab9f14'
Michael Niedermayer [Mon, 8 Jul 2013 03:02:52 +0000 (05:02 +0200)]
Merge commit 'f054e309c58894450a5d18cce9799ef58aab9f14'

* commit 'f054e309c58894450a5d18cce9799ef58aab9f14':
  qdm2: use init_static_data
  westwood_vqa: do not free extradata on error in read_header

Conflicts:
libavformat/westwood_vqa.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'c4abc9098cacb227dba39bac6aea16b2bceba0d0'
Michael Niedermayer [Mon, 8 Jul 2013 02:48:39 +0000 (04:48 +0200)]
Merge commit 'c4abc9098cacb227dba39bac6aea16b2bceba0d0'

* commit 'c4abc9098cacb227dba39bac6aea16b2bceba0d0':
  vqavideo: check the version

Conflicts:
libavcodec/vqavideo.c

See: b226af39107f09cd650875388250f4968eea54db

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '636ced8e1dc8248a1353b416240b93d70ad03edb'
Michael Niedermayer [Mon, 8 Jul 2013 02:34:11 +0000 (04:34 +0200)]
Merge commit '636ced8e1dc8248a1353b416240b93d70ad03edb'

* commit '636ced8e1dc8248a1353b416240b93d70ad03edb':
  cmdutils: wrap exit explicitly

Conflicts:
avprobe.c
cmdutils.c
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '21732063a346475eb22c332b27e8216b79f9ad4a'
Michael Niedermayer [Mon, 8 Jul 2013 02:08:07 +0000 (04:08 +0200)]
Merge commit '21732063a346475eb22c332b27e8216b79f9ad4a'

* commit '21732063a346475eb22c332b27e8216b79f9ad4a':
  movenc: K&R formatting cosmetics

Conflicts:
libavformat/movenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '38e9585de993c32899588ab037180f2c930ce74c'
Michael Niedermayer [Mon, 8 Jul 2013 01:41:33 +0000 (03:41 +0200)]
Merge commit '38e9585de993c32899588ab037180f2c930ce74c'

* commit '38e9585de993c32899588ab037180f2c930ce74c':
  Makefile: Remove stray tabs
  vp8: Wait for prev_frame to parse segment_map before reading it
  yuv4mpeg: Correctly round chroma up for odd luma sizes
  rmdec: Use the AVIOContext given as parameter in rm_read_metadata()
  avio: Handle AVERROR_EOF in the same way as the return value 0

Conflicts:
libavformat/rmdec.c
libavformat/yuv4mpeg.c

No change as all the commits where already in before

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat_find_stream_info: fallback to timestamps in analyzeduration check in more...
Michael Niedermayer [Mon, 8 Jul 2013 00:19:28 +0000 (02:19 +0200)]
avformat_find_stream_info: fallback to timestamps in analyzeduration check in more cases

This fixes speex in rtmp
Fixes Ticket2409

the nellymoser in flv case actually needs larger analyzeduration. The code
previously just failed to calculate the duration

If this causes any problems, like premature analyze/probe end, please report!

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agozmbvenc: remove unused AVFrame from encoder private context
Paul B Mahol [Sun, 7 Jul 2013 23:50:54 +0000 (23:50 +0000)]
zmbvenc: remove unused AVFrame from encoder private context

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agozmbvenc: do not set avctx->coded_frame
Paul B Mahol [Sun, 7 Jul 2013 23:45:17 +0000 (23:45 +0000)]
zmbvenc: do not set avctx->coded_frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agogif: remove unused AVFrame from encoder private context
Paul B Mahol [Sun, 7 Jul 2013 23:06:06 +0000 (23:06 +0000)]
gif: remove unused AVFrame from encoder private context

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agogif: do not set avctx->coded_frame
Paul B Mahol [Sun, 7 Jul 2013 22:56:21 +0000 (22:56 +0000)]
gif: do not set avctx->coded_frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoqdm2: check and reset dithering index per channel
Luca Barbato [Thu, 27 Jun 2013 00:50:52 +0000 (02:50 +0200)]
qdm2: check and reset dithering index per channel

Checking per subband would have the index exceed the
dithering noise table size.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
11 years agoqdm2: formatting cosmetics
Luca Barbato [Thu, 27 Jun 2013 00:49:15 +0000 (02:49 +0200)]
qdm2: formatting cosmetics

Apply the usual style plus drop few unnecessary return at the end
of void functions.

11 years agoqdm2: use init_static_data
Luca Barbato [Thu, 27 Jun 2013 00:20:59 +0000 (02:20 +0200)]
qdm2: use init_static_data

11 years agowestwood_vqa: do not free extradata on error in read_header
Luca Barbato [Thu, 27 Jun 2013 02:30:20 +0000 (04:30 +0200)]
westwood_vqa: do not free extradata on error in read_header

The extradata is already freed by avformat_open_input on
failure.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
11 years agovqavideo: check the version
Luca Barbato [Thu, 27 Jun 2013 01:19:05 +0000 (03:19 +0200)]
vqavideo: check the version

Prevent out of buffer write.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
11 years agocmdutils: wrap exit explicitly
Luca Barbato [Sat, 6 Jul 2013 23:52:51 +0000 (01:52 +0200)]
cmdutils: wrap exit explicitly

Some C runtime implementations deadlock when calling threading functions
on the atexit() handler.

Use a simpler wrapper similar to av_log to call the cleanup function
before exit.

Bug-Id: 523

11 years agomovenc: K&R formatting cosmetics
Martin Storsjö [Sun, 7 Jul 2013 11:59:47 +0000 (14:59 +0300)]
movenc: K&R formatting cosmetics

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoMakefile: Remove stray tabs
Michael Niedermayer [Sun, 7 Jul 2013 09:56:02 +0000 (11:56 +0200)]
Makefile: Remove stray tabs

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agovp8: Wait for prev_frame to parse segment_map before reading it
Ronald S. Bultje [Sun, 23 Jun 2013 04:16:11 +0000 (21:16 -0700)]
vp8: Wait for prev_frame to parse segment_map before reading it

This fixes occasional failures of vp8-test-vector-010 with frame-level
multithreading enabled.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoyuv4mpeg: Correctly round chroma up for odd luma sizes
Ronald S. Bultje [Mon, 24 Jun 2013 23:13:58 +0000 (19:13 -0400)]
yuv4mpeg: Correctly round chroma up for odd luma sizes

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agormdec: Use the AVIOContext given as parameter in rm_read_metadata()
Michael Niedermayer [Mon, 1 Jul 2013 21:38:08 +0000 (23:38 +0200)]
rmdec: Use the AVIOContext given as parameter in rm_read_metadata()

This fixes crashes when playing back certain RealRTSP streams.

When invoked from the RTP depacketizer, the full realmedia
demuxer isn't invoked, but only certain functions from it, where
a separate AVIOContext is passed in as parameter (for the buffer
containing the data to parse). The functions called from within
those entry points should only be using that parameter, not
s->pb. In the depacketizer case, s is the RTSP context, where ->pb
is null.

Cc: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoavio: Handle AVERROR_EOF in the same way as the return value 0
Michael Niedermayer [Mon, 24 Jun 2013 12:23:44 +0000 (14:23 +0200)]
avio: Handle AVERROR_EOF in the same way as the return value 0

This makes sure the ffurl_read_complete function actually
returns the number of bytes read, as the documentation of the
function says, even if the underlying protocol uses AVERROR_EOF
instead of 0.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agowtv: Mark attachment with a negative stream id
Luca Barbato [Mon, 24 Jun 2013 16:12:24 +0000 (18:12 +0200)]
wtv: Mark attachment with a negative stream id

A sid 0 would be mismatched to the attachment.

Prevent NULL pointer dereference.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
11 years agoavprobe: rename the prettyprint structures
Luca Barbato [Fri, 21 Jun 2013 12:47:01 +0000 (14:47 +0200)]
avprobe: rename the prettyprint structures

11 years agodxa: make code independent of sizeof(AVFrame)
Paul B Mahol [Sat, 6 Jul 2013 16:30:11 +0000 (16:30 +0000)]
dxa: make code independent of sizeof(AVFrame)

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agommsh: reimplement seeking
Michael Niedermayer [Sun, 7 Jul 2013 16:39:07 +0000 (18:39 +0200)]
mmsh: reimplement seeking

Fixes Ticket2682

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat_find_stream_info: use fps_dts as last resort to determine duration
Michael Niedermayer [Sun, 7 Jul 2013 13:03:12 +0000 (15:03 +0200)]
avformat_find_stream_info: use fps_dts as last resort to determine duration

Fixes long delay with some hardware generated h264 in ts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat/mp3dec: read TOC even if not all needed information is available
Michael Niedermayer [Sun, 7 Jul 2013 10:50:41 +0000 (12:50 +0200)]
avformat/mp3dec: read TOC even if not all needed information is available

This fixes hyothetical bugs with parsing of elements after the TOC

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat/mp3dec: read xing toc independant of usetoc, only skip filling index if...
Michael Niedermayer [Sun, 7 Jul 2013 10:37:07 +0000 (12:37 +0200)]
avformat/mp3dec: read xing toc independant of usetoc, only skip filling index if requested

Fixes hypothetical parsing bug with -usetoc 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat/Makefile: remove stray tab
Michael Niedermayer [Sun, 7 Jul 2013 09:56:02 +0000 (11:56 +0200)]
avformat/Makefile: remove stray tab

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 7 Jul 2013 09:48:05 +0000 (11:48 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  wtv: Mark attachment with a negative stream id

Conflicts:
libavformat/wtv.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit 'a4baf96abd64cda68e3e4692b182bdf60745a14d'
Michael Niedermayer [Sun, 7 Jul 2013 09:35:59 +0000 (11:35 +0200)]
Merge commit 'a4baf96abd64cda68e3e4692b182bdf60745a14d'

* commit 'a4baf96abd64cda68e3e4692b182bdf60745a14d':
  avprobe: rename the prettyprint structures
  tools: Wording and formatting cosmetics

Conflicts:
avprobe.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '6516632967da5e6bd7d6136e8678f826669ed26e'
Michael Niedermayer [Sun, 7 Jul 2013 09:26:28 +0000 (11:26 +0200)]
Merge commit '6516632967da5e6bd7d6136e8678f826669ed26e'

* commit '6516632967da5e6bd7d6136e8678f826669ed26e':
  tests: Only run noproxy test if networking is enabled
  fifo: K&R formatting cosmetics

Conflicts:
libavformat/Makefile
libavutil/fifo.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '4e7f0b082d8c4b360312216b9241bec65ff63b35'
Michael Niedermayer [Sun, 7 Jul 2013 08:59:19 +0000 (10:59 +0200)]
Merge commit '4e7f0b082d8c4b360312216b9241bec65ff63b35'

* commit '4e7f0b082d8c4b360312216b9241bec65ff63b35':
  kmvc: Clip pixel position to valid range

The added clip should make no difference, there are already checks for
the index.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '8f689770548c86151071ef976cf9b6998ba21c2a'
Michael Niedermayer [Sun, 7 Jul 2013 08:53:20 +0000 (10:53 +0200)]
Merge commit '8f689770548c86151071ef976cf9b6998ba21c2a'

* commit '8f689770548c86151071ef976cf9b6998ba21c2a':
  kmvc: use fixed sized arrays in the context

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat/mov: Fix duration of fragmented mov
Michael Niedermayer [Sun, 7 Jul 2013 00:42:40 +0000 (02:42 +0200)]
avformat/mov: Fix duration of fragmented mov

Fixes Ticket2757

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agodct_unquantize_h263_intra_c: fix assert condition
Michael Niedermayer [Sat, 6 Jul 2013 23:39:43 +0000 (01:39 +0200)]
dct_unquantize_h263_intra_c: fix assert condition

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolibavcodec/x86/mpegvideo: Move mmx functions under HAVE_MMX_INLINE
Michael Niedermayer [Sat, 6 Jul 2013 23:29:48 +0000 (01:29 +0200)]
libavcodec/x86/mpegvideo: Move mmx functions under HAVE_MMX_INLINE

should fix ticket2755

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/x86/vp3dsp_init: move mmx functions under HAVE_MMX_INLINE
Michael Niedermayer [Sat, 6 Jul 2013 23:29:18 +0000 (01:29 +0200)]
avcodec/x86/vp3dsp_init: move mmx functions under HAVE_MMX_INLINE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agooggparseskeleton: avoid header parsing failure
Michael Niedermayer [Sat, 6 Jul 2013 21:53:19 +0000 (23:53 +0200)]
oggparseskeleton: avoid header parsing failure

Based on description by James Almer and the xiph wiki

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agonutdec: use ff_find_last_ts()
Michael Niedermayer [Sat, 6 Jul 2013 20:05:35 +0000 (22:05 +0200)]
nutdec: use ff_find_last_ts()

Fixes finding the duration for nut files that are truncated

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat/utils: factor ff_find_last_ts() out of ff_gen_search()
Michael Niedermayer [Sat, 6 Jul 2013 19:52:07 +0000 (21:52 +0200)]
avformat/utils: factor ff_find_last_ts() out of ff_gen_search()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agotools: Wording and formatting cosmetics
Diego Biurrun [Fri, 5 Jul 2013 15:42:37 +0000 (17:42 +0200)]
tools: Wording and formatting cosmetics

11 years agotests: Only run noproxy test if networking is enabled
Diego Biurrun [Tue, 2 Jul 2013 15:16:18 +0000 (17:16 +0200)]
tests: Only run noproxy test if networking is enabled

11 years agofifo: K&R formatting cosmetics
Luca Barbato [Sat, 6 Jul 2013 10:05:27 +0000 (12:05 +0200)]
fifo: K&R formatting cosmetics

11 years agokmvc: Clip pixel position to valid range
Luca Barbato [Mon, 1 Jul 2013 01:05:41 +0000 (03:05 +0200)]
kmvc: Clip pixel position to valid range

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
11 years agokmvc: use fixed sized arrays in the context
Luca Barbato [Mon, 1 Jul 2013 01:04:15 +0000 (03:04 +0200)]
kmvc: use fixed sized arrays in the context

Avoid some boilerplate code to dynamically allocate and then free the
buffers.

11 years agoreplace some deprecated defines
Paul B Mahol [Sat, 6 Jul 2013 05:37:31 +0000 (05:37 +0000)]
replace some deprecated defines

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agolavfi/blend: use dual input helpers
Paul B Mahol [Sat, 6 Jul 2013 03:40:30 +0000 (03:40 +0000)]
lavfi/blend: use dual input helpers

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agoavcodec/x86/cabac: Disable get_cabac_bypass_x86() on broken llvm/clang
Michael Niedermayer [Sat, 6 Jul 2013 14:07:09 +0000 (16:07 +0200)]
avcodec/x86/cabac: Disable get_cabac_bypass_x86() on broken llvm/clang

This should fix fate on these platforms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavcodec/x86/cabac: factorize broken llvm/clang check out
Michael Niedermayer [Sat, 6 Jul 2013 14:06:22 +0000 (16:06 +0200)]
avcodec/x86/cabac: factorize broken llvm/clang check out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agooggparseskeleton: Replace avpriv_report_missing_feature() with a normal av_log()...
James Almer [Sat, 6 Jul 2013 07:34:13 +0000 (04:34 -0300)]
oggparseskeleton: Replace avpriv_report_missing_feature() with a normal av_log() call

since there should not be more than one fisbone for a given stream.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agooggparseskeleton: Fix fisbone header parsing
James Almer [Sat, 6 Jul 2013 07:34:13 +0000 (04:34 -0300)]
oggparseskeleton: Fix fisbone header parsing

start_granule should be applied to the stream referenced in the fisbone packet, not to the
Skeleton stream.
This was broken in d1f05dd18375f2f8e68372edee11436927e43ba8 and produced bogus warnings about
multiple fisbone in the same stream on files with more than one stream.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoexamples/muxing: add support to audio resampling
Stefano Sabatini [Tue, 2 Jul 2013 14:28:47 +0000 (16:28 +0200)]
examples/muxing: add support to audio resampling

Allows to encode to output in case the destination sample format is
different from AV_SAMPLE_FMT_S16.

11 years agodoc/encoders: add libopus encoder doc
Timothy Gu [Sat, 6 Jul 2013 03:37:18 +0000 (20:37 -0700)]
doc/encoders: add libopus encoder doc

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 6 Jul 2013 10:08:43 +0000 (12:08 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  bitstream_filter: K&R formatting cosmetics

Conflicts:
libavcodec/bitstream_filter.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat/mp3dec: Add usetoc option to allow dlsabling the use of the xing TOC
Michael Niedermayer [Sat, 6 Jul 2013 03:34:36 +0000 (05:34 +0200)]
avformat/mp3dec: Add usetoc option to allow dlsabling the use of the xing TOC

The toc is inexact and not using it can thus make sense.
Using it is faster though, thus the opposite can similarly makes sense

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agotcp: Use a default timeout of 5 sec for opening a connection but not for receiving...
Michael Niedermayer [Fri, 5 Jul 2013 23:33:19 +0000 (01:33 +0200)]
tcp: Use a default timeout of 5 sec for opening a connection but not for receiving packets

This should be closer to how tcp behaved longer ago and should
fix the issue with idle connections timing out.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoff_network_wait_fd_timeout: do not break with timeout < 0
Michael Niedermayer [Fri, 5 Jul 2013 23:31:37 +0000 (01:31 +0200)]
ff_network_wait_fd_timeout: do not break with timeout < 0

Most code treats timeout < 0 like 0 already

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agotcp: Fix the default timeout
Michael Niedermayer [Fri, 5 Jul 2013 21:34:21 +0000 (23:34 +0200)]
tcp: Fix the default timeout

Fixes Ticket2694

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat/avidec: Fix incorrect detection of badly interleaved avi
Nigel Touati-Evans [Thu, 4 Jul 2013 15:51:32 +0000 (16:51 +0100)]
avformat/avidec: Fix incorrect detection of badly interleaved avi

The method guess_ni_flag needs to divide timestamps in the index
by sample_size if it is set in order to compare different streams correctly.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoADPCM IMA WAV 2, 3 and 5 bits decoder
Paul B Mahol [Sat, 1 Dec 2012 14:52:22 +0000 (14:52 +0000)]
ADPCM IMA WAV 2, 3 and 5 bits decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agobitstream_filter: K&R formatting cosmetics
Luca Barbato [Fri, 5 Jul 2013 13:35:30 +0000 (15:35 +0200)]
bitstream_filter: K&R formatting cosmetics

11 years agoget_bits: add get_bits_le()
Paul B Mahol [Thu, 4 Jul 2013 19:54:43 +0000 (19:54 +0000)]
get_bits: add get_bits_le()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agolavfi/delogo: band width must be at least 1
Jean Delvare [Fri, 5 Jul 2013 12:26:36 +0000 (14:26 +0200)]
lavfi/delogo: band width must be at least 1

We need at least one pixel around the logo to use as known points to
interpolate from. So properly declare the band/t attribute has having
a minimum value of 1.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi/delogo: option show shouldn't affect band
Jean Delvare [Fri, 5 Jul 2013 12:25:06 +0000 (14:25 +0200)]
lavfi/delogo: option show shouldn't affect band

Options "show" and "band" are unrelated and should thus be
independent. However, setting "show" to 1 currently resets "band" to
its default value of 4. While this is documented, this still
surprising and confusing IMHO.

Change this behavior and make "show" and "band" independent from each
other. Update the documentation accordingly.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi/blackdetect: support 2 more pixels formats
Paul B Mahol [Fri, 5 Jul 2013 15:29:13 +0000 (15:29 +0000)]
lavfi/blackdetect: support 2 more pixels formats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agolavfi/cropdetect: export cropdetect info to frame metadata
Paul B Mahol [Fri, 5 Jul 2013 15:07:20 +0000 (15:07 +0000)]
lavfi/cropdetect: export cropdetect info to frame metadata

Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years agolavfi/delogo: remember left and right samples when interpolating
Jean Delvare [Fri, 5 Jul 2013 08:32:57 +0000 (10:32 +0200)]
lavfi/delogo: remember left and right samples when interpolating

The left and right samples are the same for the whole line, so store
their values and don't recompute them for every iteration of "y".

This simple optimization results in a speed improvement between 15%
and 20% in my tests (depending on the logo geometry.)

Result is obviously the same.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi/delogo: don't recompute the same difference again and again
Jean Delvare [Fri, 5 Jul 2013 08:23:18 +0000 (10:23 +0200)]
lavfi/delogo: don't recompute the same difference again and again

The top left hand corner pixel coordinates are already stored in
logo_x1 and logo_y1 so don't recompute each of them 6 times for every
iteration.

This is a simple code optimization, result is obviously the same. The
performance gain is small (about 2% in my tests) but still good to
have, and the new code is clearer.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Reviewed-by; Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolibavcodec: use 64bit counter in deprecated audio encoder API to prevent problems...
Peter Große [Thu, 4 Jul 2013 17:02:21 +0000 (19:02 +0200)]
libavcodec: use 64bit counter in deprecated audio encoder API to prevent problems regarding negative dts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 5 Jul 2013 10:50:02 +0000 (12:50 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  compat: wrap math.h to avoid AIX-specific clashes

Conflicts:
configure

See: bf18abb2eb79c00c69f6f83ede64536e3297793c0915b531bc62440914710d2989813563b0446c5e

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge commit '0420c810ceb430003f9f2793c5cfa1fe84657f3d'
Michael Niedermayer [Fri, 5 Jul 2013 10:37:13 +0000 (12:37 +0200)]
Merge commit '0420c810ceb430003f9f2793c5cfa1fe84657f3d'

* commit '0420c810ceb430003f9f2793c5cfa1fe84657f3d':
  log: pass the correct parameters to missing_feature_sample

Conflicts:
libavutil/log.c

See: 572e38a513139b21c35acfef13aa7c4e307ab648

Merged-by: Michael Niedermayer <michaelni@gmx.at>