ffmpeg.git
12 years agoMove up swscale_error target so that regression tests error out immediately.
Diego Biurrun [Thu, 17 Jul 2008 09:30:48 +0000 (09:30 +0000)]
Move up swscale_error target so that regression tests error out immediately.

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

12 years agoFree in avcodec_close() avctx->rc_eq. Fix a memory leak.
Stefano Sabatini [Wed, 16 Jul 2008 22:10:34 +0000 (22:10 +0000)]
Free in avcodec_close() avctx->rc_eq. Fix a memory leak.

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

12 years ago10000l, revert
Michael Niedermayer [Wed, 16 Jul 2008 17:54:57 +0000 (17:54 +0000)]
10000l, revert
r14254
Log:
The funny memcpyin svq3 generally has src & dst overlapping, so it
should at least be a memmove().
I was tired, they do not overlap.

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

12 years agoindent
Michael Niedermayer [Wed, 16 Jul 2008 17:51:24 +0000 (17:51 +0000)]
indent

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

12 years agoSVQ3 uses the JPEG variant of YUV 4:2:0.
Michael Niedermayer [Wed, 16 Jul 2008 17:48:47 +0000 (17:48 +0000)]
SVQ3 uses the JPEG variant of YUV 4:2:0.
Fixes issue256

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

12 years agocosmetics: Fix mxf codec long name.
Diego Biurrun [Wed, 16 Jul 2008 17:20:21 +0000 (17:20 +0000)]
cosmetics: Fix mxf codec long name.

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

12 years agoprint AVCodecContext address instead of AVClass, better when multiple instances of...
Baptiste Coudurier [Wed, 16 Jul 2008 03:21:23 +0000 (03:21 +0000)]
print AVCodecContext address instead of AVClass, better when multiple instances of same codecs are used, based on r14237

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

12 years agoThe funny memcpyin svq3 generally has src & dst overlapping, so it
Michael Niedermayer [Wed, 16 Jul 2008 02:10:21 +0000 (02:10 +0000)]
The funny memcpyin svq3 generally has src & dst overlapping, so it
should at least be a memmove().

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

12 years agoPrint slice num as well.
Michael Niedermayer [Wed, 16 Jul 2008 01:57:28 +0000 (01:57 +0000)]
Print slice num as well.

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

12 years agofloat_to_int16_interleave: change src to an array of pointers instead of assuming...
Loren Merritt [Wed, 16 Jul 2008 00:50:12 +0000 (00:50 +0000)]
float_to_int16_interleave: change src to an array of pointers instead of assuming it's contiguous.
this has no immediate effect, but will allow it to be used in more codecs.

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

12 years agovorbis: reduce memory by reusing buffers
Loren Merritt [Tue, 15 Jul 2008 23:04:28 +0000 (23:04 +0000)]
vorbis: reduce memory by reusing buffers

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

12 years agounroll another common case in vorbis_residue_decode
Loren Merritt [Tue, 15 Jul 2008 23:01:15 +0000 (23:01 +0000)]
unroll another common case in vorbis_residue_decode

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

12 years agoOGG: Add padding at end of Vorbis headers
Siarhei Siamashka [Tue, 15 Jul 2008 23:00:29 +0000 (23:00 +0000)]
OGG: Add padding at end of Vorbis headers

Patch by Siarhei Siamashka <siarhei.siamashka gmail com>

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

12 years agoMove the size of the H264Context delayed_pic array into a #define.
Alexander Strange [Tue, 15 Jul 2008 21:30:04 +0000 (21:30 +0000)]
Move the size of the H264Context delayed_pic array into a #define.
This improves readability by getting rid of some magic numbers.

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

12 years agoMake v4l2_read_header() don't free a stream in case of failure when
Stefano Sabatini [Tue, 15 Jul 2008 20:45:42 +0000 (20:45 +0000)]
Make v4l2_read_header() don't free a stream in case of failure when
reading its header. The stream will be freed later in
av_open_input_stream(). Fix a segmentation fault due to a double free
on the same pointer.

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

12 years agoMake v4l_read_header() don't free a stream in case of failure when
Stefano Sabatini [Tue, 15 Jul 2008 20:39:20 +0000 (20:39 +0000)]
Make v4l_read_header() don't free a stream in case of failure when
reading its header. The stream will be freed later in
av_open_input_stream(). Fix a segmentation fault due to a double free
on the same pointer.

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

12 years agoARM: optimised MAC64 and MLS64
Måns Rullgård [Tue, 15 Jul 2008 19:06:32 +0000 (19:06 +0000)]
ARM: optimised MAC64 and MLS64

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

12 years agoARM: optimised MUL64
Måns Rullgård [Tue, 15 Jul 2008 19:06:29 +0000 (19:06 +0000)]
ARM: optimised MUL64

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

12 years agoARM: ARMv6 optimised MULH
Måns Rullgård [Tue, 15 Jul 2008 19:06:25 +0000 (19:06 +0000)]
ARM: ARMv6 optimised MULH

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

12 years agoARM: ARMv6 optimised FASTDIV
Måns Rullgård [Tue, 15 Jul 2008 19:06:18 +0000 (19:06 +0000)]
ARM: ARMv6 optimised FASTDIV

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

12 years agoARM: disable use of system byteswap.h
Måns Rullgård [Tue, 15 Jul 2008 19:06:09 +0000 (19:06 +0000)]
ARM: disable use of system byteswap.h

Our bswap functions are better than those in glibc, which has
no ARM-optimised versions.

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

12 years agoARM: fix ARCH_ARM -> ARCH_ARMV4L test in bswap_32()
Måns Rullgård [Tue, 15 Jul 2008 19:06:03 +0000 (19:06 +0000)]
ARM: fix ARCH_ARM -> ARCH_ARMV4L test in bswap_32()

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

12 years agoARM: ARMv6 optimised bswap_16/32
Måns Rullgård [Tue, 15 Jul 2008 19:05:49 +0000 (19:05 +0000)]
ARM: ARMv6 optimised bswap_16/32

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

12 years agoRemove dead code in bitstream.h
Måns Rullgård [Tue, 15 Jul 2008 18:43:26 +0000 (18:43 +0000)]
Remove dead code in bitstream.h

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

12 years agoPrint the address of the AVCodecContext in av_log().
Alexander Strange [Tue, 15 Jul 2008 17:17:35 +0000 (17:17 +0000)]
Print the address of the AVCodecContext in av_log().
This makes debug output much easier to read when the
same codec is open more than once.

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

12 years ago10l, float_to_int16_interleave_sse/3dnow wrote the wrong samples
Loren Merritt [Tue, 15 Jul 2008 04:11:30 +0000 (04:11 +0000)]
10l, float_to_int16_interleave_sse/3dnow wrote the wrong samples

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

12 years agoMake flic probe check a few more things.
Michael Niedermayer [Mon, 14 Jul 2008 22:55:07 +0000 (22:55 +0000)]
Make flic probe check a few more things.
fixes issue399

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

12 years agoMove the codec_id overriding at a slightly better place.
Michael Niedermayer [Mon, 14 Jul 2008 20:31:17 +0000 (20:31 +0000)]
Move the codec_id overriding at a slightly better place.

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

12 years agoH264: fix index range assert() in remove_short_at_index()
Måns Rullgård [Mon, 14 Jul 2008 19:17:13 +0000 (19:17 +0000)]
H264: fix index range assert() in remove_short_at_index()

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

12 years agoRemove common factors from timebase in av_set_pts_info().
Michael Niedermayer [Mon, 14 Jul 2008 19:11:09 +0000 (19:11 +0000)]
Remove common factors from timebase in av_set_pts_info().
Should fix issue313

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

12 years agoFix infinite loop at EOF.
Michael Niedermayer [Mon, 14 Jul 2008 16:18:29 +0000 (16:18 +0000)]
Fix infinite loop at EOF.

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

12 years agoRevert r14218. FFMAX is a macro, so
Vitor Sessak [Mon, 14 Jul 2008 14:41:01 +0000 (14:41 +0000)]
Revert r14218. FFMAX is a macro, so
   sum = FFMAX(1, scalar_product(...));
might calculate the scalar product twice, which is slower.

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

12 years agoonly animated gif (gifdec.c) was removed)
Ben Littler [Mon, 14 Jul 2008 12:08:48 +0000 (12:08 +0000)]
only animated gif (gifdec.c) was removed)

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

12 years agogifdec.c was removed, purge its entry from the Makefile.
Diego Biurrun [Mon, 14 Jul 2008 08:55:07 +0000 (08:55 +0000)]
gifdec.c was removed, purge its entry from the Makefile.

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

12 years agoFix decoding of 320x240.ogg.
Michael Niedermayer [Sun, 13 Jul 2008 23:34:29 +0000 (23:34 +0000)]
Fix decoding of 320x240.ogg.

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

12 years ago-itsscale to scale timestamps
Michael Niedermayer [Sun, 13 Jul 2008 22:55:52 +0000 (22:55 +0000)]
-itsscale to scale timestamps
fixes issue511

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

12 years agoCosmetics: reindent.
Alexander Strange [Sun, 13 Jul 2008 22:27:50 +0000 (22:27 +0000)]
Cosmetics: reindent.

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

12 years agoRemove const vector casts.
Alexander Strange [Sun, 13 Jul 2008 22:27:19 +0000 (22:27 +0000)]
Remove const vector casts.
Fixes compilation with altivec and -std=gnu99.

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

12 years agoremoved gif decoder in r14209
Ben Littler [Sun, 13 Jul 2008 22:21:25 +0000 (22:21 +0000)]
removed gif decoder in r14209

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

12 years agoDrop non-C99-compliant initialization.
Diego Biurrun [Sun, 13 Jul 2008 21:59:58 +0000 (21:59 +0000)]
Drop non-C99-compliant initialization.

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

12 years agoMake our flac decoder decode all the data at EOF.
Michael Niedermayer [Sun, 13 Jul 2008 21:51:29 +0000 (21:51 +0000)]
Make our flac decoder decode all the data at EOF.
Fixes issue524

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

12 years agotools/trasher: Don't mix srand/rand and srandom/random interface.
Matthieu Castet [Sun, 13 Jul 2008 21:44:00 +0000 (21:44 +0000)]
tools/trasher: Don't mix srand/rand and srandom/random interface.
patch by matthieu castet, castet.matthieu free fr

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

12 years agostrdup() the default value for rc_eq in AVCodec when setting it in
Stefano Sabatini [Sun, 13 Jul 2008 21:44:00 +0000 (21:44 +0000)]
strdup() the default value for rc_eq in AVCodec when setting it in
avcodec_get_context_defaults(). The value has to be alloced dinamically
rather than statically since it may be freed for example by
av_set_string2(). Fix a segmentation fault.

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

12 years agoOn EOF keep calling the decoders until they do not output anything
Michael Niedermayer [Sun, 13 Jul 2008 21:39:18 +0000 (21:39 +0000)]
On EOF keep calling the decoders until they do not output anything
anymore, instead of just once.

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

12 years agoFix the logic to access the location of a string to free when setting
Stefano Sabatini [Sun, 13 Jul 2008 21:28:17 +0000 (21:28 +0000)]
Fix the logic to access the location of a string to free when setting
a new value for a string with av_set_string2(). Fix a segmentation
fault.

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

12 years agoSimplify
Vitor Sessak [Sun, 13 Jul 2008 20:41:09 +0000 (20:41 +0000)]
Simplify

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

12 years agoAnother av_clipf() usage
Vitor Sessak [Sun, 13 Jul 2008 20:39:55 +0000 (20:39 +0000)]
Another av_clipf() usage

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

12 years agoDo not declare as double a var that only stores a float
Vitor Sessak [Sun, 13 Jul 2008 20:38:42 +0000 (20:38 +0000)]
Do not declare as double a var that only stores a float

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

12 years agoSimplify: use FFMAX
Vitor Sessak [Sun, 13 Jul 2008 20:36:32 +0000 (20:36 +0000)]
Simplify: use FFMAX

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

12 years agocheck that csize in ff_lzw_decode_init is < LZW_MAXBITS, <= is not enough and
Reimar Döffinger [Sun, 13 Jul 2008 20:03:57 +0000 (20:03 +0000)]
check that csize in ff_lzw_decode_init is < LZW_MAXBITS, <= is not enough and
might read outside the prefix array

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

12 years agoAdd av_clipf() function to common.h and use it in ra288.c
Vitor Sessak [Sun, 13 Jul 2008 19:59:44 +0000 (19:59 +0000)]
Add av_clipf() function to common.h and use it in ra288.c

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

12 years agodvdsubdec: allow compilation with -DDEBUG
Måns Rullgård [Sun, 13 Jul 2008 19:41:13 +0000 (19:41 +0000)]
dvdsubdec: allow compilation with -DDEBUG

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

12 years agoRTP: use dprintf(), allow compilation with -DDEBUG
Måns Rullgård [Sun, 13 Jul 2008 19:41:10 +0000 (19:41 +0000)]
RTP: use dprintf(), allow compilation with -DDEBUG

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

12 years agoASF: use dprintf(), allow compilation with -DDEBUG
Måns Rullgård [Sun, 13 Jul 2008 19:41:07 +0000 (19:41 +0000)]
ASF: use dprintf(), allow compilation with -DDEBUG

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

12 years agoRemove gif demuxer, the code contains a gif decoder and lzw decoder neither
Michael Niedermayer [Sun, 13 Jul 2008 18:47:24 +0000 (18:47 +0000)]
Remove gif demuxer, the code contains a gif decoder and lzw decoder neither
belongs in a demuxer, furthermore the code might be exploitable.
Fixes issue530

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

12 years agoUse -vsync 0 unless the user explicitly asked for something
Michael Niedermayer [Sun, 13 Jul 2008 16:19:23 +0000 (16:19 +0000)]
Use -vsync 0  unless the user explicitly asked for something
else when the framerate is above 1000.
Fixes issue259.

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

12 years agoexploit mdct symmetry
Loren Merritt [Sun, 13 Jul 2008 15:03:58 +0000 (15:03 +0000)]
exploit mdct symmetry
2% faster vorbis on conroe, k8. 7% on celeron.

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

12 years agomlpdec: Check for bits left before each read of End-of-Stream indicator and
Ramiro Polla [Sun, 13 Jul 2008 14:59:39 +0000 (14:59 +0000)]
mlpdec: Check for bits left before each read of End-of-Stream indicator and
Substream parity check independently. This allows decoding of streams that
have EOS but don't have Substream parity check.

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

12 years agosimplify vorbis windowing
Loren Merritt [Sun, 13 Jul 2008 14:56:01 +0000 (14:56 +0000)]
simplify vorbis windowing

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

12 years agobitstream: move put_sbits() from flacenc.c to bitstream.h and use it
Ramiro Polla [Sun, 13 Jul 2008 14:27:48 +0000 (14:27 +0000)]
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

12 years agoclip MS ADPCM predictor range to correct [0..6] range, not [0..7]
Reimar Döffinger [Sun, 13 Jul 2008 14:25:31 +0000 (14:25 +0000)]
clip MS ADPCM predictor range to correct [0..6] range, not [0..7]

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

12 years agoUse bytestream and AV_RL* functions in ADPCM code where possible
Reimar Döffinger [Sun, 13 Jul 2008 14:12:51 +0000 (14:12 +0000)]
Use bytestream and AV_RL* functions in ADPCM code where possible

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

12 years agoFix MS ADPCM de- and encoding: first and second sample are swapped.
Reimar Döffinger [Sun, 13 Jul 2008 14:08:28 +0000 (14:08 +0000)]
Fix MS ADPCM de- and encoding: first and second sample are swapped.
Noticeable better decoding of e.g. http://samples.mplayerhq.hu/A-codecs/msadpcm-stereo/dance-b5th.asf

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

12 years agoAdd parisc* to the list of architectures requiring PIC flags for shared libs.
Diego Biurrun [Sun, 13 Jul 2008 12:40:11 +0000 (12:40 +0000)]
Add parisc* to the list of architectures requiring PIC flags for shared libs.

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

12 years agompegaudio: use MAC/MLS macros in ff_mpa_synth_filter
Måns Rullgård [Sun, 13 Jul 2008 12:23:02 +0000 (12:23 +0000)]
mpegaudio: use MAC/MLS macros in ff_mpa_synth_filter

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

12 years agomathops: add MAC64, MLS64, and MLS16
Måns Rullgård [Sun, 13 Jul 2008 12:22:57 +0000 (12:22 +0000)]
mathops: add MAC64, MLS64, and MLS16
MAC64: 64 += 32 x 32 (bits)
MLS64: 64 -= 32 x 32
MLS16: 32 -= 16 x 16

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

12 years agoBitstream: use AV_RB16() in LIBMPEG2_BITSTREAM_READER
Måns Rullgård [Sun, 13 Jul 2008 00:07:43 +0000 (00:07 +0000)]
Bitstream: use AV_RB16() in LIBMPEG2_BITSTREAM_READER

This makes LIBMPEG2_BITSTREAM_READER_HACK redundant, so remove it.

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

12 years agoUse CODEC_ID_PROBE when the mpeg-ps demuxer does not know exactly which
Michael Niedermayer [Sat, 12 Jul 2008 22:17:13 +0000 (22:17 +0000)]
Use CODEC_ID_PROBE when the mpeg-ps demuxer does not know exactly which
video codec is used.
Fixes issue49 Departed Trailer.evo (mpeg ps missdetecting h264 as mpeg2video)

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

12 years agoconfigure: simplify negative dependencies
Måns Rullgård [Sat, 12 Jul 2008 20:55:07 +0000 (20:55 +0000)]
configure: simplify negative dependencies

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

12 years agoconfigure: allow !foo as argument to enabled/disabled and *_deps lists
Måns Rullgård [Sat, 12 Jul 2008 20:55:04 +0000 (20:55 +0000)]
configure: allow !foo as argument to enabled/disabled and *_deps lists

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

12 years agoRemove old hackish codec probe system.
Michael Niedermayer [Sat, 12 Jul 2008 20:40:47 +0000 (20:40 +0000)]
Remove old hackish codec probe system.

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

12 years agoFix pts handling when encoding with libschroedinger, closes issue 453.
Anuradha Suraparaju [Sat, 12 Jul 2008 20:12:18 +0000 (20:12 +0000)]
Fix pts handling when encoding with libschroedinger, closes issue 453.
patch by Anuradha Suraparaju, anuradha rd.bbc.co uk

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

12 years agoFix pts handling when encoding with libdirac.
Anuradha Suraparaju [Sat, 12 Jul 2008 20:09:50 +0000 (20:09 +0000)]
Fix pts handling when encoding with libdirac.
patch by Anuradha Suraparaju, anuradha rd.bbc.co uk

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

12 years agoUse strcmp() instead of strncmp() in set_codec_from_probe_data().
Michael Niedermayer [Sat, 12 Jul 2008 20:01:23 +0000 (20:01 +0000)]
Use strcmp() instead of strncmp() in set_codec_from_probe_data().

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

12 years agoindent
Michael Niedermayer [Sat, 12 Jul 2008 19:57:57 +0000 (19:57 +0000)]
indent

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

12 years agoOnly try to probe the codec when the available data has roughly doubled
Michael Niedermayer [Sat, 12 Jul 2008 19:57:30 +0000 (19:57 +0000)]
Only try to probe the codec when the available data has roughly doubled
relative to the last attempt.

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

12 years agoAdd mpegvideo and H.264 to the codec probe.
Michael Niedermayer [Sat, 12 Jul 2008 19:56:25 +0000 (19:56 +0000)]
Add mpegvideo and H.264 to the codec probe.

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

12 years agoh264_probe()
Michael Niedermayer [Sat, 12 Jul 2008 19:50:48 +0000 (19:50 +0000)]
h264_probe()

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

12 years agoindent
Michael Niedermayer [Sat, 12 Jul 2008 18:43:02 +0000 (18:43 +0000)]
indent

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

12 years agoNew codec probing system try #1.
Michael Niedermayer [Sat, 12 Jul 2008 18:42:00 +0000 (18:42 +0000)]
New codec probing system try #1.

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

12 years agocommand_streams are type data not unknown.
Michael Niedermayer [Sat, 12 Jul 2008 16:43:46 +0000 (16:43 +0000)]
command_streams are type data not unknown.

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

12 years agoUse new style static VLC tables for IMC decoder.
Reimar Döffinger [Sat, 12 Jul 2008 15:02:40 +0000 (15:02 +0000)]
Use new style static VLC tables for IMC decoder.
Also fixes a memleak due to the previous in-context tables not being freed.

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

12 years agoMove add_to_pktbuf() before av_read_packet(). My future work on codec identification
Michael Niedermayer [Sat, 12 Jul 2008 14:28:27 +0000 (14:28 +0000)]
Move add_to_pktbuf() before av_read_packet(). My future work on codec identification
cleanup will need this.

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

12 years agoMove set_codec_from_probe_data() up to where the other probe functions are.
Michael Niedermayer [Sat, 12 Jul 2008 13:25:26 +0000 (13:25 +0000)]
Move set_codec_from_probe_data() up to where the other probe functions are.

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

12 years agoPass AVPacketList instead of the whole context to add_to_pktbuf as that is
Michael Niedermayer [Sat, 12 Jul 2008 13:15:00 +0000 (13:15 +0000)]
Pass AVPacketList instead of the whole context to add_to_pktbuf as that is
all that is needed.

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

12 years agoPrevent users from setting -vol and -acodec copy together.
Ramiro Polla [Sat, 12 Jul 2008 11:43:21 +0000 (11:43 +0000)]
Prevent users from setting -vol and -acodec copy together.
They are incompatible since the frames are not decoded, so they can't be preprocessed.

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

12 years agoTypo and grammar fix
Robert Swain [Sat, 12 Jul 2008 10:56:12 +0000 (10:56 +0000)]
Typo and grammar fix

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

12 years agoCorrect a couple of typos
Robert Swain [Sat, 12 Jul 2008 09:48:19 +0000 (09:48 +0000)]
Correct a couple of typos

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

12 years ago100l, fix MS ADPCM decoding for e.g. http://samples.mplayerhq.hu/mov/qtaudio/surge...
Reimar Döffinger [Sat, 12 Jul 2008 09:23:37 +0000 (09:23 +0000)]
100l, fix MS ADPCM decoding for e.g. samples.mplayerhq.hu/mov/qtaudio/surge-2-16-L-ms02.mov
First coefficient array must be unsigned to fit in 8 bits

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

12 years ago10l, forgot to replace a / 256 for r14173.
Reimar Döffinger [Sat, 12 Jul 2008 07:28:45 +0000 (07:28 +0000)]
10l, forgot to replace a / 256 for r14173.
Fixes MS ADPCM regression test.

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

12 years agoChange MS ADPCM table so they fit into int8_t and change array type.
Reimar Döffinger [Fri, 11 Jul 2008 21:38:42 +0000 (21:38 +0000)]
Change MS ADPCM table so they fit into int8_t and change array type.

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

12 years agoindent
Michael Niedermayer [Fri, 11 Jul 2008 19:54:02 +0000 (19:54 +0000)]
indent

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

12 years agoFix not coded channels / silence decoding.
Michael Niedermayer [Fri, 11 Jul 2008 19:51:36 +0000 (19:51 +0000)]
Fix not coded channels / silence decoding.
Fixes issue264 WMV audio stutter

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

12 years agoCheck that we have enough output space available.
Michael Niedermayer [Fri, 11 Jul 2008 19:45:52 +0000 (19:45 +0000)]
Check that we have enough output space available.

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

12 years agoDeprecate avcodec_build(), it returns the same value as
Andreas Öman [Fri, 11 Jul 2008 15:25:12 +0000 (15:25 +0000)]
Deprecate avcodec_build(), it returns the same value as
avcodec_version().

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

12 years agosimplify
Michael Niedermayer [Fri, 11 Jul 2008 15:12:44 +0000 (15:12 +0000)]
simplify

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

12 years agoFix misdetection of MPEG-PS (AVSEQ03.DAT and AVSEQ06.DAT) as psxstr.
Michael Niedermayer [Fri, 11 Jul 2008 15:10:58 +0000 (15:10 +0000)]
Fix misdetection of MPEG-PS (AVSEQ03.DAT and AVSEQ06.DAT) as psxstr.

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

12 years agoMove #ifdef CONFIG_DVVIDEO_ENCODER up to cover all functions used for encoding.
Diego Biurrun [Fri, 11 Jul 2008 07:48:37 +0000 (07:48 +0000)]
Move #ifdef CONFIG_DVVIDEO_ENCODER up to cover all functions used for encoding.

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

12 years agoMake preprocessor condition more specific and useful by changing
Diego Biurrun [Fri, 11 Jul 2008 07:45:49 +0000 (07:45 +0000)]
Make preprocessor condition more specific and useful by changing
#ifdef CONFIG_ENCODERS --> #ifdef CONFIG_DVVIDEO_ENCODER.

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

12 years agoMove one function that is only used for muxing below #ifdef CONFIG_MUXERS.
Diego Biurrun [Fri, 11 Jul 2008 07:41:11 +0000 (07:41 +0000)]
Move one function that is only used for muxing below #ifdef CONFIG_MUXERS.

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