platform/upstream/libav.git
15 years agoSince some junk may be or may be not present before actual VC-1 extradata,
Andrew Dennison [Tue, 6 Oct 2009 15:30:08 +0000 (15:30 +0000)]
Since some junk may be or may be not present before actual VC-1 extradata,
search for real extradata start instead of always skipping one byte.

Patch by Andrew Dennison gmailify(${name}d, lists)
Thread: [PATCH] Fix VC1 "Incomplete extradata" for mkv files generated by eac3to

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

15 years agoRemove casts that are useless since the argument is void *.
Reimar Döffinger [Tue, 6 Oct 2009 06:33:18 +0000 (06:33 +0000)]
Remove casts that are useless since the argument is void *.

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

15 years agoAllow building api-example from outside of libavcodec and also
Jai Menon [Tue, 6 Oct 2009 06:18:57 +0000 (06:18 +0000)]
Allow building api-example from outside of libavcodec and also
make it more consistent with libavformat/output-example.

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

15 years agoOnly read ID3v1 tag if ID3v2 isn't present or is empty.
Anton Khirnov [Mon, 5 Oct 2009 21:36:56 +0000 (21:36 +0000)]
Only read ID3v1 tag if ID3v2 isn't present or is empty.
This prevents the demuxer from exporting multiple semantically identical but
differently named tags.

Patch by Anton Khirnov, wyskas gmail

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

15 years agocosmetics: reindent and line wrap after last commit
Justin Ruggles [Mon, 5 Oct 2009 21:33:50 +0000 (21:33 +0000)]
cosmetics: reindent and line wrap after last commit

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

15 years agoalacenc: add a fixed LPC coefficient mode as compression level 1. old
Justin Ruggles [Mon, 5 Oct 2009 21:27:36 +0000 (21:27 +0000)]
alacenc: add a fixed LPC coefficient mode as compression level 1. old
compression level 1 is now compression level 2 and is still the default.

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

15 years agoRevert:
Michael Niedermayer [Mon, 5 Oct 2009 20:18:16 +0000 (20:18 +0000)]
Revert:
r18826 | stefano | 2009-05-14 20:50:58 +0200 (Thu, 14 May 2009) | 2 lines
Make av_set_string3() print a message in case of unknown option.

This change led to multiple identical error messages to be printed if an option
was not found.

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

15 years agoid3v2: Export all text information frames with correct names.
Anton Khirnov [Mon, 5 Oct 2009 20:10:07 +0000 (20:10 +0000)]
id3v2: Export all text information frames with correct names.
Patch by Anton Khirnov <wyskas at gmail dot com>

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

15 years agoMP3 muxer: Write all metadata.
Anton Khirnov [Mon, 5 Oct 2009 16:06:00 +0000 (16:06 +0000)]
MP3 muxer: Write all metadata.
Patch by Anton Khirnov <wyskas at gmail dot com>

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

15 years agoFix pcm_read_seek () when the position it calculates is greater than 2 GB.
Daniel Verkamp [Mon, 5 Oct 2009 09:19:42 +0000 (09:19 +0000)]
Fix pcm_read_seek () when the position it calculates is greater than 2 GB.

pcm_read_seek() puts the return value of url_fseek() in an int and then
compares < 0 to see if an error occurred; if the position is greater
than 2 GB, the 32-bit signed int result will be < 0.

Change the type of ret to int64_t to avoid the wraparound.

patch by Daniel Verkamp, daniel drv nu

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

15 years agoAllow the combined TrueHD/AC3 tracks on Blu-Ray discs to be demuxed as two separate...
Ian Caulfield [Mon, 5 Oct 2009 08:38:39 +0000 (08:38 +0000)]
Allow the combined TrueHD/AC3 tracks on Blu-Ray discs to be demuxed as two separate streams.

Patch by Ian Caulfield, ian D caulfield A gmail

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

15 years agoARM: add ff_ prefix to lots of functions
Måns Rullgård [Sun, 4 Oct 2009 13:13:12 +0000 (13:13 +0000)]
ARM: add ff_ prefix to lots of functions

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

15 years agoARM: cosmetics
Måns Rullgård [Sun, 4 Oct 2009 13:13:08 +0000 (13:13 +0000)]
ARM: cosmetics

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

15 years agoARM: replace some #if with if()
Måns Rullgård [Sun, 4 Oct 2009 13:13:06 +0000 (13:13 +0000)]
ARM: replace some #if with if()

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

15 years agoARM: clean up file/function naming conventions
Måns Rullgård [Sun, 4 Oct 2009 13:13:02 +0000 (13:13 +0000)]
ARM: clean up file/function naming conventions

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

15 years agoARM: clean up dsputil initialisation
Måns Rullgård [Sun, 4 Oct 2009 13:12:55 +0000 (13:12 +0000)]
ARM: clean up dsputil initialisation

- Move v5 and v6 initialisation to separate files.
- Move NEON IDCT selection to ff_dsputil_init_neon()

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

15 years agoSun Raster RGB support
Peter Ross [Sun, 4 Oct 2009 08:42:23 +0000 (08:42 +0000)]
Sun Raster RGB support

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

15 years agoAdd FIXME about low_delay vs has_b_frames.
Carl Eugen Hoyos [Sat, 3 Oct 2009 19:40:52 +0000 (19:40 +0000)]
Add FIXME about low_delay vs has_b_frames.

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

15 years agoH264 allows B frames without requiring a >=1 sized buffer.
Wallak [Sat, 3 Oct 2009 19:30:09 +0000 (19:30 +0000)]
H264 allows B frames without requiring a >=1 sized buffer.

Patch by wallak, wallak free fr

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

15 years agoARM: shorten some long macro names
Måns Rullgård [Sat, 3 Oct 2009 18:22:56 +0000 (18:22 +0000)]
ARM: shorten some long macro names

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

15 years agoARM: update ldm/stm instructions to modern syntax
Måns Rullgård [Sat, 3 Oct 2009 18:22:52 +0000 (18:22 +0000)]
ARM: update ldm/stm instructions to modern syntax

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

15 years agoARM: whitespace cosmetics
Måns Rullgård [Sat, 3 Oct 2009 18:22:49 +0000 (18:22 +0000)]
ARM: whitespace cosmetics

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

15 years agoReindent after channel layout commit from yesterday
Robert Swain [Sat, 3 Oct 2009 14:59:40 +0000 (14:59 +0000)]
Reindent after channel layout commit from yesterday

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

15 years agoincrease maximum compressed frame size
Sascha Sommer [Sat, 3 Oct 2009 10:01:23 +0000 (10:01 +0000)]
increase maximum compressed frame size
fixes playback of piece.wmv

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

15 years agoreturn AVERROR_INVALIDDATA when the bitstream could not be decoded
Sascha Sommer [Sat, 3 Oct 2009 09:44:05 +0000 (09:44 +0000)]
return AVERROR_INVALIDDATA when the bitstream could not be decoded

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

15 years agoSupport decoding of uncompressed PCX scanlines
Peter Ross [Sat, 3 Oct 2009 05:18:32 +0000 (05:18 +0000)]
Support decoding of uncompressed PCX scanlines

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

15 years agoARM: use plain labels for pc-relative addressing
Måns Rullgård [Fri, 2 Oct 2009 23:11:03 +0000 (23:11 +0000)]
ARM: use plain labels for pc-relative addressing

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

15 years agoARM: remove unnecessary .fpu neon directives
Måns Rullgård [Fri, 2 Oct 2009 19:35:12 +0000 (19:35 +0000)]
ARM: remove unnecessary .fpu neon directives

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

15 years agoARM: use undocumented .syntax directive to enable UAL syntax
Måns Rullgård [Fri, 2 Oct 2009 19:35:07 +0000 (19:35 +0000)]
ARM: use undocumented .syntax directive to enable UAL syntax

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

15 years agoPrefer "loglevel" over "logging level number or string" as argname of
Stefano Sabatini [Fri, 2 Oct 2009 19:06:27 +0000 (19:06 +0000)]
Prefer "loglevel" over "logging level number or string" as argname of
the loglevel command line option.

Make the loglevel option help message more clear, since the option
argument is shown as a single token, and make the whole message better
aligned with the other help messages.

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

15 years agoAdd vorbis channel layout support according to those defined in the Vorbis I
Robert Swain [Fri, 2 Oct 2009 12:59:37 +0000 (12:59 +0000)]
Add vorbis channel layout support according to those defined in the Vorbis I
specification

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

15 years agoARM: apply extern symbol prefix where needed
Måns Rullgård [Fri, 2 Oct 2009 08:42:00 +0000 (08:42 +0000)]
ARM: apply extern symbol prefix where needed

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

15 years agoconfigure: define extern symbol prefix without quotes for for asm files
Måns Rullgård [Fri, 2 Oct 2009 08:41:57 +0000 (08:41 +0000)]
configure: define extern symbol prefix without quotes for for asm files

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

15 years agoDo not use -mdynamic-no-pic if PIC is enabled
Måns Rullgård [Fri, 2 Oct 2009 08:41:54 +0000 (08:41 +0000)]
Do not use -mdynamic-no-pic if PIC is enabled

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

15 years agoARM: add -marm flag since we do not support Thumb
Måns Rullgård [Fri, 2 Oct 2009 08:41:52 +0000 (08:41 +0000)]
ARM: add -marm flag since we do not support Thumb

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

15 years agowav demuxer: return AVERROR_EOF instead of AVERROR(EIO) when the end of
Reimar Döffinger [Fri, 2 Oct 2009 07:27:08 +0000 (07:27 +0000)]
wav demuxer: return AVERROR_EOF instead of AVERROR(EIO) when the end of
the file is reached normally, without any error.

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

15 years agowav: return av_get_packet errors unchanged.
Reimar Döffinger [Fri, 2 Oct 2009 07:22:44 +0000 (07:22 +0000)]
wav: return av_get_packet errors unchanged.

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

15 years agoFix seek regression test: several AVERROR(EIO) correctly changed to AVERROR_EOF.
Reimar Döffinger [Fri, 2 Oct 2009 07:19:21 +0000 (07:19 +0000)]
Fix seek regression test: several AVERROR(EIO) correctly changed to AVERROR_EOF.

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

15 years agoRemove url_feof check that would be triggered only after incorrectly producing
Reimar Döffinger [Fri, 2 Oct 2009 07:05:52 +0000 (07:05 +0000)]
Remove url_feof check that would be triggered only after incorrectly producing
an empty packet and also av_get_packet already handles EOF now.

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

15 years agoRemove useless setting of pkt->size, av_get_packet already handles that.
Reimar Döffinger [Fri, 2 Oct 2009 07:03:04 +0000 (07:03 +0000)]
Remove useless setting of pkt->size, av_get_packet already handles that.

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

15 years agoReturn special EOF checking for aiff and au demuxers, the check was at
Reimar Döffinger [Fri, 2 Oct 2009 06:42:20 +0000 (06:42 +0000)]
Return special EOF checking for aiff and au demuxers, the check was at
the wrong place, causing an empty packet to be read before EOF was
detected and the eof detection is already now handled by av_get_packet anyway.

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

15 years agoReturn any error return values from av_get_packet, get_buffer etc. unchanged
Reimar Döffinger [Fri, 2 Oct 2009 06:40:50 +0000 (06:40 +0000)]
Return any error return values from av_get_packet, get_buffer etc. unchanged
in the raw demuxers.
Also remove special handling of 0-size reads, if they are due to an error/eof,
these are already converted to the appropriate error by get_buffer.

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

15 years agoMake seek regression tests fit after previous get_buffer change.
Reimar Döffinger [Fri, 2 Oct 2009 06:38:56 +0000 (06:38 +0000)]
Make seek regression tests fit after previous get_buffer change.
The au and aiff demuxers would always return an empty packet before
detecting EOF, this is now fixed with av_get_packet etc. returning EOF.

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

15 years agoMake get_buffer and get_partial_buffer return url_ferror or AVERROR_EOF as
Reimar Döffinger [Fri, 2 Oct 2009 06:36:39 +0000 (06:36 +0000)]
Make get_buffer and get_partial_buffer return url_ferror or AVERROR_EOF as
appropriate if it couldn't read any data at all.
This should make handling of EOF and error simpler or make it work right without
extra code in a few place (e.g. raw demuxer).

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

15 years agoCheck whether 32-bit x86 is really 64-bit
David Conrad [Thu, 1 Oct 2009 21:38:25 +0000 (21:38 +0000)]
Check whether 32-bit x86 is really 64-bit
Fixes configure on OS X 10.6

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

15 years agomatroskadec: cosmetics: indentation
Aurelien Jacobs [Thu, 1 Oct 2009 21:15:36 +0000 (21:15 +0000)]
matroskadec: cosmetics: indentation

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

15 years agomatroskadec: don't overwrite extradata already read by ff_get_wav_header()
Aurelien Jacobs [Thu, 1 Oct 2009 21:14:46 +0000 (21:14 +0000)]
matroskadec: don't overwrite extradata already read by ff_get_wav_header()

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

15 years agomatroskadec: fix handling of A_MS/ACM track with no extradata
Aurelien Jacobs [Thu, 1 Oct 2009 21:14:05 +0000 (21:14 +0000)]
matroskadec: fix handling of A_MS/ACM track with no extradata

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

15 years agoMake rawvideo_read_packet return partial frames.
Reimar Döffinger [Thu, 1 Oct 2009 17:32:22 +0000 (17:32 +0000)]
Make rawvideo_read_packet return partial frames.
This is consistent with other demuxers and also fixes a memleak (memory
allocated for partial frame data was leaked).

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

15 years agoSimplify: remove pointless {} and else
Reimar Döffinger [Thu, 1 Oct 2009 17:26:20 +0000 (17:26 +0000)]
Simplify: remove pointless {} and else

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

15 years agoRemove pointless setting of pkt->size, av_get_packet already handles this.
Reimar Döffinger [Thu, 1 Oct 2009 17:22:01 +0000 (17:22 +0000)]
Remove pointless setting of pkt->size, av_get_packet already handles this.

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

15 years agoau demuxer: pass av_get_packet error on unchanged instead of converting to
Reimar Döffinger [Thu, 1 Oct 2009 17:08:33 +0000 (17:08 +0000)]
au demuxer: pass av_get_packet error on unchanged instead of converting to
AVERROR(EIO).

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

15 years agoav_new_packet failing should return ENOMEM, not EIO.
Reimar Döffinger [Thu, 1 Oct 2009 16:10:09 +0000 (16:10 +0000)]
av_new_packet failing should return ENOMEM, not EIO.

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

15 years agoMake avcodec_open set codec_id and codec_type if they haven't been set.
Reimar Döffinger [Thu, 1 Oct 2009 15:54:55 +0000 (15:54 +0000)]
Make avcodec_open set codec_id and codec_type if they haven't been set.
This fixes the API breakage introduced by the check that avctx codec id and type
match the opened codec and should make (almost?) all applications work again.

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

15 years agoput_bits can only reliably write up to 31 bit bits, above it relies on
Reimar Döffinger [Thu, 1 Oct 2009 15:40:29 +0000 (15:40 +0000)]
put_bits can only reliably write up to 31 bit bits, above it relies on
undefined shift behaviour.
Document this, fix the assert and add a put_bits32 to handle writing 32
bits and use that where necessary.

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

15 years agoUse MANGLE in cavsdsp, the current version using "m" constraints will not
Reimar Döffinger [Thu, 1 Oct 2009 15:30:27 +0000 (15:30 +0000)]
Use MANGLE in cavsdsp, the current version using "m" constraints will not
compile on e.g. OpenBSD due to running out of registers.

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

15 years agoDocument -sn option.
Diego Biurrun [Thu, 1 Oct 2009 13:48:23 +0000 (13:48 +0000)]
Document -sn option.

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

15 years agoFix indentation after last commit.
Benoit Fouet [Thu, 1 Oct 2009 12:21:54 +0000 (12:21 +0000)]
Fix indentation after last commit.

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

15 years agoAdd support for TARGA images without RLE compression.
Anne-Laure de Smit [Thu, 1 Oct 2009 12:20:08 +0000 (12:20 +0000)]
Add support for TARGA images without RLE compression.
Patch by Anne-Laure de Smit: gmail_address(annelaure, desmit)

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

15 years agoExplain the process of patch review and commit a bit.
Diego Biurrun [Thu, 1 Oct 2009 11:58:34 +0000 (11:58 +0000)]
Explain the process of patch review and commit a bit.

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

15 years agoFix playback of strange AVI files with stray LIST.
Aurelien Jacobs [Thu, 1 Oct 2009 10:24:02 +0000 (10:24 +0000)]
Fix playback of strange AVI files with stray LIST.
sample: http://samples.mplayerhq.hu/avi/AV36_1.AVI
fix suggested by Michael

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

15 years agoFix wrongly indented block.
Diego Biurrun [Thu, 1 Oct 2009 09:30:08 +0000 (09:30 +0000)]
Fix wrongly indented block.

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

15 years agoUse "!exp" instead of "exp == NULL" in if condition.
Diego Biurrun [Thu, 1 Oct 2009 09:13:21 +0000 (09:13 +0000)]
Use "!exp" instead of "exp == NULL" in if condition.

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

15 years agocosmetics: K&R coding style, prettyprinting
Diego Biurrun [Thu, 1 Oct 2009 09:11:07 +0000 (09:11 +0000)]
cosmetics: K&R coding style, prettyprinting

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

15 years agoDo not attempt to decode TIFF files containing fax data with uncompressed
Kostya Shishkov [Thu, 1 Oct 2009 06:31:49 +0000 (06:31 +0000)]
Do not attempt to decode TIFF files containing fax data with uncompressed
mode allowed for there is no code to decode it (yet).

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

15 years agolavc MJPEG decoder is capable of decoding some extended sequential
Kostya Shishkov [Thu, 1 Oct 2009 05:52:38 +0000 (05:52 +0000)]
lavc MJPEG decoder is capable of decoding some extended sequential
Huffman-compressed JPEG files, so make it decode those files
(samples are welcome).
This fixes issue 1420

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

15 years agoMake BMP decoder produce flipped picture with RLE compression.
Kostya Shishkov [Thu, 1 Oct 2009 05:46:17 +0000 (05:46 +0000)]
Make BMP decoder produce flipped picture with RLE compression.
This fixes issue 1415

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

15 years agoMake MS RLE decoder produce both bottom-up and top-down pictures
Kostya Shishkov [Thu, 1 Oct 2009 05:42:55 +0000 (05:42 +0000)]
Make MS RLE decoder produce both bottom-up and top-down pictures

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

15 years agoChange an error to a warning to support broken AC-3 files known to exist.
Justin Ruggles [Thu, 1 Oct 2009 00:06:54 +0000 (00:06 +0000)]
Change an error to a warning to support broken AC-3 files known to exist.
Fixes Issue 1426.

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

15 years agoSupport constant-quant encoding for libtheora
David Conrad [Wed, 30 Sep 2009 22:25:49 +0000 (22:25 +0000)]
Support constant-quant encoding for libtheora
Based on a patch by j f (gonzaz-z # operamail (d) com)

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

15 years agoconfigure: break a long line
Måns Rullgård [Wed, 30 Sep 2009 22:08:16 +0000 (22:08 +0000)]
configure: break a long line

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

15 years agoRe-add check for compilation failure with ebx clobber, and only set
Reimar Döffinger [Wed, 30 Sep 2009 21:57:13 +0000 (21:57 +0000)]
Re-add check for compilation failure with ebx clobber, and only set
ebx_available if both "b" constraint and exb clobber code compile.
This is to fix compilation with Mac OSX 10.5.8's gcc 4.0.1 in 64
bit mode (-m64) which only fails for ebx/rbx clobbers but not
"b" constraints - this is probably a compiler bug.

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

15 years ago10l: wrong operation in stereo rematrixing
Justin Ruggles [Wed, 30 Sep 2009 21:51:02 +0000 (21:51 +0000)]
10l: wrong operation in stereo rematrixing

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

15 years agoconfigure: return result of test from check_asm
Måns Rullgård [Wed, 30 Sep 2009 21:38:11 +0000 (21:38 +0000)]
configure: return result of test from check_asm

This makes it possible to use check_asm in conditionals.

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

15 years agoAdd support for SGI images without RLE compression.
Anne-Laure de Smit [Wed, 30 Sep 2009 21:23:47 +0000 (21:23 +0000)]
Add support for SGI images without RLE compression.
patch by Anne-Laure de Smit, annelaure.desmit gmail com

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

15 years agoDo not needlessly add 7 to put_buts_count before dividing by 8,
Reimar Döffinger [Wed, 30 Sep 2009 20:47:59 +0000 (20:47 +0000)]
Do not needlessly add 7 to put_buts_count before dividing by 8,
flush_put_bits ensures it is divisible 8.

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

15 years ago10l in code reading codec_name, the first byte is the length and should not
Reimar Döffinger [Wed, 30 Sep 2009 18:27:39 +0000 (18:27 +0000)]
10l in code reading codec_name, the first byte is the length and should not
become part of the string.

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

15 years agoUse a "b" constraint instead of ebx clobber to detect if EBX is available.
Reimar Döffinger [Wed, 30 Sep 2009 16:55:32 +0000 (16:55 +0000)]
Use a "b" constraint instead of ebx clobber to detect if EBX is available.
The test using clobber incorrectly indicates ebx to be available with the
default compilers on OpenBSD 4.5 and Haiku.

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

15 years agoUse floating point mathematics when encoding mpeg audio.
Lasse Reinhold [Wed, 30 Sep 2009 15:13:09 +0000 (15:13 +0000)]
Use floating point mathematics when encoding mpeg audio.
Fixes issue 975: high db peak levels when encoding mp2

Original patch by Lasse Reinhold, lassemikkelreinhold hotmail

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

15 years agoReturn an error when the parsed mpc chunk size is negative, otherwise we
Reimar Döffinger [Wed, 30 Sep 2009 13:35:13 +0000 (13:35 +0000)]
Return an error when the parsed mpc chunk size is negative, otherwise we
might end up in an endless loop where the same chunk is parsed over and over.
Fixes a hang near the end for http://samples.mplayerhq.hu/A-codecs/musepack/sv8/sv8-tags.mpc

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

15 years agoFix compilation of beosaudio.cpp, not tested if it actually works though.
Reimar Döffinger [Wed, 30 Sep 2009 13:01:48 +0000 (13:01 +0000)]
Fix compilation of beosaudio.cpp, not tested if it actually works though.

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

15 years agoFix typo in comment.
Reimar Döffinger [Wed, 30 Sep 2009 12:39:18 +0000 (12:39 +0000)]
Fix typo in comment.

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

15 years agoUse skip_put_bytes in MJPEG encoder instead of filling all bytes with 0
Reimar Döffinger [Wed, 30 Sep 2009 10:48:14 +0000 (10:48 +0000)]
Use skip_put_bytes in MJPEG encoder instead of filling all bytes with 0
with put_bits.

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

15 years agoUse ff_put_string in vorbis encoder.
Reimar Döffinger [Wed, 30 Sep 2009 10:37:37 +0000 (10:37 +0000)]
Use ff_put_string in vorbis encoder.

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

15 years agoReplace several #ifdef PIC with the more obvious and correct
Reimar Döffinger [Wed, 30 Sep 2009 09:49:12 +0000 (09:49 +0000)]
Replace several #ifdef PIC with the more obvious and correct
#if !HAVE_EBX_AVAILABLE, since all it does is avoid using ebx.

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

15 years agoDisable parsing for ogg streams where no ogg header was found,
Reimar Döffinger [Wed, 30 Sep 2009 09:46:48 +0000 (09:46 +0000)]
Disable parsing for ogg streams where no ogg header was found,
if no header was found the parser was not initialized and thus will
crash when trying to use it.

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

15 years agoConvert latin1 codec_name in mov to UTF-8, since all strings in FFmpeg
Reimar Döffinger [Wed, 30 Sep 2009 09:43:56 +0000 (09:43 +0000)]
Convert latin1 codec_name in mov to UTF-8, since all strings in FFmpeg
must be valid UTF-8.

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

15 years agoWhen BitsPerSample tag is not present in TIFF, that means file is
Kostya Shishkov [Wed, 30 Sep 2009 05:49:18 +0000 (05:49 +0000)]
When BitsPerSample tag is not present in TIFF, that means file is
monochrome, so initialize picture before decoding.
This fixes decoding monochrome files produced by lavc TIFF encoder.

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

15 years agoSimplify stereo rematrixing by only using one temporary variable. It is also
Justin Ruggles [Wed, 30 Sep 2009 01:25:04 +0000 (01:25 +0000)]
Simplify stereo rematrixing by only using one temporary variable. It is also
about 1.8% faster on my system.

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

15 years agoremove unneeded assignment in inner loop. rematrixing bands are contiguous.
Justin Ruggles [Wed, 30 Sep 2009 01:09:57 +0000 (01:09 +0000)]
remove unneeded assignment in inner loop. rematrixing bands are contiguous.

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

15 years agoPrefer -vcodec rawvideo over -vcodec huffyuv for lavfi regression
Stefano Sabatini [Tue, 29 Sep 2009 21:53:36 +0000 (21:53 +0000)]
Prefer -vcodec rawvideo over -vcodec huffyuv for lavfi regression
tests, as the use of huffyuv may cause the auto-insertion of a scale
filter, thus masking the mis-behavior of some filter.

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

15 years agoRemove disabled code cruft.
Diego Biurrun [Tue, 29 Sep 2009 21:08:33 +0000 (21:08 +0000)]
Remove disabled code cruft.

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

15 years agoFix md5 program invocation for BSD.
Michael Kostylev [Tue, 29 Sep 2009 19:49:04 +0000 (19:49 +0000)]
Fix md5 program invocation for BSD.
patch by Michael Kostylev, michael.kostylev gmail com

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

15 years agoUse context instead of NULL for logging.
Reimar Döffinger [Tue, 29 Sep 2009 19:18:51 +0000 (19:18 +0000)]
Use context instead of NULL for logging.

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

15 years agoMake sure that dv encoder initializes all encoded packet data.
Reimar Döffinger [Tue, 29 Sep 2009 19:17:18 +0000 (19:17 +0000)]
Make sure that dv encoder initializes all encoded packet data.
The specification does not say which value to use for unused
parts, so fill all unused bytes with 0xff, which is consistent
with what DV usually uses for reserved or unused parts.

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

15 years agocosmetics: K&R coding style, prettyprinting
Diego Biurrun [Tue, 29 Sep 2009 18:03:30 +0000 (18:03 +0000)]
cosmetics: K&R coding style, prettyprinting

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

15 years agoFix indentation in avcodec.h
Jason Garrett-Glaser [Tue, 29 Sep 2009 17:34:36 +0000 (17:34 +0000)]
Fix indentation in avcodec.h

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

15 years agoWMA: fix loop unrolling in decode_exp_vlc()
Måns Rullgård [Tue, 29 Sep 2009 12:48:24 +0000 (12:48 +0000)]
WMA: fix loop unrolling in decode_exp_vlc()

The count can be a non-multiple of 4 after all.

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

15 years agowhitespace cosmetics, prettyprinting, K&R coding style
Diego Biurrun [Tue, 29 Sep 2009 11:43:58 +0000 (11:43 +0000)]
whitespace cosmetics, prettyprinting, K&R coding style

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

15 years agoSimplify r20025: use align_get_bits instead of reimplementing it.
Reimar Döffinger [Tue, 29 Sep 2009 11:06:04 +0000 (11:06 +0000)]
Simplify r20025: use align_get_bits instead of reimplementing it.

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