Commit Graph

20696 Commits

Author SHA1 Message Date
Michael Niedermayer e43198af4f Check thread count as multithreaded decoding is not supported.
Fixes issue1292

Originally committed as revision 19801 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-09 21:44:48 +00:00
Ramiro Polla 30715d4273 Document that slices can be bottom to top or top to bottom.
Originally committed as revision 29665 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-09 21:43:25 +00:00
Reimar Döffinger 46f3b40eb3 Add warnings to av_strlcat and av_strlcpy doxygen that the input strings
already must be properly 0-terminated strings. Unlike strncpy it
cannot be used on raw data read from a file.

Originally committed as revision 19800 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-09 21:00:51 +00:00
Benjamin Larsson 76bcd87b4c Change developer doc to reflect reality
Originally committed as revision 19799 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-09 17:27:30 +00:00
Maksym Veremeyenko 2c14ded386 Fix a bug with reading non-interleaved AVI if one the streams is
shorter.

Patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-09 16:26:24 +00:00
Maksym Veremeyenko b60de406a4 Factorise st->nb_index_entries check.
Patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-09 16:25:12 +00:00
Benjamin Larsson 0e1baedec3 Split out common routines needed in the atrac1 decoder from atrac3.c to atrac.c.
Originally committed as revision 19796 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-08 19:25:54 +00:00
Diego Biurrun b057170f32 Remove pointless debug statement that fails to compile.
Originally committed as revision 19795 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-08 09:11:56 +00:00
Reimar Döffinger 17f0c3be8e Try to clarify that anyone using get_bits must check for buffer overrun
themselves, get_bits does not do anything in that regard.

Originally committed as revision 19794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-08 08:30:56 +00:00
Baptiste Coudurier e4bc8af1e6 check entries against field_size, potential malloc overflow in read_stsz, fix #1357
Originally committed as revision 19793 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-07 22:42:51 +00:00
Baptiste Coudurier 1c4bf2ec37 add one missing check for stream existence in read_elst, fix #1364
Originally committed as revision 19792 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-07 22:36:33 +00:00
Ramiro Polla 7d73d1c336 Indent.
Originally committed as revision 29654 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-07 16:29:32 +00:00
Martin Storsjö b126dee964 Use all 32 bits of the timestamp when calculating flv duration.
At the moment, duration is mainly set from the metadata packet. If that is not
available, the fallback is checking the low 24 bits of the last packet. This is
not enough for files over 4,6 hours in length, so read all 32 bits instead.
patch by Martin Storsjö, martin martin st

Originally committed as revision 19791 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-07 10:49:51 +00:00
Carl Eugen Hoyos 35c433d671 Cosmetics: Fix typo.
Originally committed as revision 19790 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 18:24:25 +00:00
Reimar Döffinger 2ba8301769 Mark all pix_fmts and supported_framerates compound literals as const.
Makes no difference for gcc but at least icc can put them in .rodata then.

Originally committed as revision 19789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 16:09:21 +00:00
Ivan Schreter af8aae3fa3 disable new seeking code in mpeg-ts per #ifdef (use old read_seek by default)
Originally committed as revision 19788 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 15:59:32 +00:00
Reimar Döffinger b5f09d31c2 Make sample_fmts and channel_layouts compound literals const to reduce size of
.data section.

Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 09:15:07 +00:00
Reimar Döffinger 88e70e1b0a ff_rm_metadata is const.
Originally committed as revision 19786 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 08:57:19 +00:00
Reimar Döffinger c55e5b5fee ff_sine_windows table contains only constant data, too.
Originally committed as revision 19785 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 08:56:10 +00:00
Reimar Döffinger faca56191c The ff_cos_tabs table itself is constant, too, so mark it as such.
Originally committed as revision 19784 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 08:53:14 +00:00
Reimar Döffinger f470fff323 The pointers in ff_sin_tabs themselves are constant, so mark them accordingly.
Originally committed as revision 19783 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 08:50:20 +00:00
Reimar Döffinger 7eb1c36431 ff_swb_offset_* tables should be const.
Originally committed as revision 19782 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 08:48:45 +00:00
Reimar Döffinger ed034f6c59 ff_id3v1_genre_str table should be const.
Originally committed as revision 19781 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 08:39:41 +00:00
Reimar Döffinger 4d2a4dfd88 100l, all avlanguage tables should be both static and const.
Originally committed as revision 19780 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 08:36:25 +00:00
Reimar Döffinger b8791583e7 compatible_frame array can be static const, too.
Originally committed as revision 19779 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 08:27:23 +00:00
Sascha Sommer 5f28b5e750 do not decode more than one audio frame in a decode packet call
Originally committed as revision 19778 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 08:16:26 +00:00
Sascha Sommer 7dca334da2 avoid extra memcpy during scale factor decoding
Originally committed as revision 19777 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 06:56:25 +00:00
Ramiro Polla d31dbec374 Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label
parameters.

Originally committed as revision 19776 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-06 00:08:19 +00:00
Ramiro Polla 9cf484d06e Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label
parameters.

Originally committed as revision 29652 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-06 00:07:35 +00:00
Ramiro Polla c2613a3137 Indent.
Originally committed as revision 29651 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-05 23:35:59 +00:00
Lars Täuber 35f6c15405 Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>.

Originally committed as revision 19775 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 23:33:25 +00:00
Lars Täuber 991e579cae Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>.

Originally committed as revision 29650 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-05 23:33:11 +00:00
Reimar Döffinger 5333450ce6 Use memcpy to copy till end of line in one go instead of copying pixel by pixel
in xan_wc3_output_pixel_run and xan_wc3_copy_pixel_run

Originally committed as revision 19774 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 19:35:59 +00:00
Ivan Schreter 7a656933c9 cosmetic changes (indentation, doxygen comments, braces, put structures for API to header, ...)
Originally committed as revision 19773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 19:31:01 +00:00
Reimar Döffinger 64b8e620cb Slightly simplify detection of end of compressed data in xan_unpack
Originally committed as revision 19772 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 19:14:44 +00:00
Reimar Döffinger bb99108775 Make vp3 arrays static const where possible.
Originally committed as revision 19771 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 17:28:20 +00:00
Reimar Döffinger 8444059fb3 Remove useless ulti_decode_end function.
Originally committed as revision 19770 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 16:41:20 +00:00
Reimar Döffinger 61e8efd35e Search for ipmovie signature beyond the start of the file.
This allows to play directly files that combine player and movie into
a single executable like http://samples.mplayerhq.hu/game-formats/interplay-mve/DES3S.EXE

Originally committed as revision 19769 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 15:41:32 +00:00
Reimar Döffinger 78bfe6c3c1 Extend ipmovie signature to match exactly one place in mve files that have a
player binary prepended.

Originally committed as revision 19768 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 11:30:55 +00:00
Diego Biurrun d87d5025aa prettyprinting cosmetics
Originally committed as revision 19767 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 11:22:36 +00:00
Sascha Sommer bbb0bdd533 fix handling of packet loss when the output buffer is full
Originally committed as revision 19766 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 10:59:09 +00:00
Sascha Sommer 9244370a7c reindent
Originally committed as revision 19765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 10:18:23 +00:00
Sascha Sommer 42ea968188 remove no longer needed debug output
Originally committed as revision 19764 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 10:11:04 +00:00
Sascha Sommer 7551a55948 reduce output buffer needs
(fixes playback of some multichannel files)

Originally committed as revision 19763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 10:07:55 +00:00
Sascha Sommer 2016932472 store packet GetBitContext in the decoder context
Originally committed as revision 19762 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-05 09:56:06 +00:00
Justin Ruggles d2a47a578e Remove fake Speex header creation from FLV demuxer. Having it there was not the
correct solution to the problem.  A better solution might be possible later once
Speex is supported in muxers.

Originally committed as revision 19761 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-04 21:43:41 +00:00
Justin Ruggles 1d07029fea Add frame_size as a codec parameter requirement for Speex in
av_find_stream_info().  It forces decoding of a packet when there is no
Speex header in order to determine the correct frame size.

Originally committed as revision 19760 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-04 21:38:45 +00:00
Diego Biurrun 83614f2df9 Reduce pointless verbosity after seeks in the MP3 decoder.
Originally committed as revision 19759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-04 19:04:12 +00:00
Ramiro Polla 5ce6934e0a Add a newline in error message in CHECKED_ALLOC(Z).
Originally committed as revision 19758 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-04 16:59:28 +00:00
Ramiro Polla 315fa33f29 Indent.
Originally committed as revision 19757 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-09-04 16:32:06 +00:00