Statistics
| Branch: | Revision:

ffmpeg / libavcodec / msmpeg4.c @ d2940155

History | View | Annotate | Download (61.1 KB)

# Date Author Comment
d2940155 04/12/2011 11:46 PM Alberto Delmas

Check for successful h263 init in msmpeg4 init

Signed-off-by: Ronald S. Bultje <>

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

d36beb3f 01/26/2011 04:08 PM Diego Elio Pettenò

Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.

None of these symbols should be accessed directly, so declare them as
hidden.

Signed-off-by: Mans Rullgard <>

f162e988 01/23/2011 04:41 PM Mans Rullgard

Remove redundant checks against MIN_CACHE_BITS

With the removal of the libmpeg2 bitstream reader, MIN_CACHE_BITS
is always >= 25, so tests against smaller values can be removed.

Signed-off-by: Mans Rullgard <>

b3c1652b 08/24/2010 03:40 PM Måns Rullgård

msmpeg4v1: fix undefined behaviour in msmpeg4_decode_picture_header()

Because the order of evaluation of subexpressions is undefined, two
get_bits() calls may not be part of the same expression. In this
specific case, using get_bits_long() is simpler.

This fixes msmpeg4v1 decoding with armcc....

0fd0ef79 07/07/2010 09:23 PM Carl Eugen Hoyos

Add new decoder property max_lowres and do not init decoder if requested value is higher.

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

ba87f080 04/20/2010 02:45 PM Diego Biurrun

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

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

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

ed3e9148 02/04/2010 02:26 PM Michael Niedermayer

Implement cool new vlc code.
Fixes issue1637

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

261a3c2d 01/08/2010 07:40 PM Michael Niedermayer

Move AVCodecs from h263dec.c to msmpeg4.c and disentangle init decode init.

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

7213abf6 01/08/2010 07:10 PM Michael Niedermayer

Use h263 tables in msmpeg4v1 dont duplicate them halfway.

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

101ada9a 01/08/2010 05:51 PM Michael Niedermayer

Rename most non static h263 tables so their name contains h263.

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

05b858b0 01/08/2010 05:28 PM Michael Niedermayer

Rename DCtab_*, its a global variable and it helps understanding if mpeg4
is in its name.

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

ca334dd1 01/07/2010 11:53 PM Michael Niedermayer

Split the mpeg4 encoder and decoder off h263.c

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

f9310cbb 12/31/2009 01:27 AM Diego Biurrun

Remove unused function msmpeg4_memsetw().
It is an exact duplicate of memsetw() in h263.c.

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

8380edd9 12/30/2009 02:15 PM Diego Biurrun

cosmetics: Reorder functions to avoid forward declarations.

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

941870cd 12/30/2009 01:48 PM Diego Biurrun

Remove unnecessary forward declaration for msmpeg4_memsetw().

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

6e44ba15 11/16/2009 05:42 PM Ronald S. Bultje

Use get_bits_left() instead of size_in_bits - get_bits_count().

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

f2d702e1 08/21/2009 09:54 AM Reimar Döffinger

Replace #ifdef PIC checks with the more appropriate HAVE_EBX_AVAILABLE/HAVE_7REGS.

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

7881793d 07/30/2009 08:57 PM Diego Biurrun

Remove unused debug av_log() calls.

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

07fd1782 07/30/2009 07:33 AM Diego Biurrun

Remove unused variable intra_count.

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

9be6f0d2 07/29/2009 09:54 AM Diego Biurrun

Do not check for both CONFIG_VC1_DECODER and CONFIG_WMV3_DECODER,
the former depends upon the latter.

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

03d5ea54 04/17/2009 12:41 PM Michael Niedermayer

Get rid of an unused variable, found by the clang static analyzer.

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

5cf4331b 04/11/2009 01:29 PM Michael Niedermayer

Get rid of INIT_VLC_USE_STATIC in msmpeg4

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

e161e007 04/11/2009 11:47 AM Carl Eugen Hoyos

Use INIT_VLC_USE_STATIC and not its value "1".

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

5ef251e5 02/22/2009 01:48 PM Daniel Verkamp

Add missing av_cold in static init/close functions.

Patch by Daniel Verkamp daniel at drv dot nu.

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

a5037227 02/09/2009 10:04 PM Michael Niedermayer

Fix: libavcodec/msmpeg4.c:1612: warning: ‘dc_pred_dir’ may be used uninitialized in this function

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

bad5537e 02/01/2009 02:00 AM Diego Biurrun

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

406792e7 01/19/2009 03:46 PM Diego Biurrun

cosmetics: Remove pointless period after copyright statement non-sentences.

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

49fb20cb 01/14/2009 05:19 PM Aurelien Jacobs

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

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

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

be449fca 10/16/2008 01:34 PM Diego Pettenò

Convert asm keyword into asm.

Neither the asm() nor the asm() keyword is part of the C99
standard, but while GCC accepts the former in C89 syntax, it is not
accepted in C99 unless GNU extensions are turned on (with -fasm). The
latter form is accepted in any syntax as an extension (without...

cb92c528 10/04/2008 09:43 AM Diego Pettenò

Mark the ff_find_best_tables symbol static to msmpeg4. Patch by Diego Pettenò

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

047599a4 09/08/2008 06:18 PM Michael Niedermayer

Rename error_resilience to error_recognition.

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

6647ab80 07/13/2008 02:27 PM Ramiro Polla

bitstream: move put_sbits() from flacenc.c to bitstream.h and use it
throughout libavcodec.

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

5a893969 06/25/2008 11:33 AM Stefan Gehrer

remove duplicate tables

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

ceaaf78b 05/30/2008 09:08 PM Michael Niedermayer

Change init_vlc_rl() so it does not use *alloc_static() anymore.

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

9701840b 03/09/2008 11:31 PM Aurelien Jacobs

add FF_ prefix to all (frame)_TYPE usage

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

5e534865 02/13/2008 09:26 AM Diego Biurrun

typo fix: inited --> initialized

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

9ad5675f 01/14/2008 10:10 PM Sigbjørn Skjæret

Add a couple of missing consts.
patch by Sigbjørn Skjæret, cisc broadpark no

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

c16d6c50 11/07/2007 11:42 PM Aurelien Jacobs

cosmetics: indentation

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

cc6de104 11/07/2007 11:41 PM Aurelien Jacobs

split wmv2 in its own file

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

85f601ee 11/07/2007 11:23 PM Aurelien Jacobs

rename some msmpeg4 symbols and make them non-static
so that they can be used in standalone wmv2.c

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

9488b966 08/13/2007 05:57 PM Diego Biurrun

Move msmpeg4 tables from a header file to msmpegdata.c.

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

d7826b58 08/05/2007 08:03 PM Michael Niedermayer

make wmv1 and wmv2 playable with M$ DMO decoder

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

7b94177e 07/05/2007 10:37 AM Diego Biurrun

Group all copyright and author notices together.

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

b05b1931 06/22/2007 08:35 AM Fortin Denis

modify msmpeg4 functions to generate VC1 compatible block layer bitstream
patch by Fortin Denis: \fortin nerim net/
original thread: [FFmpeg-devel] [PATCH] wmv3 encoder : msmpeg4.c changes
date: 06/19/2007 09:54 PM

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

c68a173e 06/21/2007 07:53 AM Denis Fortin

static (inline) X => ff_X
patch by Denis Fortin: \fortin nerim net/
original thread: [FFmpeg-devel] [PATCH] wmv3 encoder : msmpeg4.c changes
date: 06/19/2007 09:54 PM

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

90b5b51e 06/12/2007 06:50 PM Diego Biurrun

misc typo fixes

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

755bfeab 06/12/2007 09:29 AM Diego Biurrun

misc spelling fixes

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

f0edfda5 06/05/2007 07:18 AM Denis Fortin

Rename code012() to ff_code012(), and remove static qualifier: paves the way
to vc1 encoder, as this function would be useful there.
patch by Denis Fortin % fortin A nerim P net %
Original thread:
date: Jun 4, 2007 9:23 PM
subject: Re: [FFmpeg-devel] [RFC] move wmv2.c to its own file...

42ef2dbc 05/10/2007 10:03 AM Aurelien Jacobs

split msmpeg4 data to easily share some of it with vc1.c

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

3502a54f 03/14/2007 01:19 PM Michael Niedermayer

kill av_mallocz_static() calls in init_rl()

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

36cd3069 11/12/2006 06:49 PM Måns Rullgård

rename inverse -> ff_inverse

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

3cd52279 11/01/2006 06:34 PM Diego Biurrun

Use common define for x86_32 and x86_64.

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

c26abfa5 10/11/2006 11:17 PM Diego Biurrun

Rename ABS macro to FFABS.

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

b78e7197 10/07/2006 03:30 PM Diego Biurrun

Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

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

b86216de 09/27/2006 10:13 PM Måns Rullgård

dc_val should be signed

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

62bb489b 09/27/2006 07:54 PM Måns Rullgård

add some #ifdef CONFIG_ENCODERS/DECODERS

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

191e8ca7 09/27/2006 07:47 PM Måns Rullgård

fix some signedness warnings

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

a7702890 07/09/2006 10:33 AM Michael Niedermayer

remove STATS code (probably hasnt been used for years ..., and its not completely clear what it was good for anyway)

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

10b9c374 06/27/2006 02:55 AM Kostya Shishkov

Rename VC9 to VC1 as there is no such thing as VC9

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

267f7edc 03/08/2006 11:43 AM Steve L'Homme

(f)printf --> av_log conversion
taken from a patch by Steve L'Homme

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

5509bffa 01/12/2006 10:43 PM Diego Biurrun

Update licensing information: The FSF changed postal address.

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

bb270c08 12/22/2005 01:10 AM Diego Biurrun

COSMETICS: tabs --> spaces, some prettyprinting

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

115329f1 12/17/2005 06:14 PM Diego Biurrun

COSMETICS: Remove all trailing whitespace.

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

95ae72b7 08/26/2005 07:05 PM Michael Niedermayer

Compilation fixes part 1 patch by (Arvind R. and Burkhard Plaum, plaum, ipf uni-stuttgart de)

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

8b975b7c 05/02/2005 10:14 PM Michael Niedermayer

put most codecs under ifdefs

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

c0df9d75 04/30/2005 09:43 PM Michael Niedermayer

switch to native time bases

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

dee6dde6 04/25/2005 12:57 AM Michael Niedermayer

avoid unneeded clear_blocks()

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

160d679c 04/24/2005 05:21 PM Mike Melanson

Ministry of English Composition, reporting for duty (and the word is "skipped", not "skiped"; "skiped" would rhyme with "hyped")

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

e91f4bf1 04/18/2005 08:07 PM Michael Niedermayer

avoid UPDATE_CACHE() in GET_RL_VLC() if not needed

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

0d33db8a 01/30/2005 04:34 PM anonymous

In that patch:
- avctx and gb elements were removed from VC9Context, hence a larger diff
- some code was added to h263dec.c regarding CODEC_ID_WMV3 (should apply to CODEC_ID_VC9 too)
- VLC tables and other related tables were made global whenever this seemed necessary; appropriate changes were therefore made to other parts of the code using those tables...

0c040aac 01/26/2005 12:01 PM anonymous

use dc tables from msmpeg4 instead of duplicating them patch by anonymous

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

a64a006e 01/25/2005 01:40 AM Michael Niedermayer

dont duplicate decode012()

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

073c2593 11/27/2004 06:10 PM Burkhard Plaum

Memory leak fix patch by (Burkhard Plaum <plaum >at< ipf.uni-stuttgart )dot( de>)

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

053dea12 10/11/2004 02:19 AM Aurelien Jacobs

adapting existing mmx/mmx2/sse/3dnow optimizations so they work on x86_64 patch by (Aurelien Jacobs <aurel at gnuage dot org>)

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

4df8ca9d 05/25/2004 06:07 PM Michael Niedermayer

warning fixes by (Michael Roitzsch <mroi at users dot sourceforge dot net>)

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

137c8468 04/16/2004 01:01 AM Michael Niedermayer

unify table indexing (motion_val,dc_val,ac_val,coded_block changed)
minor +-1 bugfix

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

8f2ab833 01/10/2004 04:04 PM Michael Niedermayer

copyright year update of the files i touched and remembered, things look annoyingly unmaintained otherwise

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

6beeb962 12/03/2003 04:07 PM Michael Niedermayer

h263 modified quantization fix

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

9b879566 11/03/2003 01:26 PM Michel Bardiaux

av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)

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

62563c38 08/10/2003 09:11 PM Michael Niedermayer

skip ext header missing message for msmpeg4v2

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

80adda8e 07/29/2003 01:45 AM Michael Niedermayer

debug stuff

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

2a250222 06/22/2003 11:08 AM Michael Niedermayer

CONFIG_ENCODERS cleanup

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

3d2e8cce 05/19/2003 01:30 PM Michael Niedermayer

ASV1 codec
with postprocessing support :)

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

d4961b35 05/14/2003 03:12 PM BERO

fastdiv patch by (BERO <bero at geocities dot co dot jp>) with fixes & cleanup by me

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

05858889 05/14/2003 01:08 AM BERO

decode motion & modulo optimize patch by (BERO <bero at geocities dot co dot jp>)

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

a0c83173 04/25/2003 07:46 PM Michael Niedermayer

2pass stats fix (by ffdshow cvslog)

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

7bc9090a 04/10/2003 01:18 PM Michael Niedermayer

simplified adressing of most mb based arrays (mb_x + mb_y*s->mb_stride) now instead of mb_x + mb_y*mb_width and 1+mb_x + (1+mb_y)*(mb_width+2) and ... mixture
more direct use of the new mb_type stuff instead of codec specific stuff
runtime mb_type debug output h264/h263 variants/mpeg1/2/4...

4d2a4834 04/02/2003 09:57 AM Michael Niedermayer

msmpeg4 2pass support & some related cleanup

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

1f9aea9b 04/01/2003 03:38 PM Michael Niedermayer

fixing msmpeg4v2 encoding

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

46b4feec 03/20/2003 01:00 AM Michael Niedermayer

error resilience cleanup (its faster too...)

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

14bea432 03/12/2003 03:16 PM Michael Niedermayer

per context frame_rate_base, this should finally fix frame_rate related av sync issues

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

983e3246 03/06/2003 11:32 AM Michael Niedermayer

per file doxy

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

7604246d 02/16/2003 11:05 PM Wolfgang Hesseler

more #ifdef CONFIG_ENCODERS patch by (Wolfgang Hesseler <qv at multimediaware dot com>) with modifications by me (s/WOLFGANG/CONFIG_ENCODERS/ and some other fixes)

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

0c1a9eda 02/11/2003 04:35 PM Zdenek Kabelac
  • UINTX -> uintx_t INTX -> intx_t

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

ae2d2d6c 02/10/2003 10:43 PM Michael Niedermayer

check for qscale==0 (fixes 1/0 on one corrupted stream)

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

5c91a675 02/10/2003 09:35 AM Zdenek Kabelac
  • static,const,compiler warning cleanup

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

68f593b4 01/21/2003 05:34 PM Michael Niedermayer

GetBitContext.size is allways multiplied by 8 -> use size_in_bits to avoid useless *8 in a few inner loops

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