11 years agoAdd ff_ prefix for mpeg2_dc_scale_table.
Michael Niedermayer [Mon, 15 Mar 2010 22:49:46 +0000 (22:49 +0000)]
Add ff_ prefix for mpeg2_dc_scale_table.

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

11 years agomatroskadec: fix missing dependency
Aurelien Jacobs [Mon, 15 Mar 2010 22:37:14 +0000 (22:37 +0000)]
matroskadec: fix missing dependency

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

11 years agoSupport intra_dc_precision>8 in jpeg
Michael Niedermayer [Mon, 15 Mar 2010 21:27:13 +0000 (21:27 +0000)]
Support intra_dc_precision>8 in jpeg

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

11 years agoAllow mpeg style yuv in jpeg when strict standard compliance is small enough.
Michael Niedermayer [Mon, 15 Mar 2010 19:45:57 +0000 (19:45 +0000)]
Allow mpeg style yuv in jpeg when strict standard compliance is small enough.

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

11 years agoAdd FATE tests
Måns Rullgård [Mon, 15 Mar 2010 19:23:24 +0000 (19:23 +0000)]
Add FATE tests

This adds a "fate" make target which runs the full FATE test suite.
Individual tests can be run with "make fate-$testname".

The location of the FATE test samples must be specified with the
--samples=PATH option to configure.

The tests/fate-update.sh script regenerates the references files and
test list from the online FATE database.  These are checked in since
generating them requires non-standard tools.

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

11 years agocosmetics : Print newline after error message.
Jai Menon [Mon, 15 Mar 2010 19:03:48 +0000 (19:03 +0000)]
cosmetics : Print newline after error message.

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

11 years agouse mpeg2 quantization bias for mjpeg.
Michael Niedermayer [Mon, 15 Mar 2010 16:37:02 +0000 (16:37 +0000)]
use mpeg2 quantization bias for mjpeg.
this seems to improve RD performance.

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

11 years agoReindent
Martin Storsjö [Mon, 15 Mar 2010 16:36:54 +0000 (16:36 +0000)]

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

11 years agoDon't let ff_rtsp_read_reply skip interleaved RTP/TCP packets in rtsp_write_packet.
Martin Storsjö [Mon, 15 Mar 2010 16:36:20 +0000 (16:36 +0000)]
Don't let ff_rtsp_read_reply skip interleaved RTP/TCP packets in rtsp_write_packet.
Skip interleaved packets manually and recheck if there's more to be read.

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

11 years agoMake rtsp_skip_packet non-static, add ff prefix
Martin Storsjö [Mon, 15 Mar 2010 16:31:15 +0000 (16:31 +0000)]
Make rtsp_skip_packet non-static, add ff prefix

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

11 years agoReindent
Martin Storsjö [Mon, 15 Mar 2010 16:15:51 +0000 (16:15 +0000)]

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

11 years agoRTSP: Synchronize the start time of the chained RTP muxers
Martin Storsjö [Mon, 15 Mar 2010 14:20:07 +0000 (14:20 +0000)]
RTSP: Synchronize the start time of the chained RTP muxers

This makes sure that the streams get correctly synchronized when viewed,
previously the streams were out of sync by as much time as it took
between the initialization of the individual muxers.

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

11 years agoRemove avcodec_thread_execute from avcodec.h, and make static functions that
Benoit Fouet [Mon, 15 Mar 2010 14:03:01 +0000 (14:03 +0000)]
Remove avcodec_thread_execute from avcodec.h, and make static functions that
need it in *thread.c.

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

11 years agoUse AVFormatContext.start_time_realtime in the RTP muxer
Martin Storsjö [Mon, 15 Mar 2010 10:37:12 +0000 (10:37 +0000)]
Use AVFormatContext.start_time_realtime in the RTP muxer

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

11 years agoMove the NTP offset definitions to internal.h
Martin Storsjö [Mon, 15 Mar 2010 10:36:30 +0000 (10:36 +0000)]
Move the NTP offset definitions to internal.h

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

11 years agoAdd APIchanges entry for AVFormatContext.start_time_realtime
Martin Storsjö [Mon, 15 Mar 2010 10:30:38 +0000 (10:30 +0000)]
Add APIchanges entry for AVFormatContext.start_time_realtime

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

11 years agoAdd a new field AVFormatContext.start_time_realtime
Martin Storsjö [Mon, 15 Mar 2010 10:29:37 +0000 (10:29 +0000)]
Add a new field AVFormatContext.start_time_realtime

Currently intended to be used by the RTP muxer

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

11 years agoriff: don't pad extradata when writing ASF.
Anton Khirnov [Mon, 15 Mar 2010 08:49:02 +0000 (08:49 +0000)]
riff: don't pad extradata when writing ASF.
Patch by Anton Khirnov mirror(moc liamg saksyw)

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

11 years agoAdd dependencies used by the RDT and ASF/RTP code
Martin Storsjö [Mon, 15 Mar 2010 08:35:07 +0000 (08:35 +0000)]
Add dependencies used by the RDT and ASF/RTP code

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

11 years agoffmpeg: Combine variable declaration and definition
Alexander Strange [Mon, 15 Mar 2010 02:33:49 +0000 (02:33 +0000)]
ffmpeg: Combine variable declaration and definition

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

11 years agoffmpeg: Factor out redundant sync_ipts calculation
Alexander Strange [Mon, 15 Mar 2010 02:32:21 +0000 (02:32 +0000)]
ffmpeg: Factor out redundant sync_ipts calculation

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

11 years agomatroskadec: use more appropriate error code
Aurelien Jacobs [Mon, 15 Mar 2010 00:19:22 +0000 (00:19 +0000)]
matroskadec: use more appropriate error code

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

11 years agomove ff_url_split() and ff_url_join() declarations to internal.h
Aurelien Jacobs [Sun, 14 Mar 2010 23:59:48 +0000 (23:59 +0000)]
move ff_url_split() and ff_url_join() declarations to internal.h
those functions are not part of the public API

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

11 years agoCosmetics: Fix a comment.
Carl Eugen Hoyos [Sun, 14 Mar 2010 23:52:45 +0000 (23:52 +0000)]
Cosmetics: Fix a comment.

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

11 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

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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

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

11 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

11 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

11 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

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

11 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

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

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

11 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

11 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

11 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

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

11 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

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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

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

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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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