ffmpeg.git
10 years agoAdd extra validation checks to ff_vorbis_len2vlc.
Reimar Döffinger [Wed, 8 Jul 2009 19:39:23 +0000 (19:39 +0000)]
Add extra validation checks to ff_vorbis_len2vlc.
They should not be necessary, but it seems like a reasonable precaution.

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

10 years agoMake sure that values generated for ff_vorbis_len2vlc in
Reimar Döffinger [Wed, 8 Jul 2009 19:31:04 +0000 (19:31 +0000)]
Make sure that values generated for ff_vorbis_len2vlc in
vorbis_parse_setup_hdr_codebooks are in the valid range (<=32).

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

10 years agoAdd PIX_FMT_ARGB encoding to qtrle.
Alexis Ballier [Wed, 8 Jul 2009 14:58:16 +0000 (14:58 +0000)]
Add PIX_FMT_ARGB encoding to qtrle.

Patch by Alexis Ballier, alexis ballier gmail

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

10 years agoAdd block_align to sox input.
Phil Rutschman [Wed, 8 Jul 2009 08:52:56 +0000 (08:52 +0000)]
Add block_align to sox input.
Patch by Phil Rutschman: name.surname modsystems com

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

10 years agoFix mem leak when user preallocates an AVFormatContext, passes it to
Art Clarke [Wed, 8 Jul 2009 08:26:57 +0000 (08:26 +0000)]
Fix mem leak when user preallocates an AVFormatContext, passes it to
av_open_input_file(), but the file does not exist.
Patch by Art Clarke a$(surname) xuggle com

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

10 years agoBaptiste will maintain qt-faststart from now on.
Diego Biurrun [Tue, 7 Jul 2009 22:00:13 +0000 (22:00 +0000)]
Baptiste will maintain qt-faststart from now on.

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

10 years agoMention removal of libamr support in the changelog.
Diego Biurrun [Tue, 7 Jul 2009 21:39:49 +0000 (21:39 +0000)]
Mention removal of libamr support in the changelog.

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

10 years agowhitespace cosmetics: Realign colums after last commit.
Diego Biurrun [Tue, 7 Jul 2009 09:33:53 +0000 (09:33 +0000)]
whitespace cosmetics: Realign colums after last commit.

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

10 years agoCheck for CONFIG_LIBFOO_DECODER/CONFIG_LIBFOO_ENCODER instead of just
Diego Biurrun [Tue, 7 Jul 2009 09:33:08 +0000 (09:33 +0000)]
Check for CONFIG_LIBFOO_DECODER/CONFIG_LIBFOO_ENCODER instead of just
CONFIG_LIBFOO in the external libraries section.
This is more consistent with the rest of the Makefiles, it makes clearer what
is actually implemented and should be advantageous if we implement an external
library encoder where we previously just had the decoder and vice versa.

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

10 years agoRemove support for nonfree libamr library for AMR-NB/WB decoding/encoding.
Diego Biurrun [Tue, 7 Jul 2009 00:28:16 +0000 (00:28 +0000)]
Remove support for nonfree libamr library for AMR-NB/WB decoding/encoding.
libopencore can now be used as a replacement except for AMR-WB encoding.

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

10 years agoflvdec: expose metadata through the generic metadata API
Aurelien Jacobs [Mon, 6 Jul 2009 21:54:37 +0000 (21:54 +0000)]
flvdec: expose metadata through the generic metadata API
original patch from Art Clarke  aclarke _at_ xuggle _dot_ com

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

10 years agoflvdec: re-enable metadata parsing
Aurelien Jacobs [Mon, 6 Jul 2009 21:49:33 +0000 (21:49 +0000)]
flvdec: re-enable metadata parsing
duration and videodatarate values are actually useful
original patch from Art Clarke  aclarke _at_ xuggle _dot_ com

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

10 years agoflvdec: don't set format and codec context from metadata values
Aurelien Jacobs [Mon, 6 Jul 2009 21:46:37 +0000 (21:46 +0000)]
flvdec: don't set format and codec context from metadata values
This has proven to be useless and even harmfull since r18460 (expect
for duration and videodatarate).
original patch from Art Clarke  aclarke _at_ xuggle _dot_ com

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

10 years agoCheck for packet_length 0, it is already treated as invalid by the padding check,
Reimar Döffinger [Mon, 6 Jul 2009 17:08:32 +0000 (17:08 +0000)]
Check for packet_length 0, it is already treated as invalid by the padding check,
but that resulted in a confusing/wrong error message.

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

10 years agoChange av_free to av_freep
Reimar Döffinger [Mon, 6 Jul 2009 16:49:36 +0000 (16:49 +0000)]
Change av_free to av_freep

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

10 years agoReallocate internal buffer when coded frame size changes.
Reimar Döffinger [Mon, 6 Jul 2009 16:48:23 +0000 (16:48 +0000)]
Reallocate internal buffer when coded frame size changes.
Fixes out-of-bounds reads and writes with i32/smclocki32.avi.1.0 from issue 1240.

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

10 years agoChange iv_decode_frame to get AVCodecContext as argument, so that
Reimar Döffinger [Mon, 6 Jul 2009 16:45:12 +0000 (16:45 +0000)]
Change iv_decode_frame to get AVCodecContext as argument, so that
avcodec_check_dimensions can be called with a proper context instead of NULL.

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

10 years agoRemove useless ret variable added in last revision again.
Reimar Döffinger [Mon, 6 Jul 2009 10:28:58 +0000 (10:28 +0000)]
Remove useless ret variable added in last revision again.

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

10 years ago100l, theora_decode_init must pass on errors from vp3_decode_init
Reimar Döffinger [Mon, 6 Jul 2009 09:35:00 +0000 (09:35 +0000)]
100l, theora_decode_init must pass on errors from vp3_decode_init

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

10 years agoMake decode_init fail if the huffman tables are invalid and thus init_vlc fails.
Reimar Döffinger [Mon, 6 Jul 2009 09:22:39 +0000 (09:22 +0000)]
Make decode_init fail if the huffman tables are invalid and thus init_vlc fails.
Otherwise this will crash during decoding because the vlc tables are NULL.
Partially fixes ogv/smclock.ogv.1.101.ogv from issue 1240.

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

10 years agoDo not fail if 'uuid' atom is encountered before 'moov'.
Frank Barchard [Mon, 6 Jul 2009 05:36:14 +0000 (05:36 +0000)]
Do not fail if 'uuid' atom is encountered before 'moov'.
Patch by Frank Barchard, fbarchard at google dot com.

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

10 years agolibfaac no longer claims to be LGPL.
Diego Biurrun [Mon, 6 Jul 2009 05:22:50 +0000 (05:22 +0000)]
libfaac no longer claims to be LGPL.

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

10 years agoThe AltiVec code in libswscale no longer is under GPL.
Diego Biurrun [Sun, 5 Jul 2009 20:10:59 +0000 (20:10 +0000)]
The AltiVec code in libswscale no longer is under GPL.
Remove one erroneous preprocessor check for CONFIG_GPL in the AltiVec code.

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

10 years agoEnsure that the filter limit values do not exceed the maximum allowed value of 127.
Reimar Döffinger [Sun, 5 Jul 2009 18:27:39 +0000 (18:27 +0000)]
Ensure that the filter limit values do not exceed the maximum allowed value of 127.

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

10 years agoExtend init_loop_filter to work for filter limit values up to 127 instead
Reimar Döffinger [Sun, 5 Jul 2009 18:25:58 +0000 (18:25 +0000)]
Extend init_loop_filter to work for filter limit values up to 127 instead
of only up to 64. 127 is the maximum value allowed by the theora specification.

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

10 years agoAdd a check to vp6_parse_coeff_huffman to ensure it does not overread the input buffer.
Reimar Döffinger [Sun, 5 Jul 2009 16:01:51 +0000 (16:01 +0000)]
Add a check to vp6_parse_coeff_huffman to ensure it does not overread the input buffer.

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

10 years agovp56dec: ensure range coder won't read past the end of input buffer
Aurelien Jacobs [Sun, 5 Jul 2009 15:23:42 +0000 (15:23 +0000)]
vp56dec: ensure range coder won't read past the end of input buffer

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

10 years agoCheck that palctrl is available on init instead of crashing when trying to use
Reimar Döffinger [Sun, 5 Jul 2009 12:14:05 +0000 (12:14 +0000)]
Check that palctrl is available on init instead of crashing when trying to use
it on decode.
Fixes mpeg2/smclockmpeg2.avi.2.1 from issue 1240.

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

10 years agofix a buffer overrun on corrupt huffyuv streams
Loren Merritt [Sat, 4 Jul 2009 23:59:10 +0000 (23:59 +0000)]
fix a buffer overrun on corrupt huffyuv streams

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

10 years agoARM: NEON VP3 IDCT
David Conrad [Sat, 4 Jul 2009 20:41:11 +0000 (20:41 +0000)]
ARM: NEON VP3 IDCT
15% faster VP3/Theora, 10% faster VP6

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

10 years agoIf the end of the input buffer is reached while decoding MJPEG and at least
Reimar Döffinger [Sat, 4 Jul 2009 18:24:43 +0000 (18:24 +0000)]
If the end of the input buffer is reached while decoding MJPEG and at least
a valid SOF was found, emulate an EOI.
This allows e.g. to at least decode the available part of incomplete MJPEG frames.

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

10 years agoMake the MJPEG decoder return -1 when no image was decoded so that decode
Reimar Döffinger [Sat, 4 Jul 2009 18:22:33 +0000 (18:22 +0000)]
Make the MJPEG decoder return -1 when no image was decoded so that decode
errors are actually recognizable as such.

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

10 years agoAdd a got_picture flag to MJpegDecodeContext which indicates if its picture
Reimar Döffinger [Sat, 4 Jul 2009 18:20:35 +0000 (18:20 +0000)]
Add a got_picture flag to MJpegDecodeContext which indicates if its picture
element is valid. Skip the code handling SOS and EOI if not, since it can not
work without a valid AVPicture.
This fixes a crash with mjpeg/smclockmjpeg.avi.1.0 from issue 1240 where the
decoder returned an invalid AVPicture.

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

10 years agomjpegdec: check that the coded dc_index and ac_index have a valid associated VLC...
Reimar Döffinger [Sat, 4 Jul 2009 12:54:36 +0000 (12:54 +0000)]
mjpegdec: check that the coded dc_index and ac_index have a valid associated VLC table.
Removes some disabled dc_index/ac_index checking code that seems to have had
some undocumented issues and should not really be necessary anymore now.
Fixes from issue 1240 the files mjpeg/smclockmjpeg.avi.1.10 and mjpeg/smclockmjpeg.avi.1.171.

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

10 years agoUse enum CodecID instead of int.
Carl Eugen Hoyos [Sat, 4 Jul 2009 08:18:03 +0000 (08:18 +0000)]
Use enum CodecID instead of int.
Fixes the following icc warning:
warning #188: enumerated type mixed with another type

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

10 years agofix and simplify long gop mpeg codec ul computation
Baptiste Coudurier [Sat, 4 Jul 2009 08:02:01 +0000 (08:02 +0000)]
fix and simplify long gop mpeg codec ul computation

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

10 years agoset index duration to 0 for cbr, specifying whole container coverage
Baptiste Coudurier [Sat, 4 Jul 2009 07:56:58 +0000 (07:56 +0000)]
set index duration to 0 for cbr, specifying whole container coverage

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

10 years agouse ber4 length for descriptors preferred by specs
Baptiste Coudurier [Sat, 4 Jul 2009 07:52:28 +0000 (07:52 +0000)]
use ber4 length for descriptors preferred by specs

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

10 years agowrite profile and level local tag in mpeg descriptor
Baptiste Coudurier [Sat, 4 Jul 2009 07:49:12 +0000 (07:49 +0000)]
write profile and level local tag in mpeg descriptor

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

10 years agoH.264: Check the return value of decode_vui_parameters()
Alexander Strange [Sat, 4 Jul 2009 07:46:58 +0000 (07:46 +0000)]
H.264: Check the return value of decode_vui_parameters()

Files with invalid VUI are now rejected like
other invalid SPS are.

Fixes issue1231.

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

10 years agoReplace invalid Theora frame rate by 25 FPS.
Reimar Döffinger [Fri, 3 Jul 2009 11:31:09 +0000 (11:31 +0000)]
Replace invalid Theora frame rate by 25 FPS.
Avoids division by 0 due to e.g. time_base denominator being 0.

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

10 years agoCheck for failed extradata malloc, fixes a crash in out-of-memory conditions
Reimar Döffinger [Fri, 3 Jul 2009 11:27:52 +0000 (11:27 +0000)]
Check for failed extradata malloc, fixes a crash in out-of-memory conditions
or with extremely large extradata.

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

10 years agoCheck size of "strf" header against size of enclosing "LIST" if there is one.
Reimar Döffinger [Fri, 3 Jul 2009 11:26:14 +0000 (11:26 +0000)]
Check size of "strf" header against size of enclosing "LIST" if there is one.

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

10 years agoFix indentation
Reimar Döffinger [Fri, 3 Jul 2009 11:18:56 +0000 (11:18 +0000)]
Fix indentation

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

10 years agoAvoid divisions by 0 in the ASF demuxer if packet_size is not valid.
Reimar Döffinger [Fri, 3 Jul 2009 11:18:07 +0000 (11:18 +0000)]
Avoid divisions by 0 in the ASF demuxer if packet_size is not valid.

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

10 years agoH.264: Don't set data_partitioning for invalid NAL_DPA.
Alexander Strange [Fri, 3 Jul 2009 05:52:00 +0000 (05:52 +0000)]
H.264: Don't set data_partitioning for invalid NAL_DPA.

Before, the decoder could interpret a corrupt frame
as a NAL_DPA and NAL_DPC, and then start decoding
even if decode_slice_header() returned an error.
This frequently caused crashes.

Fixes issue1228, issue1229, and partially issue1238.

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

10 years agoCleanup properly at the end of MPEG Audio parsing.
Art Clarke [Thu, 2 Jul 2009 13:13:20 +0000 (13:13 +0000)]
Cleanup properly at the end of MPEG Audio parsing.
Patch by Art Clarke (aclarke AT xuggle com)

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

10 years agoIf either of num or den is 0 make both 0 in av_set_pts_info().
Michael Niedermayer [Thu, 2 Jul 2009 12:47:58 +0000 (12:47 +0000)]
If either of num or den is 0 make both 0 in av_set_pts_info().

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

10 years agoMake sure av_set_pts_info() does not set the fields of a timebase to
Michael Niedermayer [Wed, 1 Jul 2009 20:52:48 +0000 (20:52 +0000)]
Make sure av_set_pts_info() does not set the fields of a timebase to
negative values.

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

10 years agoRevert r19317, "simplify slice_end, return size of output frame".
Baptiste Coudurier [Wed, 1 Jul 2009 20:35:28 +0000 (20:35 +0000)]
Revert r19317, "simplify slice_end, return size of output frame".
It returns non decodable B-frames.

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

10 years agoindent
Michael Niedermayer [Wed, 1 Jul 2009 20:34:16 +0000 (20:34 +0000)]
indent

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

10 years agoMake sure we dont read over the end.
Michael Niedermayer [Wed, 1 Jul 2009 20:30:37 +0000 (20:30 +0000)]
Make sure we dont read over the end.
Fixes issue1237.

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

10 years agoAdd an explanation and complete the metadata usage example.
Stefano Sabatini [Wed, 1 Jul 2009 20:11:53 +0000 (20:11 +0000)]
Add an explanation and complete the metadata usage example.

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

10 years agoMake arguments of av_set_pts_info() unsigned.
Michael Niedermayer [Wed, 1 Jul 2009 18:50:31 +0000 (18:50 +0000)]
Make arguments of av_set_pts_info() unsigned.
Fixes issue1240/mpeg1/smclockmpeg1.avi.3.1

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

10 years agoFix potentially unaligned accesses in ff_copy_bits()
Måns Rullgård [Wed, 1 Jul 2009 17:48:22 +0000 (17:48 +0000)]
Fix potentially unaligned accesses in ff_copy_bits()

A pointer should never be assigned a value which may have less than the
required alignment of the target type.  Compilers may assume pointer
values have the required alignment, and emit normal load/store instructions.

Unaligned pointers should use a character type or compiler-specific
type modifiers.

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

10 years agosimplify slice_end, return size of output frame
Baptiste Coudurier [Wed, 1 Jul 2009 17:29:52 +0000 (17:29 +0000)]
simplify slice_end, return size of output frame

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

10 years agoRV3/4 intra types array causes alignment issues (at least on ARM5), thus change
Kostya Shishkov [Wed, 1 Jul 2009 15:08:02 +0000 (15:08 +0000)]
RV3/4 intra types array causes alignment issues (at least on ARM5), thus change
its stride and offset to always have align 4.

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

10 years agoUse slightly more appropriate format strings for printing decimal values.
Frank Barchard [Wed, 1 Jul 2009 13:46:26 +0000 (13:46 +0000)]
Use slightly more appropriate format strings for printing decimal values.
patch by Frank Barchard, fbarchard google com

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

10 years agoUse enum PixelFormat in sws_format_name() prototype
Måns Rullgård [Wed, 1 Jul 2009 12:40:28 +0000 (12:40 +0000)]
Use enum PixelFormat in sws_format_name() prototype

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

10 years agoFix argument type mismatches for av_picture_crop and av_picture_fill
Måns Rullgård [Wed, 1 Jul 2009 10:36:18 +0000 (10:36 +0000)]
Fix argument type mismatches for av_picture_crop and av_picture_fill

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

10 years agoadd missing \n to error message
Baptiste Coudurier [Wed, 1 Jul 2009 06:48:27 +0000 (06:48 +0000)]
add missing \n to error message

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

10 years agoADPCM: remove unreachable break statement after return
Måns Rullgård [Wed, 1 Jul 2009 00:55:17 +0000 (00:55 +0000)]
ADPCM: remove unreachable break statement after return

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

10 years agoARM: use gcc inline asm in bswap.h only when available
Måns Rullgård [Wed, 1 Jul 2009 00:55:15 +0000 (00:55 +0000)]
ARM: use gcc inline asm in bswap.h only when available

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

10 years agoFix libx264.c to not drop SEI userdata from x264 encoder.
Jason Garrett-Glaser [Tue, 30 Jun 2009 23:45:01 +0000 (23:45 +0000)]
Fix libx264.c to not drop SEI userdata from x264 encoder.
Most muxers in ffmpeg ignore the SEI if it is placed in extradata, so instead
it has to be catted to the front of the first video frame.

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

10 years agoUse more portable 'PRId64' instead of 'llx' as conversion/length specifier.
Frank Barchard [Tue, 30 Jun 2009 15:11:51 +0000 (15:11 +0000)]
Use more portable 'PRId64' instead of 'llx' as conversion/length specifier.
patch by Frank Barchard, fbarchard google com

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

10 years agoARM: enable fast_unaligned when --cpu=armv[67] is specified
Måns Rullgård [Tue, 30 Jun 2009 12:46:09 +0000 (12:46 +0000)]
ARM: enable fast_unaligned when --cpu=armv[67] is specified

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

10 years agoFix nalsize check to avoid an integer overflow that made the check
Reimar Döffinger [Tue, 30 Jun 2009 12:11:29 +0000 (12:11 +0000)]
Fix nalsize check to avoid an integer overflow that made the check
incorrect for nalsize > INT_MAX - buf_index

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

10 years agoUpdate seek regression checksums due to:
Michael Niedermayer [Tue, 30 Jun 2009 11:28:53 +0000 (11:28 +0000)]
Update seek regression checksums due to:
  r19300
  Rewrite mp3 parser. New code is much simpler and does not drop
  stuff at random.

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

10 years agocosmetics, change case and comments alignment
Baptiste Coudurier [Tue, 30 Jun 2009 07:43:32 +0000 (07:43 +0000)]
cosmetics, change case and comments alignment

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

10 years agocorrectly compute frame flags with closed gop
Baptiste Coudurier [Tue, 30 Jun 2009 07:41:40 +0000 (07:41 +0000)]
correctly compute frame flags with closed gop

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

10 years agofix slice header checking
Stefan Gehrer [Tue, 30 Jun 2009 06:44:32 +0000 (06:44 +0000)]
fix slice header checking

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

10 years agoDrop code that attempts to decode frames that are prefixed by junk.
Michael Niedermayer [Tue, 30 Jun 2009 03:57:27 +0000 (03:57 +0000)]
Drop code that attempts to decode frames that are prefixed by junk.
Too often it ends up decoding random data into noise without detecting
it (for example after seeking of some MP3 data with oddly often occurring
startcode emulation).
Fixes issue1154.

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

10 years agoSupport RGB48 PNG decoding
Kostya Shishkov [Tue, 30 Jun 2009 03:37:20 +0000 (03:37 +0000)]
Support RGB48 PNG decoding

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

10 years agoRewrite mp3 parser. New code is much simpler and does not drop
Michael Niedermayer [Tue, 30 Jun 2009 03:12:50 +0000 (03:12 +0000)]
Rewrite mp3 parser. New code is much simpler and does not drop
stuff at random.

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

10 years agoUse av_log_missing_feature in the ADTS encoder. (Pseudo reverts r19173).
Alex Converse [Mon, 29 Jun 2009 22:48:07 +0000 (22:48 +0000)]
Use av_log_missing_feature in the ADTS encoder. (Pseudo reverts r19173).

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

10 years agoFix build on Net/OpenBSD
Måns Rullgård [Mon, 29 Jun 2009 20:45:49 +0000 (20:45 +0000)]
Fix build on Net/OpenBSD

The renaming in r19293 missed a few things.

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

10 years agoCosmetics: group together indev/outdev dependencies.
Stefano Sabatini [Mon, 29 Jun 2009 20:00:58 +0000 (20:00 +0000)]
Cosmetics: group together indev/outdev dependencies.

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

10 years agoAdd doxy to av_log_missing_feature() etc. stating that the function is
Ronald S. Bultje [Mon, 29 Jun 2009 19:17:03 +0000 (19:17 +0000)]
Add doxy to av_log_missing_feature() etc. stating that the function is
primarily intended for internal use in lavc/lavf, not for use in apps.

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

10 years agoMove av_log_missing_feature() from the internal.h to the public avcodec.h
Ronald S. Bultje [Mon, 29 Jun 2009 19:11:53 +0000 (19:11 +0000)]
Move av_log_missing_feature() from the internal.h to the public avcodec.h
header file.

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

10 years agoRename ff_log_missing_feature() to av_log_missing_feature().
Ronald S. Bultje [Mon, 29 Jun 2009 19:07:04 +0000 (19:07 +0000)]
Rename ff_log_missing_feature() to av_log_missing_feature().

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

10 years agoMake the configure script select the input/output devices using
Stefano Sabatini [Mon, 29 Jun 2009 18:49:15 +0000 (18:49 +0000)]
Make the configure script select the input/output devices using
--enable-indev, --enable-outdev rather than --enable-demuxer,
--enable-muxer as before, same for disabling them.

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

10 years agoindent
Michael Niedermayer [Mon, 29 Jun 2009 18:37:29 +0000 (18:37 +0000)]
indent

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

10 years agoid3v2.4.0 uses syncsafe integers for sizes of frames.
Michael Niedermayer [Mon, 29 Jun 2009 18:36:49 +0000 (18:36 +0000)]
id3v2.4.0 uses syncsafe integers for sizes of frames.
Fixes issue1234
Fixes regression introduced in r19275

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

10 years agoRevert r19149 "Disable native Vorbis encoder"
David Conrad [Mon, 29 Jun 2009 09:02:07 +0000 (09:02 +0000)]
Revert r19149 "Disable native Vorbis encoder"

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

10 years agoRemove inconsistent use of a @brief command in av_write_trailer()
Stefano Sabatini [Sun, 28 Jun 2009 21:05:46 +0000 (21:05 +0000)]
Remove inconsistent use of a @brief command in av_write_trailer()
doxy.

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

10 years agoUse consistently the third person in doxy, as recommended by the
Stefano Sabatini [Sun, 28 Jun 2009 21:01:51 +0000 (21:01 +0000)]
Use consistently the third person in doxy, as recommended by the
javadoc specs.

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

10 years agoFix braino.
Stefano Sabatini [Sun, 28 Jun 2009 20:25:08 +0000 (20:25 +0000)]
Fix braino.

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

10 years agoIcc does not support attribute flatten, do not try to use it.
Carl Eugen Hoyos [Sun, 28 Jun 2009 18:28:27 +0000 (18:28 +0000)]
Icc does not support attribute flatten, do not try to use it.

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

10 years agoUpdate ffmpeg documentation regarding metadata setting. -title,
Stefano Sabatini [Sat, 27 Jun 2009 13:26:35 +0000 (13:26 +0000)]
Update ffmpeg documentation regarding metadata setting. -title,
-author, -copyright, -track, -album, and -year options have been
dropped in favor of -metadata.

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

10 years agoRemove superfluous const.
Carl Eugen Hoyos [Sat, 27 Jun 2009 10:26:27 +0000 (10:26 +0000)]
Remove superfluous const.

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

10 years agoReplace an occurence of -1 by PIX_FMT_NONE, fixes icc warning #188:
Carl Eugen Hoyos [Sat, 27 Jun 2009 08:39:56 +0000 (08:39 +0000)]
Replace an occurence of -1 by PIX_FMT_NONE, fixes icc warning #188:
enumerated type mixed with another type

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

10 years agoIcc 11.1 does not support attributes force_align_arg_pointer, alloc_size and cold.
Carl Eugen Hoyos [Sat, 27 Jun 2009 08:34:04 +0000 (08:34 +0000)]
Icc 11.1 does not support attributes force_align_arg_pointer, alloc_size and cold.

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

10 years agoPitch delay decoding
Vladimir Voroshilov [Fri, 26 Jun 2009 17:43:05 +0000 (17:43 +0000)]
Pitch delay decoding

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

10 years agoReplace pitch_delay_int array with single variable.
Vladimir Voroshilov [Fri, 26 Jun 2009 17:42:25 +0000 (17:42 +0000)]
Replace pitch_delay_int array with single variable.

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

10 years agoHandle variable input stream pixfmts using the same framework introduced
Jason Garrett-Glaser [Fri, 26 Jun 2009 01:08:26 +0000 (01:08 +0000)]
Handle variable input stream pixfmts using the same framework introduced
by the variable frame size patch.  Fixes at least issue 1165.

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

10 years agoOnly link against alsa if enabled.
Stefano Sabatini [Thu, 25 Jun 2009 23:21:40 +0000 (23:21 +0000)]
Only link against alsa if enabled.

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

10 years agoOnly checks for jack if it is enabled and hence only links to jack if
Adrian Stutz [Thu, 25 Jun 2009 22:48:49 +0000 (22:48 +0000)]
Only checks for jack if it is enabled and hence only links to jack if
it is not disabled.

Patch by Adrian Stutz $firsname@sttz ch.

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

10 years agoAltiVec code and runtime cpudetect do not require CONFIG_GPL.
Diego Biurrun [Thu, 25 Jun 2009 20:06:03 +0000 (20:06 +0000)]
AltiVec code and runtime cpudetect do not require CONFIG_GPL.
Make sure the latter is only checked for x86 optimizations, which are GPL.

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

10 years agoFix id3v2.2 frame size parsing.
Michael Niedermayer [Thu, 25 Jun 2009 19:44:44 +0000 (19:44 +0000)]
Fix id3v2.2 frame size parsing.
Fixes issue1202.

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

10 years agoFix id3v2.3/4 tag size parsing.
Michael Niedermayer [Thu, 25 Jun 2009 19:26:39 +0000 (19:26 +0000)]
Fix id3v2.3/4 tag size parsing.
Fixes issue1106

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