ffmpeg.git
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 12 Nov 2011 01:50:25 +0000 (02:50 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  vble: remove vble_error_close
  VBLE Decoder
  tta: use an integer instead of a pointer to iterate output samples
  shorten: do not modify samples pointer when interleaving
  mpc7: only support stereo input.
  dpcm: do not try to decode empty packets
  dpcm: remove unneeded buf_size==0 check.
  twinvq: add SSE/AVX optimized sum/difference stereo interleaving
  vqf/twinvq: pass vqf COMM chunk info in extradata
  vqf: do not set bits_per_coded_sample for TwinVQ.
  twinvq: check for allocation failure in init_mdct_win()
  swscale: add padding to conversion buffer.
  rtpdec: Simplify finalize_packet
  http: Handle proxy authentication
  http: Print an error message for Authorization Required, too
  AVOptions: don't return an invalid option when option list is empty
  AIFF: add 'twos' FourCC for the mux/demuxer (big endian PCM audio)

Conflicts:
libavcodec/avcodec.h
libavcodec/tta.c
libavcodec/vble.c
libavcodec/version.h
libavutil/opt.c
libswscale/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovble: remove vble_error_close
Janne Grunau [Fri, 11 Nov 2011 23:13:36 +0000 (18:13 -0500)]
vble: remove vble_error_close

It does not make much sense to factor the error handling to its own
av_always_inline function. Fixes "format not a string literal and no
format arguments" warning in the av_log.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoVBLE Decoder
Derek Buitenhuis [Fri, 11 Nov 2011 23:13:35 +0000 (18:13 -0500)]
VBLE Decoder

Add a decoder for the VBLE Lossless Codec, which
still has a cult following. Used to be popular
several years ago on doom9.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoUse AC-3 as default codec for wtv.
Carl Eugen Hoyos [Fri, 11 Nov 2011 23:15:03 +0000 (00:15 +0100)]
Use AC-3 as default codec for wtv.

8 years agomandelbrot: add a end_scale and pts so we can zoom in.
Michael Niedermayer [Fri, 11 Nov 2011 22:58:08 +0000 (23:58 +0100)]
mandelbrot: add a end_scale and pts so we can zoom in.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomandelbrot: center coordinate reference on the images center
Michael Niedermayer [Fri, 11 Nov 2011 22:43:38 +0000 (23:43 +0100)]
mandelbrot: center coordinate reference on the images center

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomandelbrot: make 2 variables const
Michael Niedermayer [Fri, 11 Nov 2011 22:39:26 +0000 (23:39 +0100)]
mandelbrot: make 2 variables const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomandelbrot: fix typo that led to hardcoded max iteration count.
Michael Niedermayer [Fri, 11 Nov 2011 22:38:27 +0000 (23:38 +0100)]
mandelbrot: fix typo that led to hardcoded max iteration count.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoNever use MP3 as default audio codec for asf.
ami_stuff [Fri, 11 Nov 2011 22:47:34 +0000 (23:47 +0100)]
Never use MP3 as default audio codec for asf.

Some Windows versions do not ship an appropriate MP3 decoder.

8 years agomandelbrot: support different outer coloring methods.
Michael Niedermayer [Fri, 11 Nov 2011 22:22:04 +0000 (23:22 +0100)]
mandelbrot: support different outer coloring methods.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomandelbrot: make bailout a variable
Michael Niedermayer [Fri, 11 Nov 2011 22:21:42 +0000 (23:21 +0100)]
mandelbrot: make bailout a variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavfilter: bump minor for mandelbrot
Michael Niedermayer [Fri, 11 Nov 2011 22:20:25 +0000 (23:20 +0100)]
avfilter: bump minor for mandelbrot

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavfilter: add mandelbrot fraktal source
Michael Niedermayer [Fri, 11 Nov 2011 21:47:06 +0000 (22:47 +0100)]
avfilter: add mandelbrot fraktal source

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovble: remove vble_error_close
Janne Grunau [Fri, 11 Nov 2011 20:57:06 +0000 (21:57 +0100)]
vble: remove vble_error_close

It does not make much sense to factor the error handling to its own
av_always_inline function. Fixes "format not a string literal and no
format arguments" warning in the av_log.

8 years agoVBLE Decoder
Derek Buitenhuis [Fri, 11 Nov 2011 19:46:19 +0000 (14:46 -0500)]
VBLE Decoder

Add a decoder for the VBLE Lossless Codec, which
still has a cult following. Used to be popular
several years ago on doom9.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agotta: use an integer instead of a pointer to iterate output samples
Justin Ruggles [Fri, 4 Nov 2011 02:48:15 +0000 (22:48 -0400)]
tta: use an integer instead of a pointer to iterate output samples

8 years agoshorten: do not modify samples pointer when interleaving
Justin Ruggles [Fri, 4 Nov 2011 00:54:38 +0000 (20:54 -0400)]
shorten: do not modify samples pointer when interleaving

8 years agompc7: only support stereo input.
Justin Ruggles [Thu, 3 Nov 2011 03:02:52 +0000 (23:02 -0400)]
mpc7: only support stereo input.

The Musepack SV7 reference encoder converts mono to stereo when encoding.

8 years agodpcm: do not try to decode empty packets
Justin Ruggles [Wed, 2 Nov 2011 20:49:38 +0000 (16:49 -0400)]
dpcm: do not try to decode empty packets

8 years agodpcm: remove unneeded buf_size==0 check.
Justin Ruggles [Wed, 2 Nov 2011 20:47:53 +0000 (16:47 -0400)]
dpcm: remove unneeded buf_size==0 check.

It is already checked in avcodec_decode_audio3()

8 years agotwinvq: add SSE/AVX optimized sum/difference stereo interleaving
Justin Ruggles [Sun, 30 Oct 2011 05:13:55 +0000 (01:13 -0400)]
twinvq: add SSE/AVX optimized sum/difference stereo interleaving

8 years agovqf/twinvq: pass vqf COMM chunk info in extradata
Justin Ruggles [Sun, 30 Oct 2011 04:46:16 +0000 (00:46 -0400)]
vqf/twinvq: pass vqf COMM chunk info in extradata

This is needed because the twinvq decoder cannot rely on bit_rate to be set.
The API documentation says that bit_rate is set by libavcodec, not by the
user.

8 years agovqf: do not set bits_per_coded_sample for TwinVQ.
Justin Ruggles [Sat, 29 Oct 2011 23:24:55 +0000 (19:24 -0400)]
vqf: do not set bits_per_coded_sample for TwinVQ.

It is a lossy codec with varying quantization, so bits_per_coded_sample is
not applicable.

8 years agotwinvq: check for allocation failure in init_mdct_win()
Justin Ruggles [Sat, 29 Oct 2011 22:56:42 +0000 (18:56 -0400)]
twinvq: check for allocation failure in init_mdct_win()

8 years agoasfenc: Use wmav2 audio codec by default.
ami_stuff [Fri, 11 Nov 2011 17:38:54 +0000 (18:38 +0100)]
asfenc: Use wmav2 audio codec by default.

8 years agoMake PAL8 pcx images opaque.
Carl Eugen Hoyos [Fri, 11 Nov 2011 17:38:16 +0000 (18:38 +0100)]
Make PAL8 pcx images opaque.

8 years agoSet palette for 1bit pcx.
Carl Eugen Hoyos [Fri, 11 Nov 2011 17:36:41 +0000 (18:36 +0100)]
Set palette for 1bit pcx.

The stored palette contains zeroes only.
Fixes ticket #637.

8 years agoyadif, its 2011
Michael Niedermayer [Fri, 11 Nov 2011 16:06:47 +0000 (17:06 +0100)]
yadif, its 2011

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoyadif: reject reuse2 buffers as we cant use frames that change under our
Michael Niedermayer [Fri, 11 Nov 2011 16:06:07 +0000 (17:06 +0100)]
yadif: reject reuse2 buffers as we cant use frames that change under our
fingers.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: add padding to conversion buffer.
Sean McGovern [Fri, 11 Nov 2011 00:16:58 +0000 (19:16 -0500)]
swscale: add padding to conversion buffer.

Altivec does unaligned reads from this buffer in
hscale_altivec_real(), and can thus read up to 16 bytes beyond
the end of the buffer. Therefore, add an extra 16 bytes of
padding at the end of the conversion buffer.

This fixes fate-lavfi-pixfmts_scale on AltiVec-enabled builds
under valgrind.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agovda: use fast reallocation.
Sebastien Zwickert [Fri, 11 Nov 2011 02:38:13 +0000 (03:38 +0100)]
vda: use fast reallocation.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosws: Fix compilation with disabled MMX2
Michael Niedermayer [Fri, 11 Nov 2011 14:54:08 +0000 (15:54 +0100)]
sws: Fix compilation with disabled MMX2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agortpdec: Simplify finalize_packet
John Brooks [Wed, 9 Nov 2011 23:28:35 +0000 (16:28 -0700)]
rtpdec: Simplify finalize_packet

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agohttp: Handle proxy authentication
Martin Storsjö [Fri, 11 Nov 2011 09:21:42 +0000 (11:21 +0200)]
http: Handle proxy authentication

Tested with both Basic and Digest authentication, and tested with
both proxy authentication and authentication for the requested
resource at the same time.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agohttp: Print an error message for Authorization Required, too
Martin Storsjö [Thu, 10 Nov 2011 16:21:17 +0000 (18:21 +0200)]
http: Print an error message for Authorization Required, too

The error was hidden before, to avoid showing an error on the
first request where no auth has been provided, when the server
indicates which authentication method to use.

Now the error is printed if an authentication method was used,
but failed.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoAVOptions: don't return an invalid option when option list is empty
Anton Khirnov [Thu, 10 Nov 2011 08:19:09 +0000 (09:19 +0100)]
AVOptions: don't return an invalid option when option list is empty

8 years agoAIFF: add 'twos' FourCC for the mux/demuxer (big endian PCM audio)
Mike Melanson [Tue, 8 Nov 2011 07:28:02 +0000 (23:28 -0800)]
AIFF: add 'twos' FourCC for the mux/demuxer (big endian PCM audio)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoffprobe: use av_noreturn
Michael Niedermayer [Fri, 11 Nov 2011 03:26:07 +0000 (04:26 +0100)]
ffprobe: use av_noreturn

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffserver: use av_noreturn
Michael Niedermayer [Fri, 11 Nov 2011 03:25:53 +0000 (04:25 +0100)]
ffserver: use av_noreturn

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffplay: use av_noreturn
Michael Niedermayer [Fri, 11 Nov 2011 03:25:35 +0000 (04:25 +0100)]
ffplay: use av_noreturn

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: use av_noreturn
Michael Niedermayer [Fri, 11 Nov 2011 03:24:25 +0000 (04:24 +0100)]
ffmpeg: use av_noreturn

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavutil: add av_noreturn
Michael Niedermayer [Fri, 11 Nov 2011 03:24:00 +0000 (04:24 +0100)]
avutil: add av_noreturn

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: check debug scanf() return value.
Michael Niedermayer [Fri, 11 Nov 2011 03:05:25 +0000 (04:05 +0100)]
ffmpeg: check debug scanf() return value.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: get rid of deprecated warnings due to AVOption useage.
Michael Niedermayer [Fri, 11 Nov 2011 02:57:46 +0000 (03:57 +0100)]
ffmpeg: get rid of deprecated warnings due to AVOption useage.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoImplement use_high_update_speed() and use_normal_update_speed()
Mashiat Sarker Shakkhar [Thu, 10 Nov 2011 07:42:10 +0000 (13:42 +0600)]
Implement use_high_update_speed() and use_normal_update_speed()
(cherry picked from commit 9ebc93fa4623791eca9efeee4de65b23dc015de1)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoInitialize num_logged_tiles and remove unnecessary codes
Mashiat Sarker Shakkhar [Thu, 10 Nov 2011 06:05:42 +0000 (12:05 +0600)]
Initialize num_logged_tiles and remove unnecessary codes
(cherry picked from commit 69bca779e5d8409cde336406a26b5173002cac97)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoLog index for each line of output
Mashiat Sarker Shakkhar [Thu, 10 Nov 2011 06:04:31 +0000 (12:04 +0600)]
Log index for each line of output
(cherry picked from commit 9e2ccb2de8d4dc5179cd86610b129500e6223be7)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoLog tile size
Mashiat Sarker Shakkhar [Thu, 10 Nov 2011 06:03:51 +0000 (12:03 +0600)]
Log tile size
(cherry picked from commit 257e5c4829cd916938c9e1922e50668636346f71)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoOutput decoded residues
Mashiat Sarker Shakkhar [Tue, 8 Nov 2011 12:42:01 +0000 (18:42 +0600)]
Output decoded residues

8 years agoReplace placeholders with actual calls to clear_codec_buffers() and reset_codec()
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 21:04:12 +0000 (03:04 +0600)]
Replace placeholders with actual calls to clear_codec_buffers() and reset_codec()

8 years agoImplement lms_update()
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 21:02:41 +0000 (03:02 +0600)]
Implement lms_update()
(cherry picked from commit 17219c79360bc2bdaf3e7f47178af42fade140a8)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoImplement lms_predict()
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 21:02:11 +0000 (03:02 +0600)]
Implement lms_predict()
(cherry picked from commit 83e31db195b9d0a07b0526eab5780817d8ce9444)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoImplement reset_codec()
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 21:00:49 +0000 (03:00 +0600)]
Implement reset_codec()
(cherry picked from commit c56313aa7969691f1a779e5ac5666f012676836f)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAdd missing syntax elements to WmallDecodeCtx
Mashiat Sarker Shakkhar [Sat, 5 Nov 2011 20:59:06 +0000 (02:59 +0600)]
Add missing syntax elements to WmallDecodeCtx
(cherry picked from commit 2d6ca09c0f6ea318e439b9b073f507c802623ced)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAdd .recent syntax element to cdlms struct
Mashiat Sarker Shakkhar [Fri, 4 Nov 2011 20:32:56 +0000 (02:32 +0600)]
Add .recent syntax element to cdlms struct
(cherry picked from commit a7820f3c5a0f4d2a5f005f9ca3766d29b2111380)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAnalysis and spec comparison
Mashiat Sarker Shakkhar [Fri, 4 Nov 2011 20:23:06 +0000 (02:23 +0600)]
Analysis and spec comparison
(cherry picked from commit 6b05ea8b690ecab0e98924f0887f24311843d080)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoImplement clear_codec_buffers()
Mashiat Sarker Shakkhar [Fri, 4 Nov 2011 20:19:35 +0000 (02:19 +0600)]
Implement clear_codec_buffers()
(cherry picked from commit d34e3cf342219e9825125d4f9327cf1feab15c79)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAdd buffers to context necessary for reverting cdmls and mclms filter
Mashiat Sarker Shakkhar [Fri, 4 Nov 2011 20:22:21 +0000 (02:22 +0600)]
Add buffers to context necessary for reverting cdmls and mclms filter

8 years agoAnalysis and spec comparison
Mashiat Sarker Shakkhar [Fri, 4 Nov 2011 19:24:29 +0000 (01:24 +0600)]
Analysis and spec comparison

8 years agoCosmetics
Mashiat Sarker Shakkhar [Thu, 3 Nov 2011 20:50:54 +0000 (02:50 +0600)]
Cosmetics
(cherry picked from commit 3197968bedf9f0d6d3cccf11cfbd19c23063493b)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 11 Nov 2011 01:32:38 +0000 (02:32 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (29 commits)
  doc: update libavfilter documentation
  tls: Use the URLContext as logging context
  aes: Avoid illegal read and don't generate more key than we use.
  mpc7: Fix memset call in mpc7_decode_frame function
  atrac1: use correct context for av_log()
  apedec: consume the whole packet when copying to the decoder buffer.
  apedec: do not needlessly copy s->samples to nblocks.
  apedec: check output buffer size after calculating actual output size
  apedec: remove unneeded entropy decoder normalization.
  truespeech: use memmove() in truespeech_update_filters()
  vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
  vorbisdec: remove unneeded buf_size==0 check
  vorbisdec: return proper error codes instead of made-up ones
  http: Don't add a Range: bytes=0- header for POST
  sunrast: Check for invalid/corrupted bitstream
  http: Change the chunksize AVOption into chunked_post
  http: Add encoding/decoding flags to the AVOptions
  avconv: remove some codec-specific hacks
  crypto: add decoding flag to options.
  tls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK
  ...

Conflicts:
doc/libavfilter.texi
libavcodec/atrac1.c
libavcodec/sunrast.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc: update libavfilter documentation
Luca Barbato [Tue, 8 Nov 2011 19:37:58 +0000 (11:37 -0800)]
doc: update libavfilter documentation

Update the reference to the conversion tool to use avconv and
make sure the example line works as supposed.
Remove the paragraph pointing to the svn repo

8 years agocook: fix apparent typo in extradata parsing
K.Y.H [Thu, 10 Nov 2011 23:30:39 +0000 (00:30 +0100)]
cook: fix apparent typo in extradata parsing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agogolomb: Fix overread in get_ur_golomb_jpegls()
Nir Ben David [Thu, 10 Nov 2011 22:03:48 +0000 (23:03 +0100)]
golomb: Fix overread in get_ur_golomb_jpegls()
Fixes Ticket600

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc: update examples to use -b:v or -b:a
Lou Logan [Thu, 10 Nov 2011 21:11:33 +0000 (12:11 -0900)]
doc: update examples to use -b:v or -b:a
Fixes Ticket613

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix some 1bit bmp samples, they are palletised.
Carl Eugen Hoyos [Thu, 10 Nov 2011 22:07:27 +0000 (23:07 +0100)]
Fix some 1bit bmp samples, they are palletised.

Fixes ticket #632.

8 years agotls: Use the URLContext as logging context
Martin Storsjö [Thu, 10 Nov 2011 15:52:38 +0000 (17:52 +0200)]
tls: Use the URLContext as logging context

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoaes: Avoid illegal read and don't generate more key than we use.
Alex Converse [Fri, 4 Nov 2011 01:13:57 +0000 (18:13 -0700)]
aes: Avoid illegal read and don't generate more key than we use.

8 years agompc7: Fix memset call in mpc7_decode_frame function
Alex Converse [Wed, 9 Nov 2011 21:40:44 +0000 (13:40 -0800)]
mpc7: Fix memset call in mpc7_decode_frame function

8 years agoatrac1: use correct context for av_log()
Justin Ruggles [Wed, 2 Nov 2011 16:06:04 +0000 (12:06 -0400)]
atrac1: use correct context for av_log()

8 years agoapedec: consume the whole packet when copying to the decoder buffer.
Justin Ruggles [Mon, 31 Oct 2011 18:49:34 +0000 (14:49 -0400)]
apedec: consume the whole packet when copying to the decoder buffer.

This avoids artifically consuming a partial packet but ignoring remaining data
in subsequent calls.

8 years agoapedec: do not needlessly copy s->samples to nblocks.
Justin Ruggles [Mon, 31 Oct 2011 19:10:19 +0000 (15:10 -0400)]
apedec: do not needlessly copy s->samples to nblocks.

also move nblocks to the local scope where it is used.

8 years agoapedec: check output buffer size after calculating actual output size
Justin Ruggles [Mon, 31 Oct 2011 19:03:14 +0000 (15:03 -0400)]
apedec: check output buffer size after calculating actual output size

8 years agoapedec: remove unneeded entropy decoder normalization.
Justin Ruggles [Mon, 31 Oct 2011 18:57:04 +0000 (14:57 -0400)]
apedec: remove unneeded entropy decoder normalization.

The decoder already skips data at the end of the packet without this.
Also remove 2 APEContext fields that were only used for the end-of-frame
normalization.

8 years agotruespeech: use memmove() in truespeech_update_filters()
Justin Ruggles [Sat, 29 Oct 2011 22:25:40 +0000 (18:25 -0400)]
truespeech: use memmove() in truespeech_update_filters()

8 years agovorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
Justin Ruggles [Sun, 30 Oct 2011 22:41:00 +0000 (18:41 -0400)]
vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check

The user could provide a larger buffer, which is already checked separately
before writing output.

8 years agovorbisdec: remove unneeded buf_size==0 check
Justin Ruggles [Sun, 30 Oct 2011 22:40:21 +0000 (18:40 -0400)]
vorbisdec: remove unneeded buf_size==0 check

8 years agovorbisdec: return proper error codes instead of made-up ones
Justin Ruggles [Sun, 30 Oct 2011 22:38:19 +0000 (18:38 -0400)]
vorbisdec: return proper error codes instead of made-up ones

8 years agoffmpeg: update timestamping code to handle frame threads
Michael Niedermayer [Thu, 10 Nov 2011 13:59:00 +0000 (14:59 +0100)]
ffmpeg: update timestamping code to handle frame threads

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompeg4videodec: fix lml4 and frame threading without -vsync 0
Michael Niedermayer [Thu, 10 Nov 2011 12:51:38 +0000 (13:51 +0100)]
mpeg4videodec: fix lml4 and frame threading without -vsync 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agohttp: Don't add a Range: bytes=0- header for POST
Martin Storsjö [Thu, 10 Nov 2011 09:09:26 +0000 (11:09 +0200)]
http: Don't add a Range: bytes=0- header for POST

That header simply doesn't make sense in that context.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agosunrast: Check for invalid/corrupted bitstream
Laurent Aimar [Tue, 27 Sep 2011 22:15:32 +0000 (22:15 +0000)]
sunrast: Check for invalid/corrupted bitstream

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
8 years agohttp: Change the chunksize AVOption into chunked_post
Martin Storsjö [Thu, 10 Nov 2011 09:03:35 +0000 (11:03 +0200)]
http: Change the chunksize AVOption into chunked_post

The chunksize internal variable has two different uses - for
reading, it's the amount of data left of the current chunk
(or -1 if the server doesn't send data in chunked mode), where
it's only an internal state variable. For writing, it's used
to decide whether to enable chunked encoding (by default), by
using the value 0, or disable chunked encoding (value -1).

This, while consistent, doesn't make much sense to expose
as an AVOption. This splits the usage of the internal variable
into two variables, chunksize which is used for reading (as
before), and chunked_post which is the user-settable option,
with the values 0 and 1, where 1 is default.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agohttp: Add encoding/decoding flags to the AVOptions
Anton Khirnov [Thu, 10 Nov 2011 08:34:58 +0000 (09:34 +0100)]
http: Add encoding/decoding flags to the AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoavconv: remove some codec-specific hacks
Anton Khirnov [Wed, 9 Nov 2011 20:16:27 +0000 (21:16 +0100)]
avconv: remove some codec-specific hacks

The problem they are supposed to fix is handled in riff.c, so those
hacks are pointless.

8 years agocrypto: add decoding flag to options.
Anton Khirnov [Sat, 5 Nov 2011 13:07:13 +0000 (14:07 +0100)]
crypto: add decoding flag to options.

8 years agotls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK
Anton Khirnov [Sat, 5 Nov 2011 11:48:02 +0000 (12:48 +0100)]
tls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK

8 years agohttp: use different classes for http and https.
Anton Khirnov [Sat, 5 Nov 2011 11:54:01 +0000 (12:54 +0100)]
http: use different classes for http and https.

8 years agohttp: Change an error log message to a warning
Martin Storsjö [Tue, 8 Nov 2011 23:14:05 +0000 (01:14 +0200)]
http: Change an error log message to a warning

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agohttp: Remove the now unused ff_http_set_headers custom function
Martin Storsjö [Mon, 7 Nov 2011 09:46:29 +0000 (11:46 +0200)]
http: Remove the now unused ff_http_set_headers custom function

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agomms: Set http custom headers via the AVOption
Martin Storsjö [Mon, 7 Nov 2011 09:48:51 +0000 (11:48 +0200)]
mms: Set http custom headers via the AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agortsp: Set http custom headers via the AVOption
Martin Storsjö [Mon, 7 Nov 2011 09:45:57 +0000 (11:45 +0200)]
rtsp: Set http custom headers via the AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agohttp: Make custom headers settable via an AVOption
Martin Storsjö [Mon, 7 Nov 2011 09:43:13 +0000 (11:43 +0200)]
http: Make custom headers settable via an AVOption

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agocrypto: Don't manually free memory allocated via AVOptions
Martin Storsjö [Tue, 8 Nov 2011 22:50:37 +0000 (00:50 +0200)]
crypto: Don't manually free memory allocated via AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoavio: Free URLContext private data allocated via AVOptions
Martin Storsjö [Tue, 8 Nov 2011 22:48:40 +0000 (00:48 +0200)]
avio: Free URLContext private data allocated via AVOptions

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoavc: fix memory errors when encoding invalid h264 codecdata
John Brooks [Thu, 10 Nov 2011 03:14:19 +0000 (20:14 -0700)]
avc: fix memory errors when encoding invalid h264 codecdata

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agolavc: update AVCodecContext.delay documentation
Michael Niedermayer [Thu, 10 Nov 2011 04:04:17 +0000 (05:04 +0100)]
lavc: update AVCodecContext.delay documentation

Based on reimars suggestion
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agopthreads: export the delay that was previously exported by mangling has_b_frames...
Michael Niedermayer [Wed, 9 Nov 2011 17:32:38 +0000 (18:32 +0100)]
pthreads: export the delay that was previously exported by mangling has_b_frames through
AVCodecContext.delay which was previously unused for decoders and fits better.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 10 Nov 2011 02:09:46 +0000 (03:09 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avcodec: add support for planar signed 8-bit PCM.
  ra144enc: add sample_fmts list to ff_ra_144_encoder
  smackaud: use uint8_t* for 8-bit output buffer type
  smackaud: clip output samples
  smackaud: use sign_extend() for difference value instead of casting
  sipr: use a function pointer to select the decode_frame function
  sipr: set mode based on block_align instead of bit_rate
  sipr: do not needlessly set *data_size to 0 when returning an error
  ra288: fix formatting of LOCAL_ALIGNED_16
  udp: Allow specifying the local IP address
  VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
  vc1dec: move an if() block.
  vc1dec: use correct hybrid prediction threshold.
  vc1dec: Partial rewrite of vc1_pred_mv()
  vc1dec: take ME precision into account while scaling MV predictors.
  lavf: don't leak corrupted packets

Conflicts:
libavcodec/8svx.c
libavcodec/ra288.c
libavcodec/version.h
libavformat/iff.c
libavformat/udp.c
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_fade: reindent after previous commit
Stefano Sabatini [Wed, 9 Nov 2011 00:36:50 +0000 (01:36 +0100)]
vf_fade: reindent after previous commit