ffmpeg.git
10 years agoBlackfin: use SRAM only when CONFIG_SRAM is set
Måns Rullgård [Sun, 31 Jan 2010 00:20:37 +0000 (00:20 +0000)]
Blackfin: use SRAM only when CONFIG_SRAM is set

Originally committed as revision 30472 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

10 years agoBlackfin: use SRAM only when CONFIG_SRAM is set
Måns Rullgård [Sun, 31 Jan 2010 00:20:30 +0000 (00:20 +0000)]
Blackfin: use SRAM only when CONFIG_SRAM is set

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

10 years agoAdd CONFIG_SRAM to allow use of on-chip SRAM on some systems
Måns Rullgård [Sun, 31 Jan 2010 00:20:27 +0000 (00:20 +0000)]
Add CONFIG_SRAM to allow use of on-chip SRAM on some systems

Some SoCs have a small amount of on-chip SRAM which may be used
for frequently used code or data.  When enabled, this option
will allow FFmpeg to use such facilities where supported.

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

10 years agoFix seeking by bytes with the mouse and do so by default if the duration is
Michael Niedermayer [Sat, 30 Jan 2010 23:19:59 +0000 (23:19 +0000)]
Fix seeking by bytes with the mouse and do so by default if the duration is
nonsense.

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

10 years agoFlag to ignore dts on frames that contain pts.
Michael Niedermayer [Sat, 30 Jan 2010 22:55:12 +0000 (22:55 +0000)]
Flag to ignore dts on frames that contain pts.
This works around common issues with mpeg-ps files with broken timestamps.
Also allows playing the broken sample from issue1024.

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

10 years agoFix AVFormat AVOprions.
Michael Niedermayer [Sat, 30 Jan 2010 22:47:08 +0000 (22:47 +0000)]
Fix AVFormat AVOprions.

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

10 years agoStore strings directly in mov_mdhd_language_map instead of using pointers,
Reimar Döffinger [Sat, 30 Jan 2010 22:05:26 +0000 (22:05 +0000)]
Store strings directly in mov_mdhd_language_map instead of using pointers,
which has a up to 200% overhead.
Also allows to use memcpy instead of strcpy.

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

10 years agoReindent.
Stefano Sabatini [Sat, 30 Jan 2010 21:58:09 +0000 (21:58 +0000)]
Reindent.

Originally committed as revision 30467 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

10 years agoUse a consistent convention for the names of the internal wrapper
Stefano Sabatini [Sat, 30 Jan 2010 21:56:33 +0000 (21:56 +0000)]
Use a consistent convention for the names of the internal wrapper
functions. Improve readability.
 -This line, and those below, will be ignored--

     swscale.c

Originally committed as revision 30466 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

10 years agoFlush the bitreservour.
Michael Niedermayer [Sat, 30 Jan 2010 21:55:18 +0000 (21:55 +0000)]
Flush the bitreservour.
Fixes issue1716

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

10 years agoAlways consider the mov language code as 4 bytes fixed size and change the
Reimar Döffinger [Sat, 30 Jan 2010 21:54:06 +0000 (21:54 +0000)]
Always consider the mov language code as 4 bytes fixed size and change the
function declaration to reflect this.

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

10 years agoSimplify conversion to 5-bit ASCII.
Reimar Döffinger [Sat, 30 Jan 2010 21:50:47 +0000 (21:50 +0000)]
Simplify conversion to 5-bit ASCII.

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

10 years agoSeparate audio-only tests so they are only run once
Måns Rullgård [Sat, 30 Jan 2010 21:47:13 +0000 (21:47 +0000)]
Separate audio-only tests so they are only run once

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

10 years agoRedesign packet queue full check to be more robust.
Michael Niedermayer [Sat, 30 Jan 2010 21:27:17 +0000 (21:27 +0000)]
Redesign packet queue full check to be more robust.

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

10 years agoBump up MAX_VIDEOQ_SIZE to fix stuttering of oddly interleaved avi files.
Michael Niedermayer [Sat, 30 Jan 2010 20:45:21 +0000 (20:45 +0000)]
Bump up MAX_VIDEOQ_SIZE to fix stuttering of oddly interleaved avi files.
Fixes issue1211

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

10 years agoRemove duplicated empty line.
Stefano Sabatini [Sat, 30 Jan 2010 20:18:55 +0000 (20:18 +0000)]
Remove duplicated empty line.

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

10 years agoSplit first reference list comparission from mv comparission.
Michael Niedermayer [Sat, 30 Jan 2010 20:07:37 +0000 (20:07 +0000)]
Split first reference list comparission from mv comparission.
about 0.5% faster MBAFF loop filtering

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

10 years agoMake the jump-table section-relative for x86_64 with PIC enabled.
Reimar Döffinger [Sat, 30 Jan 2010 19:26:47 +0000 (19:26 +0000)]
Make the jump-table section-relative for x86_64 with PIC enabled.
This allows to get rid of the macho64 specific hack that moves them
to rodata (with worse cache behaviour) and avoids textrels which
e.g. Gentoo does not allow for x86_64 libraries.

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

10 years agoUse av_get_pix_fmt() instead of the deprecated avcodec_get_pix_fmt()
Stefano Sabatini [Sat, 30 Jan 2010 19:10:26 +0000 (19:10 +0000)]
Use av_get_pix_fmt() instead of the deprecated avcodec_get_pix_fmt()
function.

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

10 years agoRemove duplicated word in av_strlcat() doxy.
Stefano Sabatini [Sat, 30 Jan 2010 19:03:37 +0000 (19:03 +0000)]
Remove duplicated word in av_strlcat() doxy.

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

10 years agoAdd missing '()' at the end of a function name.
Stefano Sabatini [Sat, 30 Jan 2010 18:54:32 +0000 (18:54 +0000)]
Add missing '()' at the end of a function name.

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

10 years agoAdd mention to the av_get_pix_fmt() addition.
Stefano Sabatini [Sat, 30 Jan 2010 18:53:33 +0000 (18:53 +0000)]
Add mention to the av_get_pix_fmt() addition.

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

10 years agoDisable Altivec for processors older than G4.
Carl Eugen Hoyos [Sat, 30 Jan 2010 18:50:28 +0000 (18:50 +0000)]
Disable Altivec for processors older than G4.

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

10 years agoImplement av_get_pix_fmt(), and deprecate avcodec_get_pix_fmt().
Stefano Sabatini [Sat, 30 Jan 2010 18:50:00 +0000 (18:50 +0000)]
Implement av_get_pix_fmt(), and deprecate avcodec_get_pix_fmt().

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

10 years agoPPC: allow --cpu=E500[v2]
Ancoron Luciferis [Sat, 30 Jan 2010 18:07:07 +0000 (18:07 +0000)]
PPC: allow --cpu=E500[v2]

Patch by Ancoron Luciferis <ancoron chaoslayer de>

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

10 years agoconfigure: match PPC CPU types case insensitively
Måns Rullgård [Sat, 30 Jan 2010 18:07:05 +0000 (18:07 +0000)]
configure: match PPC CPU types case insensitively

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

10 years agoSet target_path to $(CURDIR)
Måns Rullgård [Sat, 30 Jan 2010 15:48:55 +0000 (15:48 +0000)]
Set target_path to $(CURDIR)

CURDIR is updated by make -C, PWD is not.

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

10 years agoReplace h->left_type[0] by the local variable for it we have.
Michael Niedermayer [Sat, 30 Jan 2010 14:33:25 +0000 (14:33 +0000)]
Replace h->left_type[0] by the local variable for it we have.
No meassureable speed effect.

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

10 years agoslightly faster bit trickery.
Michael Niedermayer [Sat, 30 Jan 2010 14:10:06 +0000 (14:10 +0000)]
slightly faster bit trickery.

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

10 years agoReplace ?: by branchless code.
Michael Niedermayer [Sat, 30 Jan 2010 13:40:20 +0000 (13:40 +0000)]
Replace ?: by branchless code.
about 0.5% faster loop filtering

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

10 years agoFix randomness of the swscale-test output.
Stefano Sabatini [Sat, 30 Jan 2010 13:31:00 +0000 (13:31 +0000)]
Fix randomness of the swscale-test output.

See the thread:
Subject: [FFmpeg-devel] [RFC] Make swscale-test perform only one convertion
Date: Fri, 29 Jan 2010 01:52:23 +0100

Originally committed as revision 30457 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

10 years agoSet duration in Smacker demuxer
Daniel Verkamp [Sat, 30 Jan 2010 10:37:52 +0000 (10:37 +0000)]
Set duration in Smacker demuxer

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

10 years agoDemux Bink audio in Smacker files
Daniel Verkamp [Sat, 30 Jan 2010 10:31:10 +0000 (10:31 +0000)]
Demux Bink audio in Smacker files

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

10 years agoAdd Bink codec IDs
Daniel Verkamp [Sat, 30 Jan 2010 09:48:55 +0000 (09:48 +0000)]
Add Bink codec IDs

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

10 years agoanother 10l: forgot to change parent condition as well
Kostya Shishkov [Sat, 30 Jan 2010 09:47:57 +0000 (09:47 +0000)]
another 10l: forgot to change parent condition as well

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

10 years ago10l trocadero: now return value of ff_rtmp_packet_read() has different meaning
Kostya Shishkov [Sat, 30 Jan 2010 09:45:52 +0000 (09:45 +0000)]
10l trocadero: now return value of ff_rtmp_packet_read() has different meaning

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

10 years agoMake RTMP send/receive packet functions report number of bytes read or sent.
Kostya Shishkov [Sat, 30 Jan 2010 09:24:52 +0000 (09:24 +0000)]
Make RTMP send/receive packet functions report number of bytes read or sent.

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

10 years agocosmetics: add an empty line between variable declarations and code
Kostya Shishkov [Sat, 30 Jan 2010 08:38:11 +0000 (08:38 +0000)]
cosmetics: add an empty line between variable declarations and code

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

10 years agoIndeo Video Interactive 4 and 5 common code and DSP functions.
Kostya Shishkov [Sat, 30 Jan 2010 08:10:17 +0000 (08:10 +0000)]
Indeo Video Interactive 4 and 5 common code and DSP functions.
Reviewed and corrected by myself because there were no other volunteers in the
last weeks.

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

10 years agoRevert commits 21227, 21441, and 21442. None of this is necessary now that we
Ramiro Polla [Fri, 29 Jan 2010 19:50:58 +0000 (19:50 +0000)]
Revert commits 21227, 21441, and 21442. None of this is necessary now that we
load the getaddrinfo family of functions through GetProcAddress. Also, there
is currently no feature that gets fixed in Win98 through the use of KernelEx.

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

10 years agoMake VP5 and VP6 decoders output a qscale table to allow for more automatic
Reimar Döffinger [Fri, 29 Jan 2010 19:11:47 +0000 (19:11 +0000)]
Make VP5 and VP6 decoders output a qscale table to allow for more automatic
post-processing, and add a new FF_QSCALE_TYPE_VP56 for this.

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

10 years agoAdd no_repeat_mask option, so that single-pulse vectors can also be
Ronald S. Bultje [Fri, 29 Jan 2010 16:49:06 +0000 (16:49 +0000)]
Add no_repeat_mask option, so that single-pulse vectors can also be
expressed in a AMRFixed structure and handled by ff_set_fixed_vector().

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

10 years agoAdd support for vorbis 6.1 and 7.1 channel configurations as per the new spec
Robert Swain [Fri, 29 Jan 2010 13:51:25 +0000 (13:51 +0000)]
Add support for vorbis 6.1 and 7.1 channel configurations as per the new spec

http://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-800004.3.9

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

10 years agoRemove MAX_STREAMS usage in ogg and mxf muxers
Baptiste Coudurier [Fri, 29 Jan 2010 06:38:00 +0000 (06:38 +0000)]
Remove MAX_STREAMS usage in ogg and mxf muxers

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

10 years agoSet target_path to $(PWD) by default
Måns Rullgård [Fri, 29 Jan 2010 04:13:29 +0000 (04:13 +0000)]
Set target_path to $(PWD) by default

This simplifies configuring for the most common remote testing
setup.

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

10 years agoAdd AV_COPY32
Måns Rullgård [Fri, 29 Jan 2010 03:26:17 +0000 (03:26 +0000)]
Add AV_COPY32

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

10 years agoDefine av_alias if supported by compiler
Måns Rullgård [Fri, 29 Jan 2010 03:26:14 +0000 (03:26 +0000)]
Define av_alias if supported by compiler

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

10 years agoCheck for may_alias gcc attribute support
Måns Rullgård [Fri, 29 Jan 2010 03:26:12 +0000 (03:26 +0000)]
Check for may_alias gcc attribute support

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

10 years agovp56: check buffer size to fix a potential segfault
Laurent Aimar [Thu, 28 Jan 2010 23:49:46 +0000 (23:49 +0000)]
vp56: check buffer size to fix a potential segfault
patch by Laurent Aimar  fenrir _at_ videolan _dot_ org

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

10 years agoMove ECFLAGS so it doesn't get added multiple times
Måns Rullgård [Thu, 28 Jan 2010 23:30:24 +0000 (23:30 +0000)]
Move ECFLAGS so it doesn't get added multiple times

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

10 years agoSimplify error handling by processing header errors separate from CRC and
Justin Ruggles [Thu, 28 Jan 2010 23:19:33 +0000 (23:19 +0000)]
Simplify error handling by processing header errors separate from CRC and
buffer size vs. frame size errors.

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

10 years agoMove variable declaration to block where it is used and simplify code.
Reimar Döffinger [Thu, 28 Jan 2010 21:01:50 +0000 (21:01 +0000)]
Move variable declaration to block where it is used and simplify code.
Avoids a (incorrect) "possibly used uninitialized" warning, no measurable
speed difference.

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

10 years agoExport H264 profile and level in AVCodecContext.
Rafaël Carré [Thu, 28 Jan 2010 20:57:29 +0000 (20:57 +0000)]
Export H264 profile and level in AVCodecContext.

Patch by Rafaël Carré, rafael D carre A gmail

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

10 years agoExtract duplicated code into a separate function.
Reimar Döffinger [Thu, 28 Jan 2010 20:15:19 +0000 (20:15 +0000)]
Extract duplicated code into a separate function.
5% faster on Intel Atom with gcc 4.4.1 (performance is unchanged
if using av_always_inline).

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

10 years agoAppend ECFLAGS to CFLAGS
Måns Rullgård [Thu, 28 Jan 2010 20:13:46 +0000 (20:13 +0000)]
Append ECFLAGS to CFLAGS

This makes it easy to supply extra flags on the make command line
for testing purposes.

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

10 years agofactorize first filter call out, this makes the code somewhat
Michael Niedermayer [Thu, 28 Jan 2010 19:44:13 +0000 (19:44 +0000)]
factorize first filter call out, this makes the code somewhat
smaller without any speed loss.

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

10 years agoffmpeg.c : Don't set AVFormatParameters::[audio|video]_codec_id
Jai Menon [Thu, 28 Jan 2010 16:17:52 +0000 (16:17 +0000)]
ffmpeg.c : Don't set AVFormatParameters::[audio|video]_codec_id
since it is no longer required.

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

10 years agoAdd RTP/H.263 depacketizer by Martin Storsjö <$firstname () $firstname st>.
Ronald S. Bultje [Thu, 28 Jan 2010 16:08:13 +0000 (16:08 +0000)]
Add RTP/H.263 depacketizer by Martin Storsjö <$firstname () $firstname st>.

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

10 years agoAvoid using deprecated AVFormatParameters::[audio|video]_codec_id field.
Jai Menon [Thu, 28 Jan 2010 15:45:21 +0000 (15:45 +0000)]
Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field.

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

10 years agoSimplify. See "[PATCH] simplify ff_set_fixed_vector()" thread on mailinglist.
Ronald S. Bultje [Thu, 28 Jan 2010 14:29:53 +0000 (14:29 +0000)]
Simplify. See "[PATCH] simplify ff_set_fixed_vector()" thread on mailinglist.

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

10 years agoAdd --malloc-prefix to apply a prefix to malloc, free etc
Måns Rullgård [Thu, 28 Jan 2010 13:06:31 +0000 (13:06 +0000)]
Add --malloc-prefix to apply a prefix to malloc, free etc

This makes it easy to use a replacement allocator instead of the
system default one.

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

10 years agoInitialize thread_context[0] with h264 parser context.
Rafaël Carré [Thu, 28 Jan 2010 13:04:25 +0000 (13:04 +0000)]
Initialize thread_context[0] with h264 parser context.
This allows freeing the parser memory in the thread_context freeing loop.

Patch by Rafaël Carré gmailify(rafael, carre)

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

10 years agoChange wraper functions to always inline, they are faster now that way.
Michael Niedermayer [Thu, 28 Jan 2010 11:37:35 +0000 (11:37 +0000)]
Change wraper functions to always inline, they are faster now that way.
1% faster MBAFF decoding overall, maybe ~0.1% faster for the cathedral sample.

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

10 years agoindent
Michael Niedermayer [Thu, 28 Jan 2010 11:18:06 +0000 (11:18 +0000)]
indent

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

10 years agoRestructure check_mv()
Michael Niedermayer [Thu, 28 Jan 2010 11:12:46 +0000 (11:12 +0000)]
Restructure check_mv()
~20 cpu cycles faster loopfilter

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

10 years agoRestructure if() in check_mv()
Michael Niedermayer [Thu, 28 Jan 2010 10:38:43 +0000 (10:38 +0000)]
Restructure if() in check_mv()
quite a bit faster

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

10 years agoUnroll loops in check_mv()
Michael Niedermayer [Thu, 28 Jan 2010 10:34:06 +0000 (10:34 +0000)]
Unroll loops in check_mv()
~6% faster (slow path) loopfilter (should be ~2% overall)

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

10 years agoFactor mv/ref compare code out.
Michael Niedermayer [Thu, 28 Jan 2010 10:10:02 +0000 (10:10 +0000)]
Factor mv/ref compare code out.
This is a hair slower (0.15% maybe) but i really dont want to have the
identical code duplicated 3 times because gcc adds odd threaded jumps with
register reshuffling and register safe/restore.

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

10 years agoUse av_mallocz in url_open_protocol for URLContext.
Daniel Kristjansson [Thu, 28 Jan 2010 09:11:26 +0000 (09:11 +0000)]
Use av_mallocz in url_open_protocol for URLContext.
Patch by Daniel Kristjansson: danielk cuymedia net

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

10 years agoRemove last MAX_STREAMS from avienc.c
Michael Niedermayer [Thu, 28 Jan 2010 03:37:22 +0000 (03:37 +0000)]
Remove last MAX_STREAMS from avienc.c

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

10 years agoconfigure: consolidate compiler-specific optimisation settings
Måns Rullgård [Thu, 28 Jan 2010 02:50:36 +0000 (02:50 +0000)]
configure: consolidate compiler-specific optimisation settings

In the main per-compiler section, set speed_cflags and size_cflags
with suitable values.  Later one or the other is added to CFLAGS.

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

10 years agoIntroduce AVIStream struct and move stream based variables to it.
Michael Niedermayer [Thu, 28 Jan 2010 02:45:17 +0000 (02:45 +0000)]
Introduce AVIStream struct and move stream based variables to it.
This removes all but one MAX_STREAM from avienc.c.

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

10 years agoSimplify first edge filter condition.
Michael Niedermayer [Thu, 28 Jan 2010 02:41:52 +0000 (02:41 +0000)]
Simplify first edge filter condition.

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

10 years agoCosmetics, mostly indention, 2 or so new fixme comments that i was to lazy
Michael Niedermayer [Thu, 28 Jan 2010 02:20:31 +0000 (02:20 +0000)]
Cosmetics, mostly indention, 2 or so new fixme comments that i was to lazy
to split out

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

10 years agoMake the fast loop filter path work with unavailable left MBs.
Michael Niedermayer [Thu, 28 Jan 2010 02:15:25 +0000 (02:15 +0000)]
Make the fast loop filter path work with unavailable left MBs.
This prevents the issue with having to switch between slow and
fast code paths in each row.
0.5% faster loopfilter for cathedral

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

10 years agoget rid of the start variable.
Michael Niedermayer [Thu, 28 Jan 2010 01:31:06 +0000 (01:31 +0000)]
get rid of the start variable.
a few cycles faster

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

10 years agoUnroll main loop so the edge==0 case is seperate.
Michael Niedermayer [Thu, 28 Jan 2010 01:24:25 +0000 (01:24 +0000)]
Unroll main loop so the edge==0 case is seperate.
This allows many things to be simplified away.
h264 decoder is overall 1% faster with a mbaff sample and
0.1% slower with the cathedral sample, probably because the slow loop
filter code must be loaded into the code cache for each first MB of each
row but isnt used for the following MBs.

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

10 years agoDeclare variable "version" in the PRINT_LIB_VERSION() macro if block,
Stefano Sabatini [Wed, 27 Jan 2010 23:08:43 +0000 (23:08 +0000)]
Declare variable "version" in the PRINT_LIB_VERSION() macro if block,
slightly simpler and more robust.

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

10 years agoSupport demuxing Blu-ray subtitles in matroska files.
Carl Eugen Hoyos [Wed, 27 Jan 2010 22:39:18 +0000 (22:39 +0000)]
Support demuxing Blu-ray subtitles in matroska files.

Patch sent to mailing list by Taylor Ralph, taylor D ralph A gmail

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

10 years agoFix BSD compile (PF_UNSPEC is not a standard define, AF_UNSPEC is).
Ronald S. Bultje [Wed, 27 Jan 2010 22:31:13 +0000 (22:31 +0000)]
Fix BSD compile (PF_UNSPEC is not a standard define, AF_UNSPEC is).

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

10 years agoFix svq3_* function declarations.
Rafaël Carré [Wed, 27 Jan 2010 22:22:01 +0000 (22:22 +0000)]
Fix svq3_* function declarations.

Patch by Rafaël Carré, rafael D carre A gmail

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

10 years agoSVQ1: 4-byte-align codebook tables
Måns Rullgård [Wed, 27 Jan 2010 21:31:19 +0000 (21:31 +0000)]
SVQ1: 4-byte-align codebook tables

These tables are accessed as uint32 so they must be suitably aligned.

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

10 years agoFix possible crashes in mlp parser, it tries to go back 7 bytes after
Reimar Döffinger [Wed, 27 Jan 2010 20:04:19 +0000 (20:04 +0000)]
Fix possible crashes in mlp parser, it tries to go back 7 bytes after
finding the 4-byte signature.
Add a check that ignores the signature if we do not have enough previous
data to go back at least 7 bytes.

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

10 years agoReduce log level of "Extracting .. channel downmix" to AV_LOG_DEBUG, the
Reimar Döffinger [Wed, 27 Jan 2010 20:02:18 +0000 (20:02 +0000)]
Reduce log level of "Extracting .. channel downmix" to AV_LOG_DEBUG, the
message is pointless to ordinary users and is printed once per frame.

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

10 years agoFix duration calculation in the presence of a single wraping of the timeline.
Michael Niedermayer [Wed, 27 Jan 2010 19:37:52 +0000 (19:37 +0000)]
Fix duration calculation in the presence of a single wraping of the timeline.
Fixes issue1714.

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

10 years agoSchedule an increase in the maximum number of streams
Jai Menon [Wed, 27 Jan 2010 19:13:35 +0000 (19:13 +0000)]
Schedule an increase in the maximum number of streams
at next libavformat major version bump.

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

10 years agoffmpeg.c : Increase static limit on the maximum number of
Jai Menon [Wed, 27 Jan 2010 19:11:31 +0000 (19:11 +0000)]
ffmpeg.c : Increase static limit on the maximum number of
input files.

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

10 years agoAdd macro AV_JOIN() for joining two tokens into one
Måns Rullgård [Wed, 27 Jan 2010 17:38:53 +0000 (17:38 +0000)]
Add macro AV_JOIN() for joining two tokens into one

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

10 years agoRevert Revision: 21362
Michael Niedermayer [Wed, 27 Jan 2010 13:30:05 +0000 (13:30 +0000)]
Revert  Revision: 21362
Log:
Set CODEC_CAP_SUBFRAMES for adpcm decoders

This makes ffmpeg stop printing millions of
  Multiple frames in a packet from stream 0
when decoding adpcm.
Reason: adpcm has no subframes, the flag does not belong there

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

10 years agoPrint "Multiple frames in a packet" warning independant of CODEC_CAP_SUBFRAMES
Michael Niedermayer [Wed, 27 Jan 2010 13:27:18 +0000 (13:27 +0000)]
Print "Multiple frames in a packet" warning independant of CODEC_CAP_SUBFRAMES
because CODEC_CAP_SUBFRAMES is primarely misused to hide this warning otherwise
which renders the flag completely useless.

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

10 years agoUpdate comment.
Michael Niedermayer [Wed, 27 Jan 2010 13:18:08 +0000 (13:18 +0000)]
Update comment.

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

10 years agoRevert Revision: 21473
Michael Niedermayer [Wed, 27 Jan 2010 13:03:53 +0000 (13:03 +0000)]
Revert  Revision: 21473
Log:
Fix misc typos, patch by
Fabian Greffrath base64_decode(PGZhYmlhbkBncmVmZnJhdGguY29tPg==).
This violates the spec.

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

10 years agoPrettify PRINT_LIB_VERSION macro
Måns Rullgård [Wed, 27 Jan 2010 12:58:26 +0000 (12:58 +0000)]
Prettify PRINT_LIB_VERSION macro

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

10 years agoGet rid of ifdeffery for printing library versions and configurations
Måns Rullgård [Wed, 27 Jan 2010 12:58:22 +0000 (12:58 +0000)]
Get rid of ifdeffery for printing library versions and configurations

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

10 years agoEmit CONFIG_AVUTIL for completeness
Måns Rullgård [Wed, 27 Jan 2010 12:58:19 +0000 (12:58 +0000)]
Emit CONFIG_AVUTIL for completeness

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

10 years agoUse table to speedup access to non_zero_count in MBAFF with differing interlacing.
Michael Niedermayer [Wed, 27 Jan 2010 11:14:29 +0000 (11:14 +0000)]
Use table to speedup access to non_zero_count in MBAFF with differing interlacing.
~4 cpu cycles speedup

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

10 years agoFix misc typos, patch by
Stefano Sabatini [Wed, 27 Jan 2010 00:31:52 +0000 (00:31 +0000)]
Fix misc typos, patch by
Fabian Greffrath base64_decode(PGZhYmlhbkBncmVmZnJhdGguY29tPg==).

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

10 years ago10l: fix linking
Måns Rullgård [Wed, 27 Jan 2010 00:26:41 +0000 (00:26 +0000)]
10l: fix linking

Alphabetical order isn't always a good idea.

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

10 years agoRename swscale-example to swscale-test, to better reflect the intended
Stefano Sabatini [Wed, 27 Jan 2010 00:25:23 +0000 (00:25 +0000)]
Rename swscale-example to swscale-test, to better reflect the intended
use of the program.

Originally committed as revision 30439 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

10 years agoDocument av_register_protocol(), not that it really needs to be
Stefano Sabatini [Wed, 27 Jan 2010 00:21:28 +0000 (00:21 +0000)]
Document av_register_protocol(), not that it really needs to be
documented but it's nice to have everything documented.

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