Commit Graph

40 Commits

Author SHA1 Message Date
Michael Niedermayer 18f2d5cb9c mpegvideo: Don't use ff_mspel_motion() for vc1
Using ff_mspel_motion assumes that s (a MpegEncContext
poiinter) really is a Wmv2Context.

This fixes crashes in error resilience on vc1/wmv3 videos.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-07-05 12:41:19 +03:00
Martin Storsjö efd29844eb mpegvideo: Add ff_ prefix to nonstatic functions
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-02-15 22:07:23 +02:00
Martin Storsjö 99560a4caa libavcodec: Add ff_ prefix to some nonstatic symbols
Prefix the functions atrac_generate_tables, atrac_iqmf, dct_quantize_c.

Signed-off-by: Martin Storsjö <martin@martin.st>
2012-02-15 22:06:29 +02:00
Martin Storsjö a082ac4125 mpegvideo: Remove a leftover function declaration
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-02-15 22:06:12 +02:00
John Brooks 9b6aafba6c mpegvideo: fix invalid memory access for small video dimensions
When either video dimension is only one macroblock, subtractions
based on v_edge_pos and the macroblock size may be negative. In
that situation, an unsigned comparison isn't sufficent to test for
MV overruns, because a limit of (unsigned)-1 will let any other
value pass.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2012-01-21 08:28:08 +01:00
Diego Biurrun 58c42af722 doxygen: misc consistency, spelling and wording fixes 2011-12-12 23:06:23 +01:00
Diego Biurrun ee41963f19 cosmetics: drop some completely pointless parentheses 2011-12-07 15:29:13 +01:00
Diego Biurrun 657ccb5ac7 Eliminate FF_COMMON_FRAME macro.
FF_COMMON_FRAME holds the contents of the AVFrame structure and is also copied
to struct Picture.  Replace by an embedded AVFrame structure in struct Picture.
2011-07-11 00:19:00 +02:00
Stefano Sabatini 975a1447f7 Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-05-02 12:18:44 +02:00
Mans Rullgard 2912e87a6c Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-03-19 13:33:20 +00:00
Ronald S. Bultje 2e27959879 Move ff_emulated_edge_mc() into DSPContext. 2011-01-28 22:13:26 -05:00
Diego Elio Pettenò 1d4da6a460 Make denoise_dct_c and dct_quantize_trellis_c static.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-24 23:54:07 +00:00
Diego Biurrun 9a58234fea Fix misspelled parameter names in Doxygen documentation.
This fixes one Doxygen warning each.

Originally committed as revision 23970 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-02 10:49:29 +00:00
Eli Friedman 99267eb702 Fix strict-aliasing violations in MPV_motion_internal.
Patch by Eli Friedman, eli D friedman A gmail

Originally committed as revision 23894 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 01:47:42 +00:00
Jason Garrett-Glaser c31a25e79c Use right-shift instead of division by two.
Patch by Dark Shikari

Originally committed as revision 23723 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-22 21:12:42 +00:00
Diego Biurrun ba87f0801d Remove explicit filename from Doxygen @file commands.
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.

Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-20 14:45:34 +00:00
Diego Biurrun d702a2e6c6 Get rid of pointless CONFIG_WMV2 definition.
Originally committed as revision 20971 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-12-30 02:08:25 +00:00
Michael Niedermayer 078cdecf9e Set mb_y in mpeg2 field pictures like h264 does.
This fixes -vismv & -debug 16384 with field pictures.

Originally committed as revision 20670 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-30 19:14:00 +00:00
Michael Niedermayer 22d4f21331 Make ""MPEG motion vector out of boundary" message more verbose.
Originally committed as revision 20669 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-11-30 17:29:21 +00:00
Jeff Downs 81b44c42d5 Cosmetic: Reindent after last commit
Originally committed as revision 19576 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-03 17:55:02 +00:00
Jeff Downs ca6493ab40 Revert r18344. Fixes at least issue 1218, 1221, and 1187), see master
issue 1221 for details.
Briefly, out of bounds field mvs in field pictures would cause a crash.

Originally committed as revision 19575 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-08-03 17:54:11 +00:00
Baptiste Coudurier e44745f1a8 fix indentation and remove whitespace after return
Originally committed as revision 18481 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-13 03:33:39 +00:00
Michael Niedermayer 38d5647a63 Try to honor even completely invalid motion vectors as far as is
easy.
Fixes issue961.

Originally committed as revision 18344 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-04-06 21:45:02 +00:00
Diego Biurrun bad5537e2c Use full internal pathname in doxygen @file directives.
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.

Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-02-01 02:00:19 +00:00
Diego Biurrun c60208e7a1 Directly #include some required headers.
Originally committed as revision 16780 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-25 19:11:10 +00:00
Diego Biurrun 406792e7b0 cosmetics: Remove pointless period after copyright statement non-sentences.
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-19 15:46:40 +00:00
Aurelien Jacobs 49fb20cb8a replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
and remove all ENABLE_ definitions.

Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-14 17:19:17 +00:00
Aurelien Jacobs b250f9c66d Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 23:44:16 +00:00
Carl Eugen Hoyos bf615b89e3 Fix a warning about an undefined function when compiling h264.c
Originally committed as revision 15462 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-29 15:41:55 +00:00
Stefano Sabatini 987903826b Globally rename the header inclusion guard names.
Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.'  to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_".

Originally committed as revision 15120 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-08-31 07:39:47 +00:00
Keiji Costantini b1d31e2f12 Force inlining of MPV_motion_internal.
Patch by strites: strites gmail com
Original thread: [FFmpeg-devel] [PATCH] Patch cleanup for MPEG 1 & 2 optimizations
Date: 04/06/2008 11:32 PM

Originally committed as revision 12918 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-21 08:32:11 +00:00
Keiji Costantini bd7c626ad0 Unroll codepath
Patch by strites: strites gmail com
Original thread: [FFmpeg-devel] [PATCH] Patch cleanup for MPEG 1 & 2 optimizations
Date: 04/06/2008 11:32 PM

Originally committed as revision 12917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-21 08:30:54 +00:00
Keiji Costantini cb9501f4e3 cosmetics: Break some overly long lines.
patch by Keiji Costantini, lists strites net

Originally committed as revision 12782 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-10 19:07:12 +00:00
Keiji Costantini 08c9bfbaf8 cosmetics: Break some overly long lines.
patch by Keiji Costantini, lists strites net

Originally committed as revision 12781 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-04-10 10:40:01 +00:00
Aurelien Jacobs 9701840bb5 add FF_ prefix to all (frame)_TYPE usage
Originally committed as revision 12399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-09 23:31:02 +00:00
Diego Biurrun 5b21bdabe4 Add FFMPEG_ prefix to all multiple inclusion guards.
Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-10-17 09:37:46 +00:00
Michael Niedermayer cde9e78001 make grayscale only decoding checks in inner loops compiletime killable
Originally committed as revision 9846 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-08-01 00:39:39 +00:00
Panagiotis Issaris b9ca204284 Fix typo
Originally committed as revision 9841 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-31 16:22:57 +00:00
Diego Biurrun 7b94177e37 Group all copyright and author notices together.
Originally committed as revision 9483 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-05 10:37:29 +00:00
Benoit Fouet 3ada94ba28 Description: split mpegvideo.c
Originally committed as revision 9467 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-03 09:55:56 +00:00