libav.git
11 years agoCorrectly handle empty frames
Kostya Shishkov [Sun, 9 Mar 2008 14:15:40 +0000 (14:15 +0000)]
Correctly handle empty frames

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

11 years agoFraps v5 decoding support
Kostya Shishkov [Sun, 9 Mar 2008 09:04:35 +0000 (09:04 +0000)]
Fraps v5 decoding support

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

11 years agoAdd step variable (for future v5 decoding)
Kostya Shishkov [Sun, 9 Mar 2008 09:03:23 +0000 (09:03 +0000)]
Add step variable (for future v5 decoding)

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

11 years agorecognize the CLJR FourCC (Cirrus Logic AccuPak)
Mike Melanson [Sun, 9 Mar 2008 04:18:48 +0000 (04:18 +0000)]
recognize the CLJR FourCC (Cirrus Logic AccuPak)

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

11 years agoVFW grabber
Ramiro Polla [Sat, 8 Mar 2008 23:18:47 +0000 (23:18 +0000)]
VFW grabber

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

11 years agoCorrectly handle case where buffer is 100% full
Ramiro Polla [Sat, 8 Mar 2008 23:06:33 +0000 (23:06 +0000)]
Correctly handle case where buffer is 100% full

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

11 years agoadd myself as vfwcap.c maintainer
Ramiro Polla [Sat, 8 Mar 2008 22:59:41 +0000 (22:59 +0000)]
add myself as vfwcap.c maintainer

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

11 years agodc1394.c has been renamed to libdc1394.c
Ramiro Polla [Sat, 8 Mar 2008 22:58:04 +0000 (22:58 +0000)]
dc1394.c has been renamed to libdc1394.c

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

11 years agoSplit libavdevice maintainers out of libavformat
Ramiro Polla [Sat, 8 Mar 2008 22:55:31 +0000 (22:55 +0000)]
Split libavdevice maintainers out of libavformat

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

11 years agoTypo + grammar
Ramiro Polla [Sat, 8 Mar 2008 22:43:13 +0000 (22:43 +0000)]
Typo + grammar

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

11 years agoVFW capture support
Ramiro Polla [Sat, 8 Mar 2008 22:10:28 +0000 (22:10 +0000)]
VFW capture support

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

11 years agoIntroduce max_picture_buffer variable in AVFormatContext,
Ramiro Polla [Sat, 8 Mar 2008 21:59:11 +0000 (21:59 +0000)]
Introduce max_picture_buffer variable in AVFormatContext,
set by rtbufsize option.

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

11 years ago#error in case we do not know how to provide alignment.
Diego Biurrun [Sat, 8 Mar 2008 20:30:15 +0000 (20:30 +0000)]
#error in case we do not know how to provide alignment.

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

11 years agocosmetics: Fix indentation in a few more places.
Diego Biurrun [Sat, 8 Mar 2008 20:27:16 +0000 (20:27 +0000)]
cosmetics: Fix indentation in a few more places.

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

11 years agocosmetics: Normalize {} placement after for, while, if.
Diego Biurrun [Sat, 8 Mar 2008 20:24:24 +0000 (20:24 +0000)]
cosmetics: Normalize {} placement after for, while, if.

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

11 years agoMention that libavdevice/x11grab.c is GPLed.
Diego Biurrun [Sat, 8 Mar 2008 19:24:06 +0000 (19:24 +0000)]
Mention that libavdevice/x11grab.c is GPLed.

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

11 years agoDefine WIN32_LEAN_AND_MEAN before including windows.h to exclude
Ramiro Polla [Sat, 8 Mar 2008 19:00:55 +0000 (19:00 +0000)]
Define WIN32_LEAN_AND_MEAN before including windows.h to exclude
rarely-used header files.

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

11 years agoInclude windows.h instead of trying to redeclare Sleep
Ramiro Polla [Sat, 8 Mar 2008 18:59:45 +0000 (18:59 +0000)]
Include windows.h instead of trying to redeclare Sleep
os_support.h used to be included in all lavf files, and including windows.h
here caused a significant slowdown.

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

11 years agoRename pp variable to postproc for consistency.
Diego Biurrun [Sat, 8 Mar 2008 18:50:38 +0000 (18:50 +0000)]
Rename pp variable to postproc for consistency.

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

11 years agocheck for x86 bswap instruction
Måns Rullgård [Sat, 8 Mar 2008 18:33:07 +0000 (18:33 +0000)]
check for x86 bswap instruction

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

11 years agohuffman: add a zero_count flag and use it in fraps
Aurelien Jacobs [Sat, 8 Mar 2008 18:08:16 +0000 (18:08 +0000)]
huffman: add a zero_count flag and use it in fraps
fixes issue349

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

11 years agohuffman: pass hnode_first as a flag instead of as an argument on its own
Aurelien Jacobs [Sat, 8 Mar 2008 17:57:13 +0000 (17:57 +0000)]
huffman: pass hnode_first as a flag instead of as an argument on its own

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

11 years agoPut network-related code under #ifdef
Ramiro Polla [Sat, 8 Mar 2008 17:43:53 +0000 (17:43 +0000)]
Put network-related code under #ifdef

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

11 years agoGroup network-related code together
Ramiro Polla [Sat, 8 Mar 2008 17:43:10 +0000 (17:43 +0000)]
Group network-related code together

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

11 years agoFix unused variable warnings.
Mark Cox [Sat, 8 Mar 2008 17:18:28 +0000 (17:18 +0000)]
Fix unused variable warnings.
patch by mark cox, melbournemark+ffmpeg gmail.com

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

11 years agocosmetics: prettyprinting
Diego Biurrun [Sat, 8 Mar 2008 16:19:46 +0000 (16:19 +0000)]
cosmetics: prettyprinting

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

11 years agoInstall libavfilter if it has been enabled.
Diego Biurrun [Sat, 8 Mar 2008 16:19:03 +0000 (16:19 +0000)]
Install libavfilter if it has been enabled.

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

11 years agoThe videohook target does not depend on .libs.
Diego Biurrun [Sat, 8 Mar 2008 15:19:07 +0000 (15:19 +0000)]
The videohook target does not depend on .libs.

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

11 years agoMake ffplay use parse_number_or_die instead of atoi.
Diego Biurrun [Sat, 8 Mar 2008 15:06:43 +0000 (15:06 +0000)]
Make ffplay use parse_number_or_die instead of atoi.
Stefano Sabatini, stefano.sabatini-lala poste it

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

11 years agocosmetics: Remove useless empty line.
Diego Biurrun [Sat, 8 Mar 2008 14:54:36 +0000 (14:54 +0000)]
cosmetics: Remove useless empty line.

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

11 years agocosmetics: Remove useless empty line.
Diego Biurrun [Sat, 8 Mar 2008 14:54:15 +0000 (14:54 +0000)]
cosmetics: Remove useless empty line.

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

11 years agocosmetics: Consistently move NAME and FFLIBS to the top of each Makefile.
Diego Biurrun [Sat, 8 Mar 2008 14:40:18 +0000 (14:40 +0000)]
cosmetics: Consistently move NAME and FFLIBS to the top of each Makefile.

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

11 years agocosmetics: Consistently move NAME and FFLIBS to the top of each Makefile.
Diego Biurrun [Sat, 8 Mar 2008 14:39:43 +0000 (14:39 +0000)]
cosmetics: Consistently move NAME and FFLIBS to the top of each Makefile.

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

11 years ago__stdcall -> WINAPI
Ramiro Polla [Fri, 7 Mar 2008 19:47:44 +0000 (19:47 +0000)]
__stdcall -> WINAPI
Windows x64 has no __stdcall.
It is not yet supported, but someday it might...

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

11 years agosimplify library version handling
Måns Rullgård [Fri, 7 Mar 2008 19:27:17 +0000 (19:27 +0000)]
simplify library version handling

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

11 years agoreplace -f pgmyuv with -f image2 -vcodec pgmyuv
Måns Rullgård [Fri, 7 Mar 2008 19:27:14 +0000 (19:27 +0000)]
replace -f pgmyuv with -f image2 -vcodec pgmyuv

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

11 years agoSimplify do_video_encoding() in regression.sh
Måns Rullgård [Fri, 7 Mar 2008 19:27:10 +0000 (19:27 +0000)]
Simplify do_video_encoding() in regression.sh

All calls of this function use pgmyuv input format; hence
no need to specify it explicitly.

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

11 years agosimplify library version handling
Måns Rullgård [Fri, 7 Mar 2008 19:27:08 +0000 (19:27 +0000)]
simplify library version handling

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

11 years agoRemove mp4psp regression test
Måns Rullgård [Fri, 7 Mar 2008 19:27:07 +0000 (19:27 +0000)]
Remove mp4psp regression test

The PSP MP4 format requires an AAC audio stream, so until
we have an AAC encoder we cannot test this format.

The existing test is broken and does not actually use the
PSP format.

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

11 years agoAdd 'disposition' bitfield to AVStream and use it for both muxing and demuxing
Evgeniy Stepanov [Fri, 7 Mar 2008 19:25:09 +0000 (19:25 +0000)]
Add 'disposition' bitfield to AVStream and use it for both muxing and demuxing
of matroska and nut.

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

11 years agofix AVClass for avfilter
Måns Rullgård [Fri, 7 Mar 2008 09:08:28 +0000 (09:08 +0000)]
fix AVClass for avfilter

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

11 years agoindentation
Baptiste Coudurier [Thu, 6 Mar 2008 23:10:47 +0000 (23:10 +0000)]
indentation

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

11 years agodo not display par and dar if not available
Baptiste Coudurier [Thu, 6 Mar 2008 23:09:16 +0000 (23:09 +0000)]
do not display par and dar if not available

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

11 years agoconsolidate CFLAGS, LDFLAGS, EXTRALIBS assignment
Måns Rullgård [Thu, 6 Mar 2008 20:44:47 +0000 (20:44 +0000)]
consolidate CFLAGS, LDFLAGS, EXTRALIBS assignment

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

11 years agoconsolidate CFLAGS, LDFLAGS, EXTRALIBS assignment
Måns Rullgård [Thu, 6 Mar 2008 20:44:44 +0000 (20:44 +0000)]
consolidate CFLAGS, LDFLAGS, EXTRALIBS assignment

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

11 years agodo not reset duration_error for all streams, only reset current stream, fix wrong_fps.gxf
Baptiste Coudurier [Thu, 6 Mar 2008 17:44:42 +0000 (17:44 +0000)]
do not reset duration_error for all streams, only reset current stream, fix wrong_fps.gxf

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

11 years agoMake av_class a pointer to a const AVClass. Addresses one warning in
Panagiotis Issaris [Thu, 6 Mar 2008 17:41:31 +0000 (17:41 +0000)]
Make av_class a pointer to a const AVClass. Addresses one warning in
imgresample.c.

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

11 years agoDon't use unchecked data from the bitstream.
Benjamin Larsson [Thu, 6 Mar 2008 14:22:02 +0000 (14:22 +0000)]
Don't use unchecked data from the bitstream.

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

11 years agosupport AVDISCARD_ALL
Baptiste Coudurier [Thu, 6 Mar 2008 13:40:29 +0000 (13:40 +0000)]
support AVDISCARD_ALL

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

11 years agochange sws_format_name to return const char*, supress many warnings
Baptiste Coudurier [Thu, 6 Mar 2008 11:32:25 +0000 (11:32 +0000)]
change sws_format_name to return const char*, supress many warnings

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

11 years agoremove redundant SwScaler text since av_log uses AVClass context
Baptiste Coudurier [Thu, 6 Mar 2008 09:51:25 +0000 (09:51 +0000)]
remove redundant SwScaler text since av_log uses AVClass context

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

11 years agofix interlaced decoding, original patch from reimar
Baptiste Coudurier [Thu, 6 Mar 2008 09:45:59 +0000 (09:45 +0000)]
fix interlaced decoding, original patch from reimar

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

11 years agoIMA ADPCM encoder - QT variant
Kostya Shishkov [Thu, 6 Mar 2008 07:30:41 +0000 (07:30 +0000)]
IMA ADPCM encoder - QT variant

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

11 years agoSkip over unknown extended_content_header tags.
Michael Niedermayer [Thu, 6 Mar 2008 00:26:48 +0000 (00:26 +0000)]
Skip over unknown extended_content_header tags.
fixes issue358

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

11 years agosimplify
Michael Niedermayer [Thu, 6 Mar 2008 00:20:49 +0000 (00:20 +0000)]
simplify

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

11 years agomake compilation of mpeg12* and mpegvideo conditional
Aurelien Jacobs [Wed, 5 Mar 2008 21:43:30 +0000 (21:43 +0000)]
make compilation of mpeg12* and mpegvideo conditional

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

11 years agomove ff_mpeg1_dc_scale_table to mpegvideo.c
Aurelien Jacobs [Wed, 5 Mar 2008 21:29:15 +0000 (21:29 +0000)]
move ff_mpeg1_dc_scale_table to mpegvideo.c

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

11 years agoallow vpath search only for source files
Måns Rullgård [Wed, 5 Mar 2008 21:27:58 +0000 (21:27 +0000)]
allow vpath search only for source files

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

11 years agosimplify processing of some --disable-* options
Måns Rullgård [Wed, 5 Mar 2008 19:56:54 +0000 (19:56 +0000)]
simplify processing of some --disable-* options

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

11 years agoAdd correct version number to shared libavfilter
Vitor Sessak [Wed, 5 Mar 2008 19:43:07 +0000 (19:43 +0000)]
Add correct version number to shared libavfilter

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

11 years agoFix avfilter compilation with --enable-shared and no libswscaler
Vitor Sessak [Wed, 5 Mar 2008 18:26:44 +0000 (18:26 +0000)]
Fix avfilter compilation with --enable-shared and no libswscaler

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

11 years agoadd dependencies for matroska audio and nut muxers over lavc
Aurelien Jacobs [Wed, 5 Mar 2008 16:34:47 +0000 (16:34 +0000)]
add dependencies for matroska audio and nut muxers over lavc

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

11 years agoSet TCP protocol to is_streamed=1 as seeking is not possible.
Diego Biurrun [Wed, 5 Mar 2008 15:29:10 +0000 (15:29 +0000)]
Set TCP protocol to is_streamed=1 as seeking is not possible.
Björn Axelsson, bjorn.axelsson intinor se

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

11 years agodoxyfy frame type comments and add some more comments
Aurelien Jacobs [Wed, 5 Mar 2008 15:23:54 +0000 (15:23 +0000)]
doxyfy frame type comments and add some more comments

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

11 years agodefine BI frame type along with other frame types
Aurelien Jacobs [Wed, 5 Mar 2008 15:19:26 +0000 (15:19 +0000)]
define BI frame type along with other frame types

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

11 years agocosmetic: align
Aurelien Jacobs [Wed, 5 Mar 2008 15:15:07 +0000 (15:15 +0000)]
cosmetic: align

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

11 years agoremove some unneeded artificial dependencies from configure
Aurelien Jacobs [Wed, 5 Mar 2008 14:50:42 +0000 (14:50 +0000)]
remove some unneeded artificial dependencies from configure

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

11 years agoadd some required objects dependencies
Aurelien Jacobs [Wed, 5 Mar 2008 14:49:43 +0000 (14:49 +0000)]
add some required objects dependencies

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

11 years agoAvoid linking with h263 and mpeg4 find_frame_end()
Aurelien Jacobs [Wed, 5 Mar 2008 14:46:51 +0000 (14:46 +0000)]
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

11 years agoAdd some information about the stream bitrate, if available
Luca Abeni [Wed, 5 Mar 2008 13:31:24 +0000 (13:31 +0000)]
Add some information about the stream bitrate, if available

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

11 years agoSubtitle support. (untested)
Michael Niedermayer [Wed, 5 Mar 2008 13:06:49 +0000 (13:06 +0000)]
Subtitle support. (untested)

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

11 years agoThe last flag fix fixed mpeg4-qprd (there the flags ended up being trashed
Michael Niedermayer [Wed, 5 Mar 2008 12:45:32 +0000 (12:45 +0000)]
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

11 years agoset block align for mace3/6
Baptiste Coudurier [Wed, 5 Mar 2008 12:06:57 +0000 (12:06 +0000)]
set block align for mace3/6

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

11 years agocorrectly compute bit rate for compressed audio, should fix seeking in aiff
Baptiste Coudurier [Wed, 5 Mar 2008 12:02:32 +0000 (12:02 +0000)]
correctly compute bit rate for compressed audio, should fix seeking in aiff

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

11 years agofix the WC3 Xan decoder by correcting the frame accounting logic
Mike Melanson [Wed, 5 Mar 2008 06:58:20 +0000 (06:58 +0000)]
fix the WC3 Xan decoder by correcting the frame accounting logic

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

11 years agoOne more (forgotten) fix for fixing sws_flags.
Michael Niedermayer [Wed, 5 Mar 2008 04:03:44 +0000 (04:03 +0000)]
One more (forgotten) fix for fixing sws_flags.

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

11 years agosws_flags is unsigned.
Michael Niedermayer [Wed, 5 Mar 2008 04:02:04 +0000 (04:02 +0000)]
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

11 years agoFix handling flags with the MSB set.
Michael Niedermayer [Wed, 5 Mar 2008 03:59:07 +0000 (03:59 +0000)]
Fix handling flags with the MSB set.

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

11 years agoTurn ancient V offset numerical constants into named ones.
Michael Niedermayer [Wed, 5 Mar 2008 03:00:25 +0000 (03:00 +0000)]
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

11 years agoremove more useless mpegvideo.h includes
Aurelien Jacobs [Wed, 5 Mar 2008 00:43:11 +0000 (00:43 +0000)]
remove more useless mpegvideo.h includes

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

11 years agomove EDGE_WIDTH definition allong with draw_edges where it belongs
Aurelien Jacobs [Wed, 5 Mar 2008 00:38:14 +0000 (00:38 +0000)]
move EDGE_WIDTH definition allong with draw_edges where it belongs

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

11 years agoremove #include "mpegvideo.h" where it is not needed
Aurelien Jacobs [Wed, 5 Mar 2008 00:07:53 +0000 (00:07 +0000)]
remove #include "mpegvideo.h" where it is not needed

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

11 years agomove relevant declarations to mpeg12data.h
Aurelien Jacobs [Wed, 5 Mar 2008 00:06:09 +0000 (00:06 +0000)]
move relevant declarations to mpeg12data.h

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

11 years agomove run length table constants to rl.h
Aurelien Jacobs [Tue, 4 Mar 2008 23:58:12 +0000 (23:58 +0000)]
move run length table constants to rl.h

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

11 years agomove ff_emulated_edge_mc() to dsputil
Aurelien Jacobs [Tue, 4 Mar 2008 23:10:47 +0000 (23:10 +0000)]
move ff_emulated_edge_mc() to dsputil

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

11 years agoRemove unused elements from tables.
Michael Niedermayer [Tue, 4 Mar 2008 22:09:54 +0000 (22:09 +0000)]
Remove unused elements from tables.

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

11 years agoDetect and prevent reading over the end of counts_*. We pass the error
Michael Niedermayer [Tue, 4 Mar 2008 21:58:34 +0000 (21:58 +0000)]
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

11 years agoPrevent segfault due to reading over the end of the input buffer.
Michael Niedermayer [Tue, 4 Mar 2008 21:39:21 +0000 (21:39 +0000)]
Prevent segfault due to reading over the end of the input buffer.

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

11 years agofix wmv3 dependencies
Aurelien Jacobs [Tue, 4 Mar 2008 18:38:32 +0000 (18:38 +0000)]
fix wmv3 dependencies

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

11 years agoFix compilation on powerpc.
Aurelien Jacobs [Tue, 4 Mar 2008 18:35:12 +0000 (18:35 +0000)]
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

11 years agoremove old draw_edges declaration cruft
Aurelien Jacobs [Tue, 4 Mar 2008 10:54:51 +0000 (10:54 +0000)]
remove old draw_edges declaration cruft

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

11 years agomove ff_init_scantable() into dsputil
Aurelien Jacobs [Tue, 4 Mar 2008 10:26:56 +0000 (10:26 +0000)]
move ff_init_scantable() into dsputil

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

11 years agoIgnore flags after pts/dts if there are no bytes left.
Michael Niedermayer [Tue, 4 Mar 2008 01:31:15 +0000 (01:31 +0000)]
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

11 years agomove draw_edges() into dsputil
Aurelien Jacobs [Tue, 4 Mar 2008 00:07:41 +0000 (00:07 +0000)]
move draw_edges() into dsputil

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

11 years agodsputil.h is a local header
Aurelien Jacobs [Mon, 3 Mar 2008 23:14:25 +0000 (23:14 +0000)]
dsputil.h is a local header

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

11 years agoinclude required header
Aurelien Jacobs [Mon, 3 Mar 2008 23:10:13 +0000 (23:10 +0000)]
include required header

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

11 years agoinclude required headers for int64_t and AV_RB16()
Aurelien Jacobs [Mon, 3 Mar 2008 23:00:48 +0000 (23:00 +0000)]
include required headers for int64_t and AV_RB16()

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

11 years agoavi.h does not use anything from avcodec.h.
Aurelien Jacobs [Mon, 3 Mar 2008 22:56:07 +0000 (22:56 +0000)]
avi.h does not use anything from avcodec.h.

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

11 years agoFix endian test with grep not handling non-text files
Måns Rullgård [Mon, 3 Mar 2008 22:01:15 +0000 (22:01 +0000)]
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

11 years agoremove invalid free() forgotten in r12300
Måns Rullgård [Mon, 3 Mar 2008 21:54:18 +0000 (21:54 +0000)]
remove invalid free() forgotten in r12300

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