ffmpeg.git
8 years agoRELEASE: set to 0.8.4.git after the release from 2011-09-22
Dominique Leuenberger [Tue, 27 Sep 2011 14:56:49 +0000 (16:56 +0200)]
RELEASE: set to 0.8.4.git after the release from 2011-09-22

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: enable 4:2:0 YUV it works as "well" as the other subsampled yuv formats
Michael Niedermayer [Tue, 27 Sep 2011 17:25:43 +0000 (19:25 +0200)]
j2kenc: enable 4:2:0 YUV it works as "well" as the other subsampled yuv formats

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agobuild system: enable j2kenc
Michael Niedermayer [Tue, 27 Sep 2011 17:25:17 +0000 (19:25 +0200)]
build system: enable j2kenc

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: fix coded_frame and prevent null pointer dereference.
Michael Niedermayer [Tue, 27 Sep 2011 17:24:31 +0000 (19:24 +0200)]
j2kenc: fix coded_frame and prevent null pointer dereference.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: Update ff_j2k_init_component() arguments
Michael Niedermayer [Tue, 27 Sep 2011 17:18:40 +0000 (19:18 +0200)]
j2kenc: Update ff_j2k_init_component() arguments

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: fix arguments for ff_j2k_getnbctxno()
Michael Niedermayer [Tue, 27 Sep 2011 17:11:08 +0000 (19:11 +0200)]
j2kenc: fix arguments for ff_j2k_getnbctxno()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: mark as experimental.
Michael Niedermayer [Tue, 27 Sep 2011 17:02:13 +0000 (19:02 +0200)]
j2kenc: mark as experimental.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: s/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/
Michael Niedermayer [Tue, 27 Sep 2011 17:01:37 +0000 (19:01 +0200)]
j2kenc: s/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: update codec name to modern ffmpeg
Michael Niedermayer [Tue, 27 Sep 2011 17:00:55 +0000 (19:00 +0200)]
j2kenc: update codec name to modern ffmpeg

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: cleanup() is not used outside thus it is static
Michael Niedermayer [Tue, 27 Sep 2011 17:00:21 +0000 (19:00 +0200)]
j2kenc: cleanup() is not used outside thus it is static

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoj2kenc: update function name.
Michael Niedermayer [Tue, 27 Sep 2011 16:59:37 +0000 (18:59 +0200)]
j2kenc: update function name.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomxfdec: Consider QuantizationBits between 17 and 24 to be pcm_s24*
Tomas Härdin [Tue, 27 Sep 2011 09:14:59 +0000 (11:14 +0200)]
mxfdec: Consider QuantizationBits between 17 and 24 to be pcm_s24*

This fixes playback of BRD38772509.mxf

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCheck for out of bound writes when building tree in bink decoder.
Laurent Aimar [Mon, 26 Sep 2011 23:02:17 +0000 (01:02 +0200)]
Check for out of bound writes when building tree in bink decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCheck for various out of bound writes in the bink decoder.
Laurent Aimar [Mon, 26 Sep 2011 23:02:16 +0000 (01:02 +0200)]
Check for various out of bound writes in the bink decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswfdec: return correct error code at EOF
Tanami, Ohad [Tue, 27 Sep 2011 12:48:56 +0000 (14:48 +0200)]
swfdec: return correct error code at EOF

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: fix typo in warning
Lars Täuber [Tue, 27 Sep 2011 12:41:09 +0000 (14:41 +0200)]
ffmpeg: fix typo in warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 27 Sep 2011 00:14:37 +0000 (02:14 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (21 commits)
  fate: allow testing with libavfilter disabled
  x86: XOP/FMA4 CPU detection support
  ws_snd: misc cosmetic clean-ups
  ws_snd: remove the 2-bit ADPCM table and just subtract 2 instead.
  ws_snd: use memcpy() and memset() instead of loops
  ws_snd: use samples pointer for loop termination instead of a separate iterator variable.
  ws_snd: make sure number of channels is 1
  ws_snd: add some checks to prevent buffer overread or overwrite.
  ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16.
  flacdec: fix buffer size checking in get_metadata_size()
  rtp: Simplify ff_rtp_get_payload_type
  rtpenc: Add a payload type private option
  rtp: Correct ff_rtp_get_payload_type documentation
  avconv: replace all fprintf() by av_log().
  avconv: change av_log verbosity from ERROR to FATAL for fatal errors.
  cmdutils: replace fprintf() by av_log()
  avtools: parse loglevel before all the other options.
  oggdec: add support for Xiph's CELT codec
  sol: return error if av_get_packet() fails.
  cosmetics: reindent and pretty-print
  ...

Conflicts:
avconv.c
cmdutils.c
libavcodec/avcodec.h
libavcodec/version.h
libavformat/oggparsecelt.c
libavformat/utils.c
libavutil/avutil.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoReset internal state on corrupted blocks in wavpack decoder.
Laurent Aimar [Mon, 26 Sep 2011 21:37:30 +0000 (23:37 +0200)]
Reset internal state on corrupted blocks in wavpack decoder.

wavpack_decode_block() supposes that it is called back with the exact
same buffer unless it has returned with an error. With multi-channels
files, wavpack_decode_frame() was breaking this assumption.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoValidate the number of audio channels before using it in wmapro decoder.
Laurent Aimar [Mon, 26 Sep 2011 21:37:29 +0000 (23:37 +0200)]
Validate the number of audio channels before using it in wmapro decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofate: allow testing with libavfilter disabled
Mans Rullgard [Sun, 17 Jul 2011 10:55:08 +0000 (11:55 +0100)]
fate: allow testing with libavfilter disabled

This declares dependencies to skip tests using libavfilter
when it is disabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agox86: XOP/FMA4 CPU detection support
Jason Garrett-Glaser [Mon, 26 Sep 2011 21:44:47 +0000 (14:44 -0700)]
x86: XOP/FMA4 CPU detection support

8 years agows_snd: misc cosmetic clean-ups
Justin Ruggles [Mon, 12 Sep 2011 14:28:56 +0000 (10:28 -0400)]
ws_snd: misc cosmetic clean-ups

8 years agows_snd: remove the 2-bit ADPCM table and just subtract 2 instead.
Justin Ruggles [Mon, 12 Sep 2011 14:22:31 +0000 (10:22 -0400)]
ws_snd: remove the 2-bit ADPCM table and just subtract 2 instead.

8 years agows_snd: use memcpy() and memset() instead of loops
Justin Ruggles [Mon, 12 Sep 2011 14:04:37 +0000 (10:04 -0400)]
ws_snd: use memcpy() and memset() instead of loops

8 years agows_snd: use samples pointer for loop termination instead of a separate
Justin Ruggles [Mon, 12 Sep 2011 13:59:13 +0000 (09:59 -0400)]
ws_snd: use samples pointer for loop termination instead of a separate
iterator variable.

8 years agows_snd: make sure number of channels is 1
Justin Ruggles [Mon, 12 Sep 2011 13:44:21 +0000 (09:44 -0400)]
ws_snd: make sure number of channels is 1

8 years agoffmpeg: document alternative to the lossless libx264 presets
Michael Niedermayer [Mon, 26 Sep 2011 20:02:13 +0000 (22:02 +0200)]
ffmpeg: document alternative to the lossless libx264 presets

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoremove libx264 lossless presets
Lou Logan [Mon, 26 Sep 2011 20:02:52 +0000 (22:02 +0200)]
remove libx264 lossless presets

It is simpler and more consistent to use "-preset $speed -qp 0" for
lossless. Also, the old presets encode slower.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agows_snd: add some checks to prevent buffer overread or overwrite.
Justin Ruggles [Mon, 12 Sep 2011 13:41:06 +0000 (09:41 -0400)]
ws_snd: add some checks to prevent buffer overread or overwrite.

8 years agows_snd: decode to AV_SAMPLE_FMT_U8 instead of S16.
Justin Ruggles [Mon, 12 Sep 2011 12:55:43 +0000 (08:55 -0400)]
ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16.

8-bit unsigned is the native sample format.

8 years agoflacdec: fix buffer size checking in get_metadata_size()
Justin Ruggles [Tue, 13 Sep 2011 19:13:44 +0000 (15:13 -0400)]
flacdec: fix buffer size checking in get_metadata_size()

Adds an additional check before reading the next block header and avoids a
potential integer overflow when checking the metadata size against the
remaining buffer size.

8 years agoffmpeg: fix -b -ab mixes with -b overriding the audio bitrate
Michael Niedermayer [Mon, 26 Sep 2011 18:35:48 +0000 (20:35 +0200)]
ffmpeg: fix -b -ab mixes with -b overriding the audio bitrate

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agortp: Simplify ff_rtp_get_payload_type
Rafaël Carré [Mon, 26 Sep 2011 15:56:49 +0000 (11:56 -0400)]
rtp: Simplify ff_rtp_get_payload_type

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agortpenc: Add a payload type private option
Rafaël Carré [Mon, 26 Sep 2011 15:56:48 +0000 (11:56 -0400)]
rtpenc: Add a payload type private option

Specifying the payload type is useful when the type number has
already been negotiated before creating the stream, for example
in SIP protocol.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agortp: Correct ff_rtp_get_payload_type documentation
Rafaël Carré [Mon, 26 Sep 2011 15:56:47 +0000 (11:56 -0400)]
rtp: Correct ff_rtp_get_payload_type documentation

Since 0c378ea1f, it can't fail anymore.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoavconv: replace all fprintf() by av_log().
Anton Khirnov [Tue, 13 Sep 2011 05:31:21 +0000 (07:31 +0200)]
avconv: replace all fprintf() by av_log().

Deprecate -v option, now only -loglevel is enough.

8 years agoavconv: change av_log verbosity from ERROR to FATAL for fatal errors.
Anton Khirnov [Mon, 12 Sep 2011 19:51:02 +0000 (21:51 +0200)]
avconv: change av_log verbosity from ERROR to FATAL for fatal errors.

8 years agocmdutils: replace fprintf() by av_log()
Anton Khirnov [Mon, 26 Sep 2011 06:39:43 +0000 (08:39 +0200)]
cmdutils: replace fprintf() by av_log()

This way, all messages can be easily disabled with -loglevel.

Behavior change -- configuration is printed with AV_LOG_VERBOSE, so it's
not shown by default.

8 years agoavtools: parse loglevel before all the other options.
Anton Khirnov [Mon, 26 Sep 2011 06:15:37 +0000 (08:15 +0200)]
avtools: parse loglevel before all the other options.

This way it can be applied to cmdutils too -- e.g. showing the banner
and printing startup messages.

8 years agolibx264: free x4->sei
Michael Niedermayer [Mon, 26 Sep 2011 16:53:12 +0000 (18:53 +0200)]
libx264: free x4->sei

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix a buffer overflow in libx264 interface to x264 encoder. Previous code ignored...
Mike Scheutzow [Mon, 26 Sep 2011 14:57:53 +0000 (10:57 -0400)]
Fix a buffer overflow in libx264 interface to x264 encoder. Previous code ignored the compressed buffer size passed in. This change returns as many complete NALs as can fit in the buffer, and logs an error message.

Signed-off-by: Mike Scheutzow <mike.scheutzow@alcatel-lucent.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agooggdec: add support for Xiph's CELT codec
Nicolas George [Mon, 26 Sep 2011 11:19:05 +0000 (13:19 +0200)]
oggdec: add support for Xiph's CELT codec

This patch also introduces CODEC_ID_CELT.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agolibaac+ support
tipok [Mon, 26 Sep 2011 00:28:21 +0000 (02:28 +0200)]
libaac+ support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomjpegenc: use named struct initializers
Aurelien Jacobs [Sun, 25 Sep 2011 22:24:38 +0000 (00:24 +0200)]
mjpegenc: use named struct initializers

8 years agoact: correct file description comment
Aurelien Jacobs [Sun, 25 Sep 2011 22:24:01 +0000 (00:24 +0200)]
act: correct file description comment

8 years agoact, bintext, wtvenc: use named struct initializers
Aurelien Jacobs [Sun, 25 Sep 2011 22:19:56 +0000 (00:19 +0200)]
act, bintext, wtvenc: use named struct initializers

8 years agoh264dec: fix decoding problems introduced with baad01d8b4bfe63c7c4e571ed553f7845d78d9c0.
Michael Niedermayer [Sun, 25 Sep 2011 21:51:32 +0000 (23:51 +0200)]
h264dec: fix decoding problems introduced with baad01d8b4bfe63c7c4e571ed553f7845d78d9c0.
This affected cases where extradata was not set.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 25 Sep 2011 21:30:25 +0000 (23:30 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  ppc: fix some pointer to integer casts
  ppc: fix 32-bit PIC build
  vmdaudio: fix decoding of 16-bit audio format.
  lavf: do not set codec_tag for rawvideo
  h264: check for out of bounds reads in ff_h264_decode_extradata().
  flvdec: Check for overflow before allocating arrays
  avconv: use correct output stream index when checking max_frames
  avconv: remove fake coded_frame on streamcopy hack

Conflicts:
avconv.c
libavcodec/h264.c
libavcodec/ppc/asm.S
libavcodec/vmdav.c
libavformat/flvdec.c
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCheck for out of bound bands limit in mpc v8 decoder.
Laurent Aimar [Sun, 25 Sep 2011 11:43:38 +0000 (13:43 +0200)]
Check for out of bound bands limit in mpc v8 decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix return value on EOF in mpc v8 demuxer.
Laurent Aimar [Sun, 25 Sep 2011 11:43:37 +0000 (13:43 +0200)]
Fix return value on EOF in mpc v8 demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoid3v2: Fix some (function) pointer types.
Reimar Döffinger [Sun, 25 Sep 2011 14:58:38 +0000 (16:58 +0200)]
id3v2: Fix some (function) pointer types.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFixed NULL pointer dereference in id3v2 parser.
Laurent Aimar [Sat, 24 Sep 2011 22:38:23 +0000 (00:38 +0200)]
Fixed NULL pointer dereference in id3v2 parser.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agog729dec: avoid unnecessary struct copying
Vitor Sessak [Sun, 25 Sep 2011 19:37:35 +0000 (21:37 +0200)]
g729dec: avoid unnecessary struct copying

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agog729dec: remove useless headers
Vitor Sessak [Sun, 25 Sep 2011 19:37:34 +0000 (21:37 +0200)]
g729dec: remove useless headers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosol: return error if av_get_packet() fails.
Justin Ruggles [Sat, 24 Sep 2011 01:43:43 +0000 (21:43 -0400)]
sol: return error if av_get_packet() fails.

This prevents sending a packet with data=NULL size=AVERROR_EOF.

8 years agovf_drawtext: apply misc style fixes
Stefano Sabatini [Sun, 25 Sep 2011 20:38:32 +0000 (22:38 +0200)]
vf_drawtext: apply misc style fixes

8 years agovf_drawtext: do not reset "n" variable to 0 in case the filter is reinited
Stefano Sabatini [Fri, 23 Sep 2011 13:37:47 +0000 (15:37 +0200)]
vf_drawtext: do not reset "n" variable to 0 in case the filter is reinited

8 years agoffmpeg: improve feedback when processing filtergraph events
Stefano Sabatini [Sat, 24 Sep 2011 11:57:26 +0000 (13:57 +0200)]
ffmpeg: improve feedback when processing filtergraph events

8 years agoffmpeg: apply misc cosmetics fixes in the filtergraph event processing code
Stefano Sabatini [Sat, 24 Sep 2011 11:24:09 +0000 (13:24 +0200)]
ffmpeg: apply misc cosmetics fixes in the filtergraph event processing code

In particular provides more consistent and expressive names,
supposedly improves readability and user feedback.

8 years agolavfi: add debug trace when processing events
Stefano Sabatini [Sat, 24 Sep 2011 11:58:45 +0000 (13:58 +0200)]
lavfi: add debug trace when processing events

8 years agolavfi: document AVFilterCommand fields
Stefano Sabatini [Sat, 24 Sep 2011 12:29:53 +0000 (14:29 +0200)]
lavfi: document AVFilterCommand fields

8 years agog729dec: fix warnings:
Vitor Sessak [Sun, 25 Sep 2011 18:07:34 +0000 (20:07 +0200)]
g729dec: fix warnings:

libavcodec/g729postfilter.c: In function ‘long_term_filter’:
libavcodec/g729postfilter.c:114: warning: unused variable ‘n’

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agog729dec: Fix warnings:
Vitor Sessak [Sun, 25 Sep 2011 18:07:33 +0000 (20:07 +0200)]
g729dec: Fix warnings:

libavcodec/g729dec.c: In function ‘decode_frame’:
libavcodec/g729dec.c:662: warning: passing argument 3 of ‘ff_g729_postfilter’ from incompatible pointer type
libavcodec/g729postfilter.h:96: note: expected ‘int16_t *’ but argument is of type ‘int *’

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agog729dec: Add ff_ prefix to g729_postfilter() and g729_adaptive_gain_control()
Vitor Sessak [Sun, 25 Sep 2011 18:07:32 +0000 (20:07 +0200)]
g729dec: Add ff_ prefix to g729_postfilter() and g729_adaptive_gain_control()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agocosmetics: reindent and pretty-print
Justin Ruggles [Mon, 12 Sep 2011 16:18:00 +0000 (12:18 -0400)]
cosmetics: reindent and pretty-print

8 years agolibgsm: split init and close fuctions for encoder and decoder.
Justin Ruggles [Mon, 12 Sep 2011 16:13:05 +0000 (12:13 -0400)]
libgsm: split init and close fuctions for encoder and decoder.

The decoder shouldn't be allocating coded_frame. It's also cleaner to split
them than to check avctx->codec->encode and avctx->codec->decode.

8 years agoppc: fix some pointer to integer casts
Mans Rullgard [Sun, 25 Sep 2011 17:27:47 +0000 (18:27 +0100)]
ppc: fix some pointer to integer casts

Use uintptr_t instead of plain int.  Without this change, the
comparisons will come out wrong for pointers in certain ranges.
Fixes random failures on ppc64.  Also fixes some compiler warnings.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoppc: fix 32-bit PIC build
Mans Rullgard [Sun, 25 Sep 2011 11:53:44 +0000 (12:53 +0100)]
ppc: fix 32-bit PIC build

On 32-bit ppc, the GOT pointer must be loaded manually.
This adds a "get_got" assembler macro to compute the
GOT address.  The "movrel" macro is updated to take an
additional parameter containing the GOT address since
no register is reserved for this purpose on ppc32.
These changes have no effect on ppc64 builds.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoG.729 decoding is supported.
Carl Eugen Hoyos [Sun, 25 Sep 2011 15:57:58 +0000 (17:57 +0200)]
G.729 decoding is supported.

8 years agoAMV encoding is supported.
Carl Eugen Hoyos [Sun, 25 Sep 2011 15:35:45 +0000 (17:35 +0200)]
AMV encoding is supported.

8 years agoSupport LZW and ZLIB compressed 4bpp tiff samples.
Carl Eugen Hoyos [Sun, 25 Sep 2011 15:19:15 +0000 (17:19 +0200)]
Support LZW and ZLIB compressed 4bpp tiff samples.

Fixes ticket #439 and ticket #440.

8 years agoh264: improve checks before calling ff_h264_decode_extradata
Alexander Strasser [Sat, 24 Sep 2011 16:23:38 +0000 (18:23 +0200)]
h264: improve checks before calling ff_h264_decode_extradata

  The ff_h264_decode_extradata routine now checks for the buffer size
and pointer internally. This makes it possible to remove the external
checks in ff_h264_decode_init.

  In decode_frame there was a size check missing because the buffer
gets tested prior to the invocation of ff_h264_decode_extradata().

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
8 years agoh264: ff_h264_decode_extradata: check buffer args
Alexander Strasser [Sat, 24 Sep 2011 16:00:16 +0000 (18:00 +0200)]
h264: ff_h264_decode_extradata: check buffer args

  The buffer size and pointer were not checked prior to testing the first
byte of the buffer. These were sometimes checked before calling, but it is
better to add it inside the function as it takes buf and size arguments.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
8 years agoCompile x86/swscale_template with -mno-red-zone.
Reimar Döffinger [Wed, 21 Sep 2011 17:10:58 +0000 (19:10 +0200)]
Compile x86/swscale_template with -mno-red-zone.

Replaces a very hackish hack to fix the same issue (call instruction
overwriting stack variables).

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
8 years agoffmpeg: increase bit_buffer_size, the header size is clearly too small for rgb48...
Michael Niedermayer [Sun, 25 Sep 2011 14:13:07 +0000 (16:13 +0200)]
ffmpeg: increase bit_buffer_size, the header size is clearly too small for rgb48 raw based formats

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agocosmetics, remove unused and rename variables for consistency
Jean First [Fri, 23 Sep 2011 06:22:31 +0000 (08:22 +0200)]
cosmetics, remove unused and rename variables for consistency

8 years agovmdaudio: fix decoding of 16-bit audio format.
Justin Ruggles [Mon, 12 Sep 2011 00:17:54 +0000 (20:17 -0400)]
vmdaudio: fix decoding of 16-bit audio format.

The initial sample of each block is raw 16-bit PCM, not DPCM.
Fixes decoding of all samples in:
http://streams.videolan.org/samples/game-formats/sierra-vmd/Lighthouse/

8 years agotiffenc: Enable RGB48LE (16-bit) encoding support
Jean First [Sun, 25 Sep 2011 14:03:21 +0000 (16:03 +0200)]
tiffenc: Enable RGB48LE (16-bit) encoding support

8 years agotiffdec: add RGB48 (16bit) support
Jean First [Sun, 25 Sep 2011 14:00:04 +0000 (16:00 +0200)]
tiffdec: add RGB48 (16bit) support

8 years agolavf: do not set codec_tag for rawvideo
Mans Rullgard [Sun, 17 Jul 2011 15:02:33 +0000 (16:02 +0100)]
lavf: do not set codec_tag for rawvideo

If the demuxer did not set a codec_tag, there is none and
inventing one makes no sense.  This change stops the rawvideo
"decoder" over-writing user-supplied pixfmt with one derived
from the codec_tag.  The pixfmt-codec_tag-pixfmt round-trip
is lossy since several pixfmts map to the same codec_tag.

This fixes fate-lavf-pixfmt with avfilter disabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoh264: check for out of bounds reads in ff_h264_decode_extradata().
Laurent Aimar [Sat, 24 Sep 2011 14:16:39 +0000 (16:16 +0200)]
h264: check for out of bounds reads in ff_h264_decode_extradata().

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agodnxhdenc: remove unneeded entries from array.
Michael Niedermayer [Sun, 25 Sep 2011 12:56:40 +0000 (14:56 +0200)]
dnxhdenc: remove unneeded entries from array.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodnxhdenc: optimize whats left of dnxhd_switch_matrix()
Michael Niedermayer [Sun, 25 Sep 2011 11:06:04 +0000 (13:06 +0200)]
dnxhdenc: optimize whats left of dnxhd_switch_matrix()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agobit: remove more unused variables
Michael Niedermayer [Sun, 25 Sep 2011 09:29:22 +0000 (11:29 +0200)]
bit: remove more unused variables

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agobit: use AVERROR_INVALIDDATA
Michael Niedermayer [Sun, 25 Sep 2011 09:21:01 +0000 (11:21 +0200)]
bit: use AVERROR_INVALIDDATA

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoregtests: amv video encoder test
Michael Niedermayer [Sun, 25 Sep 2011 04:47:53 +0000 (06:47 +0200)]
regtests: amv video encoder test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoamvenc: another quant table fix
Michael Niedermayer [Sun, 25 Sep 2011 04:47:08 +0000 (06:47 +0200)]
amvenc: another quant table fix

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegvideo: support encoding with chroma intra tables that differ from luma.
Michael Niedermayer [Sun, 25 Sep 2011 04:46:39 +0000 (06:46 +0200)]
mpegvideo: support encoding with chroma intra tables that differ from luma.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoflvdec: Check for overflow before allocating arrays
Michael Niedermayer [Sat, 24 Sep 2011 15:57:31 +0000 (18:57 +0300)]
flvdec: Check for overflow before allocating arrays

On allocation, the array length is multiplied by sizeof(int64_t),
this prevents the multiplication from overflowing.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agolavf/utils: replace deprecated url_ferror.
Nicolas George [Wed, 14 Sep 2011 17:54:48 +0000 (19:54 +0200)]
lavf/utils: replace deprecated url_ferror.

8 years agolavf/utils: use correct format string for int64_t.
Nicolas George [Wed, 14 Sep 2011 17:53:59 +0000 (19:53 +0200)]
lavf/utils: use correct format string for int64_t.

8 years agolavf/utils: use AV_NOWARN_DEPRECATED in compatibility code.
Nicolas George [Wed, 14 Sep 2011 17:48:59 +0000 (19:48 +0200)]
lavf/utils: use AV_NOWARN_DEPRECATED in compatibility code.

8 years agolavu/attributes: introduce AV_NOWARN_DEPRECATED.
Nicolas George [Wed, 14 Sep 2011 17:47:38 +0000 (19:47 +0200)]
lavu/attributes: introduce AV_NOWARN_DEPRECATED.

8 years agobit: use explicit struct initializers.
Clément Bœsch [Sun, 25 Sep 2011 01:02:16 +0000 (03:02 +0200)]
bit: use explicit struct initializers.

8 years agoavconv: use correct output stream index when checking max_frames
Anton Khirnov [Fri, 23 Sep 2011 12:40:29 +0000 (14:40 +0200)]
avconv: use correct output stream index when checking max_frames

8 years agoavconv: remove fake coded_frame on streamcopy hack
Anton Khirnov [Fri, 23 Sep 2011 10:46:05 +0000 (12:46 +0200)]
avconv: remove fake coded_frame on streamcopy hack

Back in 2002 when it was added, some muxers used information from
coded_frame. It's not true anymore, so this hack is useless and can be
removed.

8 years agobit: remove unused variable
Michael Niedermayer [Sun, 25 Sep 2011 03:36:07 +0000 (05:36 +0200)]
bit: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agobit: set AVPacket.pos
Michael Niedermayer [Sun, 25 Sep 2011 03:35:38 +0000 (05:35 +0200)]
bit: set AVPacket.pos

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agobit: loose seekback & wrong bitrate code.
Michael Niedermayer [Sun, 25 Sep 2011 03:22:30 +0000 (05:22 +0200)]
bit: loose seekback & wrong bitrate code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agobit: rewrite probe
Michael Niedermayer [Sun, 25 Sep 2011 03:15:30 +0000 (05:15 +0200)]
bit: rewrite probe

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>