platform/upstream/libav.git
14 years agoUse PIX_FMT_NONE for -1 when enum PixelFormat is expected (fixes two icc warnings).
Carl Eugen Hoyos [Mon, 14 Dec 2009 11:18:28 +0000 (11:18 +0000)]
Use PIX_FMT_NONE for -1 when enum PixelFormat is expected (fixes two icc warnings).

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

14 years agoUse enum PixelFormat as type for input_pixfmt to avoid one icc warning.
Carl Eugen Hoyos [Mon, 14 Dec 2009 10:52:32 +0000 (10:52 +0000)]
Use enum PixelFormat as type for input_pixfmt to avoid one icc warning.

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

14 years agoSupport compressed formats in the V4L2 input device.
Luca Abeni [Mon, 14 Dec 2009 10:34:31 +0000 (10:34 +0000)]
Support compressed formats in the V4L2 input device.
Patch by klchxbec AT freenet DOT de.

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

14 years agoAdd support for V4L2 compressed formats in the table used for converting
Luca Abeni [Mon, 14 Dec 2009 10:33:24 +0000 (10:33 +0000)]
Add support for V4L2 compressed formats in the table used for converting
between V4L2 formats and ffmpeg's formats/codecs.
Patch by klchxbec AT freenet DOT de.

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

14 years agoUse the correct type for the V4L2 format.
Luca Abeni [Mon, 14 Dec 2009 10:31:29 +0000 (10:31 +0000)]
Use the correct type for the V4L2 format.

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

14 years agoReturn pkt->size in v4l2_read_packet().
Luca Abeni [Mon, 14 Dec 2009 10:30:37 +0000 (10:30 +0000)]
Return pkt->size in v4l2_read_packet().
mmap_read_frame() takes care of ensuring that the packet size
is correct.

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

14 years agoDisable vdpau support if the detected libvdpau does not support MPEG-4.
Alex Converse [Mon, 14 Dec 2009 06:33:43 +0000 (06:33 +0000)]
Disable vdpau support if the detected libvdpau does not support MPEG-4.

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

14 years agoFLV 8-bit PCM is unsigned, not signed
Daniel Verkamp [Mon, 14 Dec 2009 03:30:25 +0000 (03:30 +0000)]
FLV 8-bit PCM is unsigned, not signed

Fixes issue #1569

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

14 years agoFactorize ic->streams[i] out,
Michael Niedermayer [Mon, 14 Dec 2009 03:23:45 +0000 (03:23 +0000)]
Factorize ic->streams[i] out,
change from ffmbc

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

14 years agoPlace { of the function where indent -kr wants it.
Michael Niedermayer [Mon, 14 Dec 2009 01:15:02 +0000 (01:15 +0000)]
Place { of the function where indent -kr wants it.
Also more consistent with the rest of the code.

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

14 years agoMake sure the Metadata: header is not printed if the only metadata will not
Michael Niedermayer [Sun, 13 Dec 2009 23:39:20 +0000 (23:39 +0000)]
Make sure the Metadata: header is not printed if the only metadata will not
be displayed. (idea from ffmbc)

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

14 years agoMove dump_metadata() to where it is in ffmbc, looks better.
Michael Niedermayer [Sun, 13 Dec 2009 23:34:46 +0000 (23:34 +0000)]
Move dump_metadata() to where it is in ffmbc, looks better.

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

14 years agoindent
Michael Niedermayer [Sun, 13 Dec 2009 23:31:01 +0000 (23:31 +0000)]
indent

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

14 years agoSkip dumping language twice.
Michael Niedermayer [Sun, 13 Dec 2009 23:30:41 +0000 (23:30 +0000)]
Skip dumping language twice.
This looks too ugly. Idea also from ffmbc.

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

14 years agodump metadata for AVStreams & AVPrograms too.
Michael Niedermayer [Sun, 13 Dec 2009 23:27:43 +0000 (23:27 +0000)]
dump metadata for AVStreams & AVPrograms too.

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

14 years agoFactorize dump_metadata() out.
Michael Niedermayer [Sun, 13 Dec 2009 23:19:24 +0000 (23:19 +0000)]
Factorize dump_metadata() out.
Idea from ffmbc, code not, mine is a fraction of the size due to simpler
metadata API.

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

14 years agoTry to simplify av_estimate_timings_from_pts() like in ffmbc.
Michael Niedermayer [Sun, 13 Dec 2009 22:56:59 +0000 (22:56 +0000)]
Try to simplify av_estimate_timings_from_pts() like in ffmbc.
Note if this breaks for some file, report it please!

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

14 years agoCorrect truncated ID3v1 genre name.
Alexander Strange [Sun, 13 Dec 2009 22:31:29 +0000 (22:31 +0000)]
Correct truncated ID3v1 genre name.

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

14 years agoDebug av_log() about stream probing from ffmbc.
Michael Niedermayer [Sun, 13 Dec 2009 22:15:51 +0000 (22:15 +0000)]
Debug av_log() about stream probing from ffmbc.

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

14 years agoAdd CODEC_ID_DNXHD into the 25 fps case.
Michael Niedermayer [Sun, 13 Dec 2009 22:12:20 +0000 (22:12 +0000)]
Add CODEC_ID_DNXHD into the 25 fps case.
Merged from ffmbc.

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

14 years agoSimplify code by using av_metadata_set2().
Michael Niedermayer [Sun, 13 Dec 2009 21:07:47 +0000 (21:07 +0000)]
Simplify code by using av_metadata_set2().
somewhat based on ffmbc

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

14 years agoMore entries for ff_id3v2_metadata_conv from ffmbc.
Michael Niedermayer [Sun, 13 Dec 2009 21:02:43 +0000 (21:02 +0000)]
More entries for ff_id3v2_metadata_conv from ffmbc.

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

14 years agos/author/artist/ for ID3
Michael Niedermayer [Sun, 13 Dec 2009 21:01:49 +0000 (21:01 +0000)]
s/author/artist/ for ID3
from ffmbc

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

14 years agoMore ID3v1 genres from ffmbc.
Michael Niedermayer [Sun, 13 Dec 2009 20:51:38 +0000 (20:51 +0000)]
More ID3v1 genres from ffmbc.

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

14 years agoUse AV_METADATA_DONT_STRDUP* / use av_malloced metadata instead of strduped
Michael Niedermayer [Sun, 13 Dec 2009 20:27:29 +0000 (20:27 +0000)]
Use AV_METADATA_DONT_STRDUP* / use av_malloced metadata instead of strduped
arrays of fixed length.
Code from ffmbc with changes to adapt to our metadata API.

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

14 years agoadd av_metadata_set2(), AV_METADATA_DONT_STRDUP_KEY and AV_METADATA_DONT_STRDUP_VAL
Michael Niedermayer [Sun, 13 Dec 2009 20:24:19 +0000 (20:24 +0000)]
add av_metadata_set2(), AV_METADATA_DONT_STRDUP_KEY and AV_METADATA_DONT_STRDUP_VAL

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

14 years agoAdd flags to prevent strdup() on arguments to av_metadata_set2().
Michael Niedermayer [Sun, 13 Dec 2009 20:22:27 +0000 (20:22 +0000)]
Add flags to prevent strdup() on arguments to av_metadata_set2().
I cannot use the same ABI as ffmbc as value 2 is already used in ffmpeg,
besides the name AV_METADATA_NONCONST* makes no sense to me.
Add av_metadata_set2() that takes flags.

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

14 years agoUntil -DHAVE_AV_CONFIG_H is removed from ffplays compilation, *printf must be #undef.
Michael Niedermayer [Sun, 13 Dec 2009 18:46:29 +0000 (18:46 +0000)]
Until -DHAVE_AV_CONFIG_H is removed from ffplays compilation, *printf must be #undef.
Without this random changes to the header inclusion can trigger
linking failures, and these are not even picked up in some environments
(some fate machines didnt catch it).

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

14 years agoMove #include where it belongs.
Michael Niedermayer [Sun, 13 Dec 2009 18:42:39 +0000 (18:42 +0000)]
Move #include where it belongs.
This as a sideeffect fixes the linking failure of ffplay.

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

14 years agoGet rid of useless casts.
Michael Niedermayer [Sun, 13 Dec 2009 17:54:09 +0000 (17:54 +0000)]
Get rid of useless casts.

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

14 years agoAPIchanges update for av_d2str()
Michael Niedermayer [Sun, 13 Dec 2009 17:10:30 +0000 (17:10 +0000)]
APIchanges update for av_d2str()

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

14 years agoAdd a function to convert a number to a av_malloced string.
Michael Niedermayer [Sun, 13 Dec 2009 17:09:41 +0000 (17:09 +0000)]
Add a function to convert a number to a av_malloced string.

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

14 years agoPrint extradata in case of failure. I had this in my local tree and it
Michael Niedermayer [Sun, 13 Dec 2009 16:20:00 +0000 (16:20 +0000)]
Print extradata in case of failure. I had this in my local tree and it
might be usefull for others ...

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

14 years agoAPIChanges & minor bump due to avg_frame_rate addition.
Michael Niedermayer [Sun, 13 Dec 2009 15:55:07 +0000 (15:55 +0000)]
APIChanges & minor bump due to avg_frame_rate addition.

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

14 years agoAdd avg_frame_rate.
Michael Niedermayer [Sun, 13 Dec 2009 15:52:11 +0000 (15:52 +0000)]
Add avg_frame_rate.

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

14 years agoRead and decode block data in separate functions to prepare support for
Thilo Borgmann [Sun, 13 Dec 2009 15:40:26 +0000 (15:40 +0000)]
Read and decode block data in separate functions to prepare support for
multi-channel correlation mode.

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

14 years agoUse constant CODEC_ID_NONE instead of 0 where appropriate.
Carl Eugen Hoyos [Sun, 13 Dec 2009 15:28:00 +0000 (15:28 +0000)]
Use constant CODEC_ID_NONE instead of 0 where appropriate.

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

14 years agoRemove commented out code.
Michael Niedermayer [Sun, 13 Dec 2009 15:01:09 +0000 (15:01 +0000)]
Remove commented out code.

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

14 years agoShow help if no cmd line options are provided at all.
Michael Niedermayer [Sun, 13 Dec 2009 13:49:14 +0000 (13:49 +0000)]
Show help if no cmd line options are provided at all.
This safes the users time to find out which of -h --help -? works.

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

14 years agoFactor out extradata reading code.
Kostya Shishkov [Sun, 13 Dec 2009 10:07:08 +0000 (10:07 +0000)]
Factor out extradata reading code.
Borrowed from RM demuxer in FFmbc.

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

14 years agoRM audio stream version should be 16-bit followed by header size or reserved
Kostya Shishkov [Sun, 13 Dec 2009 09:08:58 +0000 (09:08 +0000)]
RM audio stream version should be 16-bit followed by header size or reserved
word, so treat it this way instead of extracting different parts from 32-bit
value.

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

14 years agoMake RM demuxer look more like proper demuxer by introducing codec tags
Kostya Shishkov [Sun, 13 Dec 2009 08:51:27 +0000 (08:51 +0000)]
Make RM demuxer look more like proper demuxer by introducing codec tags
instead of many strcmp() on always four-byte strings.
Idea borrowed from RM demuxer in FFmbc by Baptiste Coudurier.

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

14 years agoFactor out variable declaration
Kostya Shishkov [Sun, 13 Dec 2009 08:44:06 +0000 (08:44 +0000)]
Factor out variable declaration

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

14 years agoClarify comment: although still hacky, it is correct for existing libtheora
David Conrad [Sat, 12 Dec 2009 20:18:49 +0000 (20:18 +0000)]
Clarify comment: although still hacky, it is correct for existing libtheora

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

14 years agolibtheoraenc.c: mark keyframes
David Conrad [Sat, 12 Dec 2009 20:18:46 +0000 (20:18 +0000)]
libtheoraenc.c: mark keyframes

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

14 years agoFix PTS for OGM codecs.
David Conrad [Sat, 12 Dec 2009 20:18:43 +0000 (20:18 +0000)]
Fix PTS for OGM codecs.
Fixes issue251

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

14 years agoBe less picky on invalid frame_pred_frame_dct values.
Michael Niedermayer [Sat, 12 Dec 2009 19:44:01 +0000 (19:44 +0000)]
Be less picky on invalid frame_pred_frame_dct values.
Fixed issue1615.

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

14 years agoOnly list libavfilter filters if libavfilter has been enabled during
Stefano Sabatini [Sat, 12 Dec 2009 19:15:56 +0000 (19:15 +0000)]
Only list libavfilter filters if libavfilter has been enabled during
configuration.
Fix compilation if FFmpeg is not configured with --enable-avfilter.

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

14 years agoMove list_fmts() from ffmpeg.c to cmdutils.{h,c}, so that it can be
Stefano Sabatini [Sat, 12 Dec 2009 17:45:20 +0000 (17:45 +0000)]
Move list_fmts() from ffmpeg.c to cmdutils.{h,c}, so that it can be
shared by the other ff* tools code.

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

14 years agoAdd ROQ format regression test.
Reimar Döffinger [Sat, 12 Dec 2009 17:34:24 +0000 (17:34 +0000)]
Add ROQ format regression test.

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

14 years agoSVQ3 : Set avctx->pix_fmt correctly during decoder initialisation.
Jai Menon [Sat, 12 Dec 2009 17:10:05 +0000 (17:10 +0000)]
SVQ3 : Set avctx->pix_fmt correctly during decoder initialisation.
Fixes issue 1591.

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

14 years agoAdd an entry for the av_bmg_next() function addition.
Stefano Sabatini [Sat, 12 Dec 2009 16:28:59 +0000 (16:28 +0000)]
Add an entry for the av_bmg_next() function addition.

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

14 years agoImplement av_bmg_next(), a Box-Muller Gaussian random generator.
Stefano Sabatini [Sat, 12 Dec 2009 16:24:37 +0000 (16:24 +0000)]
Implement av_bmg_next(), a Box-Muller Gaussian random generator.

See the thread:
"[FFmpeg-devel] [PATCH] Box-Muller gaussian generator".

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

14 years agoImplement a -filters option, listing all the available libavfilter
Stefano Sabatini [Sat, 12 Dec 2009 16:18:11 +0000 (16:18 +0000)]
Implement a -filters option, listing all the available libavfilter
filters.
Currently filters are not registered, so the option will show none.

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

14 years agoReset pts_buffers in av_read_frame_flush().
John Stebbins [Sat, 12 Dec 2009 15:26:33 +0000 (15:26 +0000)]
Reset pts_buffers in av_read_frame_flush().

Patch by John Stebbins, jstebbins jetheaddev com

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

14 years agoCommit functions used by both AMRNB and SIPR
Vitor Sessak [Sat, 12 Dec 2009 13:58:07 +0000 (13:58 +0000)]
Commit functions used by both AMRNB and SIPR

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

14 years agoReduce the number of encoded frames for the dnxhd tests to 5.
Stefano Sabatini [Sat, 12 Dec 2009 13:52:19 +0000 (13:52 +0000)]
Reduce the number of encoded frames for the dnxhd tests to 5.
Significantly reduce codectest execution time.

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

14 years agoFail earlier for unsupported resolutions or pixel formats when encoding
Tomas Härdin [Fri, 11 Dec 2009 23:56:49 +0000 (23:56 +0000)]
Fail earlier for unsupported resolutions or pixel formats when encoding
dv.

Patch by Tomas Härdin, tomas D hardin A codemill D se

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

14 years agoindent
Michael Niedermayer [Fri, 11 Dec 2009 21:50:08 +0000 (21:50 +0000)]
indent

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

14 years agoMake sure av_new_packet() initializes the data and destruct pointers.
Michael Niedermayer [Fri, 11 Dec 2009 21:49:30 +0000 (21:49 +0000)]
Make sure av_new_packet() initializes the data and destruct pointers.
Some code does call av_free_packet() on failed av_new_packets(), this
prevents the freeing of uninitialized pointers.

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

14 years agoMake parse_filter() parsing more robust.
Stefano Sabatini [Fri, 11 Dec 2009 20:02:10 +0000 (20:02 +0000)]
Make parse_filter() parsing more robust.

Add ';' and '\n' to the terminating characters for the name of a
filter, and ';' to the terminating characters for its args.

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

14 years agoDump RTMP packet contents in debug mode
Kostya Shishkov [Fri, 11 Dec 2009 17:13:35 +0000 (17:13 +0000)]
Dump RTMP packet contents in debug mode

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

14 years ago5l trocadero: don't forget to free packet in gen_connect()
Martin Storsjö [Fri, 11 Dec 2009 15:31:58 +0000 (15:31 +0000)]
5l trocadero: don't forget to free packet in gen_connect()
Patch by Martin Storsjö ($name at $name dot `abbreviation for "street"`)

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

14 years agoDo not try to interact with RTMP server after "stop" command was received.
Martin Storsjö [Fri, 11 Dec 2009 11:37:21 +0000 (11:37 +0000)]
Do not try to interact with RTMP server after "stop" command was received.
Patch by Martin Storsjö ($name at $name dot `Sao Tome and Principe domain`)

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

14 years ago(Partly) support Metasoft MJPEG Codec, fixes half of issue 1611.
Carl Eugen Hoyos [Thu, 10 Dec 2009 23:06:23 +0000 (23:06 +0000)]
(Partly) support Metasoft MJPEG Codec, fixes half of issue 1611.

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

14 years agoSupport Etymonix MPEG-2 video codec, fixes issue 1603.
Carl Eugen Hoyos [Thu, 10 Dec 2009 22:38:49 +0000 (22:38 +0000)]
Support Etymonix MPEG-2 video codec, fixes issue 1603.

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

14 years agoDo not print 'faac:' when using libfaad.
Carl Eugen Hoyos [Thu, 10 Dec 2009 22:29:21 +0000 (22:29 +0000)]
Do not print 'faac:' when using libfaad.

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

14 years agoCosmetic (restructure RGB ljpeg check to be more readable)
Michael Niedermayer [Thu, 10 Dec 2009 20:05:04 +0000 (20:05 +0000)]
Cosmetic (restructure RGB ljpeg check to be more readable)

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

14 years ago10l, Fix YUV ljpeg that i just broke by mistake.
Michael Niedermayer [Thu, 10 Dec 2009 19:41:47 +0000 (19:41 +0000)]
10l, Fix YUV ljpeg that i just broke by mistake.

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

14 years agoCorrect a forgotten RGB32.
Michael Niedermayer [Thu, 10 Dec 2009 19:40:15 +0000 (19:40 +0000)]
Correct a forgotten RGB32.

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

14 years agoFlip red and blue in rct-less lossless jpeg.
Michael Niedermayer [Thu, 10 Dec 2009 18:18:57 +0000 (18:18 +0000)]
Flip red and blue in rct-less lossless jpeg.
Fixes issue1466, and decoding of plain lossless jpeg.

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

14 years agoLossless jpeg expects and uses BGRA not RGB32 (this probably caused a problem on
Michael Niedermayer [Thu, 10 Dec 2009 18:14:26 +0000 (18:14 +0000)]
Lossless jpeg expects and uses BGRA not RGB32 (this probably caused a problem on
big endian)

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

14 years agoFix RGB LJPEG encoding.
Michael Niedermayer [Thu, 10 Dec 2009 18:07:35 +0000 (18:07 +0000)]
Fix RGB LJPEG encoding.

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

14 years agoCosmetics: Fix typos in r20780.
Carl Eugen Hoyos [Wed, 9 Dec 2009 22:45:56 +0000 (22:45 +0000)]
Cosmetics: Fix typos in r20780.

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

14 years agoadd dvcs to dvvideo, fixes issue 1604
Ben Littler [Wed, 9 Dec 2009 20:55:47 +0000 (20:55 +0000)]
add dvcs to dvvideo, fixes issue 1604

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

14 years agoImprove time_increment_bits guessing code.
Michael Niedermayer [Wed, 9 Dec 2009 14:05:39 +0000 (14:05 +0000)]
Improve time_increment_bits guessing code.

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

14 years agoEnd startcode prefix search at the end of a AVC unit.
Michael Niedermayer [Wed, 9 Dec 2009 12:49:59 +0000 (12:49 +0000)]
End startcode prefix search at the end of a AVC unit.
Fixes issue1550.

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

14 years agorevert r20775, because equivalent code has been committed to x264 instead
Loren Merritt [Wed, 9 Dec 2009 00:38:22 +0000 (00:38 +0000)]
revert r20775, because equivalent code has been committed to x264 instead

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

14 years agoMinor version bump for mbtree addition.
Jason Garrett-Glaser [Wed, 9 Dec 2009 00:24:33 +0000 (00:24 +0000)]
Minor version bump for mbtree addition.

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

14 years agoSupport AVI1 and AVI2 in avi as MJPEG.
Carl Eugen Hoyos [Tue, 8 Dec 2009 23:47:45 +0000 (23:47 +0000)]
Support AVI1 and AVI2 in avi as MJPEG.
Fixes issue 1602.

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

14 years agoMention patcheck.
Zhihang Wang [Tue, 8 Dec 2009 23:23:44 +0000 (23:23 +0000)]
Mention patcheck.

Patch by Zhihang Wang, zhihang D wang A gmail

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

14 years agoMake parse_key_value_pair() print an error message if a key is not
Stefano Sabatini [Tue, 8 Dec 2009 22:01:25 +0000 (22:01 +0000)]
Make parse_key_value_pair() print an error message if a key is not
found in the context.

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

14 years agoUse an unsigned int to contain all the color values of the expressions
Stefano Sabatini [Tue, 8 Dec 2009 22:00:07 +0000 (22:00 +0000)]
Use an unsigned int to contain all the color values of the expressions
of the type 0xRRGBBAA parsed by av_parse_color(), using a simple int
was resulting in unexpected results as the most significant bit was
used for the sign.

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

14 years agofix a crash in ape decoding on x86_32 sse2
Loren Merritt [Tue, 8 Dec 2009 21:24:01 +0000 (21:24 +0000)]
fix a crash in ape decoding on x86_32 sse2

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

14 years agoAC-3 decoder is no longer GPL; update FAQ
Daniel Verkamp [Tue, 8 Dec 2009 21:18:40 +0000 (21:18 +0000)]
AC-3 decoder is no longer GPL; update FAQ

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

14 years agoBoolify options passed to x264.
Jason Garrett-Glaser [Tue, 8 Dec 2009 20:35:01 +0000 (20:35 +0000)]
Boolify options passed to x264.

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

14 years agoAdd MBtree support for libx264
Erik Slagter [Tue, 8 Dec 2009 20:01:46 +0000 (20:01 +0000)]
Add MBtree support for libx264
Patch by Erik Slagter

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

14 years agoaac: Set sample rate in avctx from ADTS header (if not already set by some
Andreas Öman [Tue, 8 Dec 2009 19:20:36 +0000 (19:20 +0000)]
aac: Set sample rate in avctx from ADTS header (if not already set by some
other means)

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

14 years agoReduce warnings about too few consumed bytes to debug level.
Michael Niedermayer [Tue, 8 Dec 2009 17:38:02 +0000 (17:38 +0000)]
Reduce warnings about too few consumed bytes to debug level.
Fixes issue1061.

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

14 years agoFix alpha plane flipping for the yuva420p and similar pixel formats.
Stefano Sabatini [Tue, 8 Dec 2009 17:08:49 +0000 (17:08 +0000)]
Fix alpha plane flipping for the yuva420p and similar pixel formats.

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

14 years agoDo as the comment says and signal an error.
Michael Niedermayer [Tue, 8 Dec 2009 14:50:46 +0000 (14:50 +0000)]
Do as the comment says and signal an error.

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

14 years ago10l bug, use av_fast_malloc() instead if av_malloc() for allocating audio
Michael Niedermayer [Tue, 8 Dec 2009 14:48:36 +0000 (14:48 +0000)]
10l bug, use av_fast_malloc() instead if av_malloc() for allocating audio
buffers.
This and the previous revision fix a heap overflow.

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

14 years agoTry to allocate audio buffer sizes depending on the number of input bytes.
Michael Niedermayer [Tue, 8 Dec 2009 14:28:28 +0000 (14:28 +0000)]
Try to allocate audio buffer sizes depending on the number of input bytes.
Fixes issue1167.

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

14 years agoCheck that the buffer size speified to avcodec_encode_audio() is not larger than...
Michael Niedermayer [Tue, 8 Dec 2009 14:18:15 +0000 (14:18 +0000)]
Check that the buffer size speified to avcodec_encode_audio() is not larger than the actual size.

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

14 years agoDo not assume that av_get_bits_per_sample() is a multiple of 8.
Michael Niedermayer [Tue, 8 Dec 2009 14:10:49 +0000 (14:10 +0000)]
Do not assume that av_get_bits_per_sample() is a multiple of 8.

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

14 years agoRaise threshold of h263 probe by 1 to avoid misdetection.
Michael Niedermayer [Tue, 8 Dec 2009 12:34:08 +0000 (12:34 +0000)]
Raise threshold of h263 probe by 1 to avoid misdetection.
Fixes issue 1588.

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

14 years agoAdd out commented av_log to debug h263_probe.
Michael Niedermayer [Tue, 8 Dec 2009 12:33:00 +0000 (12:33 +0000)]
Add out commented av_log to debug h263_probe.

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

14 years agoAlso print the number of invalid packets in the debug output.
Michael Niedermayer [Tue, 8 Dec 2009 12:24:41 +0000 (12:24 +0000)]
Also print the number of invalid packets in the debug output.

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

14 years agoFlip the comparission direction of vid+audio+priv1 and pspack, it appears to have
Michael Niedermayer [Tue, 8 Dec 2009 12:19:30 +0000 (12:19 +0000)]
Flip the comparission direction of vid+audio+priv1 and pspack, it appears to have
been wrong.
Fixes issue1571.

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

14 years agoMake sure that compilation fails if functions like ff_put_string are used in code
Reimar Döffinger [Mon, 7 Dec 2009 21:06:51 +0000 (21:06 +0000)]
Make sure that compilation fails if functions like ff_put_string are used in code
that  selected a bitstream writer for which they do not work.

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