Commit Graph

12834 Commits

Author SHA1 Message Date
Aurelien Jacobs
591bf9b942 add some required objects dependencies
Originally committed as revision 12333 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 14:49:43 +00:00
Aurelien Jacobs
0c291f2d0f Avoid linking with h263 and mpeg4 find_frame_end()
when those codecs are not enabled.

Originally committed as revision 12332 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 14:46:51 +00:00
Luca Abeni
83cc23c5d3 Add some information about the stream bitrate, if available
Originally committed as revision 12331 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 13:31:24 +00:00
Michael Niedermayer
1326621c1a Subtitle support. (untested)
Originally committed as revision 12330 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 13:06:49 +00:00
Michael Niedermayer
73e2261318 The last flag fix fixed mpeg4-qprd (there the flags ended up being trashed
through lrintf(), that is gcc put the 32bit int flags in a 32bit float
which caused some to be lost ...).
I wonder why FATE did not pick this up?

Originally committed as revision 12329 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 12:45:32 +00:00
Baptiste Coudurier
112249de00 set block align for mace3/6
Originally committed as revision 12328 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 12:06:57 +00:00
Baptiste Coudurier
28da7981d0 correctly compute bit rate for compressed audio, should fix seeking in aiff
Originally committed as revision 12327 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 12:02:32 +00:00
Mike Melanson
282ee4e766 fix the WC3 Xan decoder by correcting the frame accounting logic
Originally committed as revision 12326 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 06:58:20 +00:00
Michael Niedermayer
56adc69501 One more (forgotten) fix for fixing sws_flags.
Originally committed as revision 26166 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-05 04:03:44 +00:00
Michael Niedermayer
e60da588e3 sws_flags is unsigned.
This together with the last commit fixes the strange behavior of -sws_flags.
(issue229)

Originally committed as revision 12325 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 04:02:04 +00:00
Michael Niedermayer
378774e9a8 Fix handling flags with the MSB set.
Originally committed as revision 12324 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 03:59:07 +00:00
Michael Niedermayer
8b2fce0d3f Turn ancient V offset numerical constants into named ones.
Add a check that checks that the width is within the choosen constant.
This might have been exploitable.

Originally committed as revision 26165 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-05 03:00:25 +00:00
Aurelien Jacobs
fbd4293df9 remove more useless mpegvideo.h includes
Originally committed as revision 12323 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 00:43:11 +00:00
Aurelien Jacobs
cbcd6c8ca9 move EDGE_WIDTH definition allong with draw_edges where it belongs
Originally committed as revision 12322 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 00:38:14 +00:00
Aurelien Jacobs
d37f007d54 remove #include "mpegvideo.h" where it is not needed
Originally committed as revision 12321 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 00:07:53 +00:00
Aurelien Jacobs
3bfe9260fa move relevant declarations to mpeg12data.h
Originally committed as revision 12320 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-05 00:06:09 +00:00
Aurelien Jacobs
6d93461504 move run length table constants to rl.h
Originally committed as revision 12319 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 23:58:12 +00:00
Aurelien Jacobs
288a44fb7a move ff_emulated_edge_mc() to dsputil
Originally committed as revision 12318 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 23:10:47 +00:00
Michael Niedermayer
8d4bef64b4 Remove unused elements from tables.
Originally committed as revision 12317 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 22:09:54 +00:00
Michael Niedermayer
6a287b739f Detect and prevent reading over the end of counts_*. We pass the error
through a context variable as this is simpler and i think also faster, but
the return value of functions could be used instead of course.
The code also ensures as a side effect that the AC decoder state does not
become invalid.
This fixes all known crashes. And outputs nothing in case of an error instead
of random noise.

Originally committed as revision 12316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 21:58:34 +00:00
Michael Niedermayer
1a2a1d9077 Prevent segfault due to reading over the end of the input buffer.
Originally committed as revision 12315 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 21:39:21 +00:00
Aurelien Jacobs
7998988129 fix wmv3 dependencies
Originally committed as revision 12314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 18:38:32 +00:00
Aurelien Jacobs
49c35f16fc Fix compilation on powerpc.
DECLARE_ALIGNED_8 is not defined at that point, but this code is powerpc
only, so it's really equivalent to DECLARE_ALIGNED(16...

Originally committed as revision 12313 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 18:35:12 +00:00
Aurelien Jacobs
015d0bb95c remove old draw_edges declaration cruft
Originally committed as revision 12312 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 10:54:51 +00:00
Aurelien Jacobs
4c79b95c32 move ff_init_scantable() into dsputil
Originally committed as revision 12311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 10:26:56 +00:00
Michael Niedermayer
675b8390f6 Ignore flags after pts/dts if there are no bytes left.
Fixes decoding of vdr-radio.vdr. (issue198)

Originally committed as revision 12310 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 01:31:15 +00:00
Aurelien Jacobs
5a6a9e78ab move draw_edges() into dsputil
Originally committed as revision 12309 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 00:07:41 +00:00
Aurelien Jacobs
ce7f71a2dd dsputil.h is a local header
Originally committed as revision 12308 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 23:14:25 +00:00
Aurelien Jacobs
c8deab7af7 include required header
Originally committed as revision 12307 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 23:10:13 +00:00
Aurelien Jacobs
6e196eacc3 include required headers for int64_t and AV_RB16()
Originally committed as revision 12306 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 23:00:48 +00:00
Aurelien Jacobs
abf2dc9c9a avi.h does not use anything from avcodec.h.
Originally committed as revision 12305 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 22:56:07 +00:00
Måns Rullgård
22f8654776 Fix endian test with grep not handling non-text files
POSIX grep is not required to support non-text files.

Idea by Rich Felker.

Originally committed as revision 12304 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 22:01:15 +00:00
Måns Rullgård
0e9fbd35b5 remove invalid free() forgotten in r12300
Originally committed as revision 12303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 21:54:18 +00:00
Måns Rullgård
932ccf398a remove unnecessary backslashes
Originally committed as revision 12302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 21:48:24 +00:00
Vitor Sessak
81124ba0d1 Fix libavfilter compilation and make it more in line
with the other libav*.

Originally committed as revision 12301 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 20:53:15 +00:00
Michael Niedermayer
f15e6b869f Provide non null class name to avoid crash with ffmpeg -h.
Originally committed as revision 12300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 19:53:27 +00:00
Ramiro Polla
6548ff57c0 Force DOS users to enable memalign hack when needed,
the same way it's done for MinGW.

Originally committed as revision 12299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 17:06:48 +00:00
Benjamin Larsson
40bcf4c780 Support setting the debuglevel (-g level) with --enable-debug=#
Originally committed as revision 12298 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 16:59:53 +00:00
Reimar Döffinger
e7a5e2f626 Fix decoding of interlaced gif, e.g. http://samples.mplayerhq.hu/GIF/7up.gif
Originally committed as revision 12297 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 13:16:29 +00:00
Michael Niedermayer
78db672cae Use block_align as the avi spec says.
fix issue274

Originally committed as revision 12296 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 01:27:15 +00:00
Michael Niedermayer
143b082044 Print slightly more useful info.
Originally committed as revision 12295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-03 01:23:18 +00:00
Michael Niedermayer
a7805e2983 Fallback to sample rate if bit rate is 0. This avoids 0 timebases in nut.
Originally committed as revision 12294 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-02 23:47:30 +00:00
Michael Niedermayer
9fdfd21c77 factorize
Originally committed as revision 12293 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-02 23:13:07 +00:00
Michael Niedermayer
a048febdc4 subtitles (codec tag tables still missing ...)
Originally committed as revision 12292 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-02 23:11:36 +00:00
Ramiro Polla
c6eed369d2 Use "disable" helper function
Originally committed as revision 12291 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-02 20:13:47 +00:00
Michael Niedermayer
5b08754912 Store aspect ratio in avis.
Originally committed as revision 12290 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-02 19:51:31 +00:00
Michael Niedermayer
1f3d74d39b Remove INFINITY as suggested by rich.
Originally committed as revision 12289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-01 23:59:14 +00:00
Michael Niedermayer
3948c74f80 Remove INFINITY.
Originally committed as revision 12288 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-01 23:36:27 +00:00
Justin Ruggles
d8870f120e use scale factor instead of sum for downmix level adjustment. avoids division
inside downmix loop. 7% faster 5.1-to-stereo downmixing.

Originally committed as revision 12287 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-01 16:10:19 +00:00
Justin Ruggles
9d10e6e6c0 pre-calculate downmix coefficient sums. 2% faster 5.1-to-stereo downmixing.
Originally committed as revision 12286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-01 15:48:18 +00:00