libav.git
10 years agoMove the probe loop from av_open_input_file() into its own method
Micah F. Galizia [Sun, 14 Mar 2010 22:40:16 +0000 (22:40 +0000)]
Move the probe loop from av_open_input_file() into its own method
av_probe_input_buffer() so that it can be reused. Here are a few
differences to the original way things were probed:

- maximum probe buffer size can be specified as a parameter.

- offset within the stream to probe from can be specified as a parameter.

- instead of seeking back to the start each time a probe fails, stream
  data is appended to the reallocated buffer. This lowers the amount
  of data read from the stream (there is no repetition) and results in
  fewer closed and reopened streams (when seeking fails).

New attempt after r22296, which was revert in r22315 due to a FATE
failure.

See the thread:
Subject: [FFmpeg-devel] [PATCH] Move av_open_input_file probe loop to its own method
Date: 2010-03-05 03:23:57 GMT

Patch by Micah F. Galizia printf("%s%s@%s.%s", "micah", "galizia", "gmail", "com").

Originally committed as revision 22532 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoDWT: x86 init should depend on HAVE_MMX
Måns Rullgård [Sun, 14 Mar 2010 22:29:11 +0000 (22:29 +0000)]
DWT: x86 init should depend on HAVE_MMX

The init function is only compiled if MMX is enabled, the call
must use the same condition.

Originally committed as revision 22531 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoerror.h: test EDOM instead of EINVAL
Måns Rullgård [Sun, 14 Mar 2010 22:25:35 +0000 (22:25 +0000)]
error.h: test EDOM instead of EINVAL

C99 doesn't require EINVAL, only EDOM, EILSEQ, and ERANGE.

Originally committed as revision 22530 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd missing includes to libavutil/error.h
Måns Rullgård [Sun, 14 Mar 2010 22:25:31 +0000 (22:25 +0000)]
Add missing includes to libavutil/error.h

Originally committed as revision 22529 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoChange the definition of AVERROR_NUMEXPECTED at the next libavutil
Stefano Sabatini [Sun, 14 Mar 2010 21:16:29 +0000 (21:16 +0000)]
Change the definition of AVERROR_NUMEXPECTED at the next libavutil
major bump, using an FFmpeg specific error code rather than EDOM,
which has a quite different semantics.

Originally committed as revision 22528 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAllow hard-coding of the 32kB cubic-root table for AAC.
Reimar Döffinger [Sun, 14 Mar 2010 19:59:47 +0000 (19:59 +0000)]
Allow hard-coding of the 32kB cubic-root table for AAC.

Originally committed as revision 22527 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix brief make output for generated tables
Måns Rullgård [Sun, 14 Mar 2010 19:48:09 +0000 (19:48 +0000)]
Fix brief make output for generated tables

Originally committed as revision 22526 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAllow hard-coding several QDM2 tables (about 32 kB size).
Reimar Döffinger [Sun, 14 Mar 2010 19:30:25 +0000 (19:30 +0000)]
Allow hard-coding several QDM2 tables (about 32 kB size).

Originally committed as revision 22525 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd some more table-printing functions needed for future patches.
Reimar Döffinger [Sun, 14 Mar 2010 19:27:58 +0000 (19:27 +0000)]
Add some more table-printing functions needed for future patches.

Originally committed as revision 22524 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd ff_ prefix to dwt functions
Måns Rullgård [Sun, 14 Mar 2010 17:50:16 +0000 (17:50 +0000)]
Add ff_ prefix to dwt functions

Originally committed as revision 22523 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoSeparate DWT from snow and dsputil
Måns Rullgård [Sun, 14 Mar 2010 17:50:12 +0000 (17:50 +0000)]
Separate DWT from snow and dsputil

This moves the DWT functions from snow.c and dsputil.c to a file of
their own.  A new struct, DWTContext, holds the function pointers
previously part of DSPContext.

Originally committed as revision 22522 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAvoid creating tiny (possibly only 64 bytes large) audio packets resulting in
Reimar Döffinger [Sun, 14 Mar 2010 13:38:00 +0000 (13:38 +0000)]
Avoid creating tiny (possibly only 64 bytes large) audio packets resulting in
huge processing and memory usage overhead for avi files with raw PCM audio.

Originally committed as revision 22521 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake sure all mvs of a mb are set in the error concealment code.
Michael Niedermayer [Sun, 14 Mar 2010 01:52:31 +0000 (01:52 +0000)]
Make sure all mvs of a mb are set in the error concealment code.

Originally committed as revision 22520 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMark AVERROR_ENOENT for deletion at the next libavutil major bump.
Stefano Sabatini [Sun, 14 Mar 2010 01:32:44 +0000 (01:32 +0000)]
Mark AVERROR_ENOENT for deletion at the next libavutil major bump.

The symbol is currently unused, AVERROR(ENOENT) must be used instead.

Originally committed as revision 22519 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoLexically sort the error code definitions.
Stefano Sabatini [Sun, 14 Mar 2010 01:32:41 +0000 (01:32 +0000)]
Lexically sort the error code definitions.

Originally committed as revision 22518 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoEnsure that the deblock filter accesses the correct MVs for h264.
Michael Niedermayer [Sun, 14 Mar 2010 00:42:26 +0000 (00:42 +0000)]
Ensure that the deblock filter accesses the correct MVs for h264.

Originally committed as revision 22517 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoaacsbr: DSPUtilize analysis input scaling.
Alex Converse [Sat, 13 Mar 2010 21:12:45 +0000 (21:12 +0000)]
aacsbr: DSPUtilize analysis input scaling.

Originally committed as revision 22516 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoaac: Don't bias output during the IMDCT if SBR will be used.
Alex Converse [Sat, 13 Mar 2010 21:12:10 +0000 (21:12 +0000)]
aac: Don't bias output during the IMDCT if SBR will be used.

Originally committed as revision 22515 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMark AVERROR_ENOMEM to be deleted at the next major bump.
Stefano Sabatini [Sat, 13 Mar 2010 19:19:46 +0000 (19:19 +0000)]
Mark AVERROR_ENOMEM to be deleted at the next major bump.

AVERROR(ENOMEM) must be used instead, and there are no occurrences of
AVERROR_ENOMEM in the FFmpeg basecode so it can be safely dropped.

Originally committed as revision 22514 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoReplace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark
Stefano Sabatini [Sat, 13 Mar 2010 19:19:44 +0000 (19:19 +0000)]
Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark
AVERROR_EIO for deletion at the next major bump.

Originally committed as revision 22513 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake iff.c:decode_init return the value returned by
Stefano Sabatini [Sat, 13 Mar 2010 19:19:40 +0000 (19:19 +0000)]
Make iff.c:decode_init return the value returned by
avctx->get_buffer() in case of error, rather than AVERROR_UNKNOWN
which is deprecated, and mark AVERROR_UNKNOWN for deletion at the next
major bump.

Originally committed as revision 22512 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoCODEC_ID_XVID is not used anywhere, remove it at next major bump
Aurelien Jacobs [Sat, 13 Mar 2010 18:19:36 +0000 (18:19 +0000)]
CODEC_ID_XVID is not used anywhere, remove it at next major bump

Originally committed as revision 22511 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agobump minor avcodec version for libxvid codec id change (r22489)
Aurelien Jacobs [Sat, 13 Mar 2010 18:17:25 +0000 (18:17 +0000)]
bump minor avcodec version for libxvid codec id change (r22489)

Originally committed as revision 22510 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake the scale filter pass the pkt.pos information to the output
Stefano Sabatini [Sat, 13 Mar 2010 12:33:44 +0000 (12:33 +0000)]
Make the scale filter pass the pkt.pos information to the output
picref.

Originally committed as revision 22509 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoBump libavfilter minor version and add APIchanges entry after the
Stefano Sabatini [Sat, 13 Mar 2010 11:41:15 +0000 (11:41 +0000)]
Bump libavfilter minor version and add APIchanges entry after the
addition of the AVFilterPicRef.pos field.

Originally committed as revision 22508 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake ffplay pass the packet.pos information to the filterchain, get it
Stefano Sabatini [Sat, 13 Mar 2010 11:27:07 +0000 (11:27 +0000)]
Make ffplay pass the packet.pos information to the filterchain, get it
again from the filterchain and pass it back to output_picture2().

Originally committed as revision 22507 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd AVFilterPicRef.pos field and make libavfilter propagate stream
Stefano Sabatini [Sat, 13 Mar 2010 11:27:05 +0000 (11:27 +0000)]
Add AVFilterPicRef.pos field and make libavfilter propagate stream
byte position information, as stored in the pkt.pos, through the
filterchain.

Note that the pos field is added *non* at the end of the
AVFilterPicRef struct, thus breaking ABI compatibility, which is
allowed as the API is still considered non-stable.

Originally committed as revision 22506 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoExtend the slice filter to make it issue slice height values randomly
Stefano Sabatini [Sat, 13 Mar 2010 10:41:25 +0000 (10:41 +0000)]
Extend the slice filter to make it issue slice height values randomly
choosen between 8 and 32 when the supplied parameter is the string
"random".

This is useful for testing the slice support, but it is not supposed
to be used for other purposes and this interface may change in the
future, thus it is not documented.

The randomization algorithm adopted is the standard Numerical Recipes
LCG.

Originally committed as revision 22505 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agovp3: Split out motion vectors to their own array
David Conrad [Sat, 13 Mar 2010 10:25:41 +0000 (10:25 +0000)]
vp3: Split out motion vectors to their own array

1.5% faster overall decode on my penryn

Originally committed as revision 22504 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd APIchanges entry for the libavutil/error.h addition.
Stefano Sabatini [Sat, 13 Mar 2010 09:59:36 +0000 (09:59 +0000)]
Add APIchanges entry for the libavutil/error.h addition.

Originally committed as revision 22503 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd missing parentheses around the AVERROR_PATCHWELCOME macro
Stefano Sabatini [Sat, 13 Mar 2010 09:52:43 +0000 (09:52 +0000)]
Add missing parentheses around the AVERROR_PATCHWELCOME macro
definition.

Originally committed as revision 22502 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMove error code definitions from libavcodec/avcodec.h to
Stefano Sabatini [Sat, 13 Mar 2010 09:43:24 +0000 (09:43 +0000)]
Move error code definitions from libavcodec/avcodec.h to
libavutil/error.h.

Error code definitions and handling code belong to libavutil, where
they can be shared by all the libav* libraries.

See the thread:
Subject: [FFmpeg-devel] [PATCH] Move error codes definitions from lavc to lavu
Date: Sun, 19 Jul 2009 12:09:16 +0200

Originally committed as revision 22501 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agotheora: Add support for 4:2:2 and 4:4:4 subsampling
David Conrad [Sat, 13 Mar 2010 05:59:22 +0000 (05:59 +0000)]
theora: Add support for 4:2:2 and 4:4:4 subsampling

Originally committed as revision 22500 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agovp3: remove unneeded error, this is internal and doesn't happen
David Conrad [Sat, 13 Mar 2010 05:59:18 +0000 (05:59 +0000)]
vp3: remove unneeded error, this is internal and doesn't happen

Originally committed as revision 22499 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agovp3: Make fragment_width _height by plane
David Conrad [Sat, 13 Mar 2010 05:56:15 +0000 (05:56 +0000)]
vp3: Make fragment_width _height by plane

Originally committed as revision 22498 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agovp3: we only need a temp MV array of size 4
David Conrad [Sat, 13 Mar 2010 05:56:11 +0000 (05:56 +0000)]
vp3: we only need a temp MV array of size 4

Originally committed as revision 22497 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agovp3: Use memset to clear the fragment array
David Conrad [Sat, 13 Mar 2010 05:56:08 +0000 (05:56 +0000)]
vp3: Use memset to clear the fragment array

Originally committed as revision 22496 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agovp3: Init MVs to 0
David Conrad [Sat, 13 Mar 2010 05:56:05 +0000 (05:56 +0000)]
vp3: Init MVs to 0

Originally committed as revision 22495 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agovp3: Simplify init_block_mapping
David Conrad [Sat, 13 Mar 2010 05:56:01 +0000 (05:56 +0000)]
vp3: Simplify init_block_mapping

Originally committed as revision 22494 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Set packet duration for ogm streams
David Conrad [Sat, 13 Mar 2010 05:55:57 +0000 (05:55 +0000)]
oggdec: Set packet duration for ogm streams

Originally committed as revision 22493 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agomatroskadec: add support for SIPR audio tracks
Aurelien Jacobs [Fri, 12 Mar 2010 23:49:06 +0000 (23:49 +0000)]
matroskadec: add support for SIPR audio tracks

Originally committed as revision 22492 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoexport rm_reorder_sipr_data() for future use by matroska demuxer
Aurelien Jacobs [Fri, 12 Mar 2010 23:35:59 +0000 (23:35 +0000)]
export rm_reorder_sipr_data() for future use by matroska demuxer

Originally committed as revision 22491 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoexport sipr_subpk_size for future use by matroska demuxer
Aurelien Jacobs [Fri, 12 Mar 2010 23:34:30 +0000 (23:34 +0000)]
export sipr_subpk_size for future use by matroska demuxer

Originally committed as revision 22490 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agolibxvid is producing standard mpeg4 so it don't need its own codec id
Aurelien Jacobs [Fri, 12 Mar 2010 23:24:54 +0000 (23:24 +0000)]
libxvid is producing standard mpeg4 so it don't need its own codec id

Originally committed as revision 22489 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoReplace BSD-specific integer types by their POSIX equivalents.
Diego Biurrun [Fri, 12 Mar 2010 17:29:19 +0000 (17:29 +0000)]
Replace BSD-specific integer types by their POSIX equivalents.
Mark bktr_init function as av_cold.
Tested to work by Michael Kostylev on the NetBSD FATE box.

Originally committed as revision 22487 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd _XOPEN_SOURCE=600 to CPPFLAGS on NetBSD.
Diego Biurrun [Fri, 12 Mar 2010 17:28:02 +0000 (17:28 +0000)]
Add _XOPEN_SOURCE=600 to CPPFLAGS on NetBSD.

This make NetBSD compile out of the box at the cost of a hack, but a
locally contained one that is preferable to the one used in the wild.
Currently the NetBSD FATE box adds -D_NETBSD_SOURCE to CPPFLAGS to work
around broken system headers. Since it is unlikely for NetBSD to fix their
headers, it is better to use a standard flag instead of a system-specific one.

As a sideeffect, this allows getting rid of a local _NETBSD_SOURCE definition.

Originally committed as revision 22486 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix guess_mv() so that it works correctly with 4x4 MV blocks.
Michael Niedermayer [Fri, 12 Mar 2010 16:59:21 +0000 (16:59 +0000)]
Fix guess_mv() so that it works correctly with 4x4 MV blocks.

Originally committed as revision 22485 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix indention
Michael Niedermayer [Fri, 12 Mar 2010 15:23:26 +0000 (15:23 +0000)]
Fix indention

Originally committed as revision 22484 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAlways reset slice_table.
Michael Niedermayer [Fri, 12 Mar 2010 15:21:45 +0000 (15:21 +0000)]
Always reset slice_table.
Previously, the area of a lost slice would be left at the slice number of the previous
frame which could occasionally match the number of the next slice and thus a non existing
slice could have been used for prediction leading to additional decoding errors in otherwise
undamaged slices.

Originally committed as revision 22483 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoPrint skip_frames variable.
Michael Niedermayer [Fri, 12 Mar 2010 15:12:05 +0000 (15:12 +0000)]
Print skip_frames variable.

Originally committed as revision 22482 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoDocument --disable-everything in configure --help.
Ramiro Polla [Fri, 12 Mar 2010 13:03:40 +0000 (13:03 +0000)]
Document --disable-everything in configure --help.

Originally committed as revision 22481 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agofix compilation with --disable-everything --enable-muxer=mpegts
Aurelien Jacobs [Fri, 12 Mar 2010 12:26:47 +0000 (12:26 +0000)]
fix compilation with --disable-everything --enable-muxer=mpegts

Originally committed as revision 22480 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agofix compilation with --disable-everything --enable-decoder=twinvq
Aurelien Jacobs [Fri, 12 Mar 2010 12:25:44 +0000 (12:25 +0000)]
fix compilation with --disable-everything --enable-decoder=twinvq

Originally committed as revision 22479 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Pass packets to header() until the stream is done with them
David Conrad [Fri, 12 Mar 2010 05:17:01 +0000 (05:17 +0000)]
oggdec: Pass packets to header() until the stream is done with them

This fixes some old ogm files that had the 3rd vorbis header after a data
packet in another stream. This is invalid in ogg, but this change shouldn't
affect the behaviour of any valid file.

Originally committed as revision 22478 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Parse ogm chapters
David Conrad [Fri, 12 Mar 2010 05:16:57 +0000 (05:16 +0000)]
oggdec: Parse ogm chapters

Originally committed as revision 22477 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Cosmetics
David Conrad [Fri, 12 Mar 2010 05:16:54 +0000 (05:16 +0000)]
oggdec: Cosmetics

Originally committed as revision 22476 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Read ogm metadata
David Conrad [Fri, 12 Mar 2010 05:16:51 +0000 (05:16 +0000)]
oggdec: Read ogm metadata

Originally committed as revision 22475 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoConst correctness for vorbis_comment
David Conrad [Fri, 12 Mar 2010 05:16:47 +0000 (05:16 +0000)]
Const correctness for vorbis_comment

Originally committed as revision 22474 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Metadata is per-stream; don't merge multiple streams' together
David Conrad [Fri, 12 Mar 2010 05:16:44 +0000 (05:16 +0000)]
oggdec: Metadata is per-stream; don't merge multiple streams' together

Originally committed as revision 22473 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd ff_ prefix to vorbis_comment
David Conrad [Fri, 12 Mar 2010 05:16:39 +0000 (05:16 +0000)]
Add ff_ prefix to vorbis_comment

Originally committed as revision 22472 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoDon't use shell syntax to set variables for make.
Ramiro Polla [Fri, 12 Mar 2010 02:23:59 +0000 (02:23 +0000)]
Don't use shell syntax to set variables for make.

Originally committed as revision 22471 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix spelling.
Ronald S. Bultje [Thu, 11 Mar 2010 17:42:53 +0000 (17:42 +0000)]
Fix spelling.

Originally committed as revision 22470 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix a crash in the H.263 RTP packetizer
Martin Storsjö [Thu, 11 Mar 2010 16:26:14 +0000 (16:26 +0000)]
Fix a crash in the H.263 RTP packetizer

If size == 1 and buf[0] == 0 and buf[1] == 0 (the first byte after the
buffer), it would set size = -1 and crash in the later memcpy.

Originally committed as revision 22469 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoPrevent memory leak introduced in r22389 in Bink demuxer: pass partial packets to...
Peter Ross [Thu, 11 Mar 2010 12:29:02 +0000 (12:29 +0000)]
Prevent memory leak introduced in r22389 in Bink demuxer: pass partial packets to decoder.

Originally committed as revision 22468 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake rdft speed user configureable.
Michael Niedermayer [Thu, 11 Mar 2010 11:25:51 +0000 (11:25 +0000)]
Make rdft speed user configureable.
Change default speed back to a slower variant.

Originally committed as revision 22467 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake binkaudio work with ff_float_to_int16_interleave_c (martin at martin dot st)
Peter Ross [Thu, 11 Mar 2010 10:52:34 +0000 (10:52 +0000)]
Make binkaudio work with ff_float_to_int16_interleave_c (martin at martin dot st)

Originally committed as revision 22466 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoCosmetics, break a long line, fix brace placement
Martin Storsjö [Thu, 11 Mar 2010 08:33:04 +0000 (08:33 +0000)]
Cosmetics, break a long line, fix brace placement

Originally committed as revision 22465 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoRTSP muxer: Create the SDP with the numerical IP of the peer
Martin Storsjö [Thu, 11 Mar 2010 08:24:18 +0000 (08:24 +0000)]
RTSP muxer: Create the SDP with the numerical IP of the peer
instead of using the original host name

Originally committed as revision 22464 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Seek to keyframes
David Conrad [Thu, 11 Mar 2010 07:18:00 +0000 (07:18 +0000)]
oggdec: Seek to keyframes

Originally committed as revision 22463 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Determine pts and filepos on a packet basis in read_timestamp
David Conrad [Thu, 11 Mar 2010 07:17:56 +0000 (07:17 +0000)]
oggdec: Determine pts and filepos on a packet basis in read_timestamp

This takes into account whether the granule defines the start or end times
of packets, and sets the correct file offset of the associated page.

Originally committed as revision 22462 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Move PTS/DTS calculation to a function
David Conrad [Thu, 11 Mar 2010 07:17:53 +0000 (07:17 +0000)]
oggdec: Move PTS/DTS calculation to a function

Originally committed as revision 22461 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Fix memory leak in setting up vorbis headers
David Conrad [Thu, 11 Mar 2010 07:17:49 +0000 (07:17 +0000)]
oggdec: Fix memory leak in setting up vorbis headers

Originally committed as revision 22460 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Don't use ogg_stream's seq for vorbis or speex headers
David Conrad [Thu, 11 Mar 2010 07:17:46 +0000 (07:17 +0000)]
oggdec: Don't use ogg_stream's seq for vorbis or speex headers

Originally committed as revision 22459 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Fix duration calculation for streams with non-zero start
David Conrad [Thu, 11 Mar 2010 07:17:43 +0000 (07:17 +0000)]
oggdec: Fix duration calculation for streams with non-zero start

Originally committed as revision 22458 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Parse skeleton to determine the start time of each stream
David Conrad [Thu, 11 Mar 2010 07:17:40 +0000 (07:17 +0000)]
oggdec: Parse skeleton to determine the start time of each stream

Originally committed as revision 22457 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Check that we have a codec in gptopts (needed for skeleton)
David Conrad [Thu, 11 Mar 2010 07:17:36 +0000 (07:17 +0000)]
oggdec: Check that we have a codec in gptopts (needed for skeleton)

Originally committed as revision 22456 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Move ogg_find_stream and ogg_gptopts to oggdec.h
David Conrad [Thu, 11 Mar 2010 07:17:33 +0000 (07:17 +0000)]
oggdec: Move ogg_find_stream and ogg_gptopts to oggdec.h

(skeleton will need them)

Originally committed as revision 22455 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Set data_offset to the right value
David Conrad [Thu, 11 Mar 2010 07:17:29 +0000 (07:17 +0000)]
oggdec: Set data_offset to the right value

Otherwise it gets set automatically to a page midstream and prevents seeking
to the first page.

Originally committed as revision 22454 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agooggdec: Save offset of the page needed to reconstruct the current packet
David Conrad [Thu, 11 Mar 2010 07:17:24 +0000 (07:17 +0000)]
oggdec: Save offset of the page needed to reconstruct the current packet

Originally committed as revision 22453 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoImplement framedrop.
Michael Niedermayer [Thu, 11 Mar 2010 02:35:04 +0000 (02:35 +0000)]
Implement framedrop.
Replace SDL timer by a seperate thread, more accurate and less annoying.
frame drop is enabled by default, bug reports welcome.
Fixes issue1191

Originally committed as revision 22452 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoindent
Måns Rullgård [Thu, 11 Mar 2010 02:32:14 +0000 (02:32 +0000)]
indent

Originally committed as revision 22451 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agorandom_seed: try other alternatives if reading /dev/random fails
Måns Rullgård [Thu, 11 Mar 2010 02:32:11 +0000 (02:32 +0000)]
random_seed: try other alternatives if reading /dev/random fails

Originally committed as revision 22450 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agosha: add missing include
Måns Rullgård [Thu, 11 Mar 2010 02:32:08 +0000 (02:32 +0000)]
sha: add missing include

Originally committed as revision 22449 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agosnow: remove unused stub functions
Måns Rullgård [Thu, 11 Mar 2010 02:32:05 +0000 (02:32 +0000)]
snow: remove unused stub functions

w53_32_c() and w97_32_c() are defined as stubs when snow encoder is
disabled.  In this case, those functions are not referenced at all
and do thus not need to be defined.

Originally committed as revision 22448 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoffplay: use correct format specifiers in printf()
Måns Rullgård [Thu, 11 Mar 2010 02:32:03 +0000 (02:32 +0000)]
ffplay: use correct format specifiers in printf()

Originally committed as revision 22447 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoAdd some required casts
Måns Rullgård [Thu, 11 Mar 2010 02:32:01 +0000 (02:32 +0000)]
Add some required casts

These casts are correct and safe.  The pointers are guaranteed to
have proper alignment, and aliasing is not a problem with character
types.

Originally committed as revision 22446 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoconfigure: remove stray semicolon
Måns Rullgård [Thu, 11 Mar 2010 00:42:13 +0000 (00:42 +0000)]
configure: remove stray semicolon

Originally committed as revision 22445 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoconfigure: use map() function in a couple of places
Måns Rullgård [Thu, 11 Mar 2010 00:39:06 +0000 (00:39 +0000)]
configure: use map() function in a couple of places

Originally committed as revision 22444 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoconfigure: add --disable-everything option
Måns Rullgård [Thu, 11 Mar 2010 00:39:02 +0000 (00:39 +0000)]
configure: add --disable-everything option

This disables all codecs, formats, etc.  It saves some typing when
only a few components are desired.

Originally committed as revision 22443 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix some apparent +- errors in the audio vissualization.
Michael Niedermayer [Wed, 10 Mar 2010 22:43:23 +0000 (22:43 +0000)]
Fix some apparent +- errors in the audio vissualization.
The bugs become only vissible at higher time resolution than what is
used currently.

Originally committed as revision 22442 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agosparc: fix a few pages of cast warnings
Måns Rullgård [Wed, 10 Mar 2010 22:24:46 +0000 (22:24 +0000)]
sparc: fix a few pages of cast warnings

Originally committed as revision 22441 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agosparc: fix dsputil prototypes
Måns Rullgård [Wed, 10 Mar 2010 22:24:42 +0000 (22:24 +0000)]
sparc: fix dsputil prototypes

Originally committed as revision 22440 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoconfigure: allow mips64el and powerpc64 as values for --arch
Måns Rullgård [Wed, 10 Mar 2010 22:24:39 +0000 (22:24 +0000)]
configure: allow mips64el and powerpc64 as values for --arch

Originally committed as revision 22439 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoMake the ntp_time function available to other parts of libavformat, as ff_ntp_time
Martin Storsjö [Wed, 10 Mar 2010 22:21:39 +0000 (22:21 +0000)]
Make the ntp_time function available to other parts of libavformat, as ff_ntp_time

Originally committed as revision 22438 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoOnly use .size in ARM assembly when targeting ELF
Martin Storsjö [Wed, 10 Mar 2010 21:39:58 +0000 (21:39 +0000)]
Only use .size in ARM assembly when targeting ELF

This fixes compilation on mingw32ce

Originally committed as revision 22437 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoOnly reschedule refresh if we successfully removed the scheduled one.
Michael Niedermayer [Wed, 10 Mar 2010 16:11:02 +0000 (16:11 +0000)]
Only reschedule refresh if we successfully removed the scheduled one.
Fixes some spurious error messages.

Originally committed as revision 22435 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoIncrease VIDEO_PICTURE_QUEUE_SIZE to 2.
Michael Niedermayer [Wed, 10 Mar 2010 15:45:46 +0000 (15:45 +0000)]
Increase VIDEO_PICTURE_QUEUE_SIZE to 2.
this allows more asynchronous decoding and display thus improving
video smoothness.
It also seems to improve absolute video decoding speed for some reason

Originally committed as revision 22434 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoDo not call SDL_SetVideoMode() with the same size as previously
Michael Niedermayer [Wed, 10 Mar 2010 15:39:31 +0000 (15:39 +0000)]
Do not call SDL_SetVideoMode() with the same size as previously
as this blanks the window.

Originally committed as revision 22433 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix ffm_close return type.
Benoit Fouet [Wed, 10 Mar 2010 14:26:15 +0000 (14:26 +0000)]
Fix ffm_close return type.

Originally committed as revision 22432 to svn://svn.ffmpeg.org/ffmpeg/trunk

10 years agoFix memory leak in FFM demuxer
Vitor Sessak [Wed, 10 Mar 2010 13:17:50 +0000 (13:17 +0000)]
Fix memory leak in FFM demuxer

Originally committed as revision 22431 to svn://svn.ffmpeg.org/ffmpeg/trunk