Martin Storsjö
b01f5ba207
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>
13 years ago
Anton Khirnov
e1e22851c1
AVOptions: don't return an invalid option when option list is empty
13 years ago
Mike Melanson
45fcb86cf8
AIFF: add 'twos' FourCC for the mux/demuxer (big endian PCM audio)
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Luca Barbato
299809defb
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
13 years ago
Martin Storsjö
371d15ec36
tls: Use the URLContext as logging context
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Alex Converse
c9e5ac3380
aes: Avoid illegal read and don't generate more key than we use.
13 years ago
Alex Converse
88b2436911
mpc7: Fix memset call in mpc7_decode_frame function
13 years ago
Justin Ruggles
164fca39bd
atrac1: use correct context for av_log()
13 years ago
Justin Ruggles
c298b2b8db
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.
13 years ago
Justin Ruggles
de157f2118
apedec: do not needlessly copy s->samples to nblocks.
...
also move nblocks to the local scope where it is used.
13 years ago
Justin Ruggles
4315c7d35a
apedec: check output buffer size after calculating actual output size
13 years ago
Justin Ruggles
ad17207b51
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.
13 years ago
Justin Ruggles
59f4d1b8bb
truespeech: use memmove() in truespeech_update_filters()
13 years ago
Justin Ruggles
41899b9acb
vorbisdec: remove AVCODEC_MAX_AUDIO_FRAME_SIZE check
...
The user could provide a larger buffer, which is already checked separately
before writing output.
13 years ago
Justin Ruggles
e551a6f49a
vorbisdec: remove unneeded buf_size==0 check
13 years ago
Justin Ruggles
f666276fa6
vorbisdec: return proper error codes instead of made-up ones
13 years ago
Martin Storsjö
f2d0015531
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>
13 years ago
Laurent Aimar
2305742b2a
sunrast: Check for invalid/corrupted bitstream
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Martin Storsjö
6149485f6c
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>
13 years ago
Anton Khirnov
a251928060
http: Add encoding/decoding flags to the AVOptions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
492cc1bef3
avconv: remove some codec-specific hacks
...
The problem they are supposed to fix is handled in riff.c, so those
hacks are pointless.
13 years ago
Anton Khirnov
dc86ca1ab5
crypto: add decoding flag to options.
13 years ago
Anton Khirnov
34ff0e2915
tls: use AVIO_FLAG_NONBLOCK instead of deprecated URL_FLAG_NONBLOCK
13 years ago
Anton Khirnov
3b384502f2
http: use different classes for http and https.
13 years ago
Martin Storsjö
8ef79f42ca
http: Change an error log message to a warning
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
7590061eb7
http: Remove the now unused ff_http_set_headers custom function
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
27fad11b5b
mms: Set http custom headers via the AVOption
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
196bf28c5d
rtsp: Set http custom headers via the AVOption
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
10da1e913b
http: Make custom headers settable via an AVOption
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
eaa8c1f9fe
crypto: Don't manually free memory allocated via AVOptions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
d10361b658
avio: Free URLContext private data allocated via AVOptions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
John Brooks
6c643e0705
avc: fix memory errors when encoding invalid h264 codecdata
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Justin Ruggles
f1f6d3615f
avcodec: add support for planar signed 8-bit PCM.
...
It is found in some 8svx files (e.g. ones created by SoX).
Currently the decoder reuses the 8svx functions because we already have
handling of a single large planar packet for the compressed 8svx codecs.
13 years ago
Justin Ruggles
fed5ca255f
ra144enc: add sample_fmts list to ff_ra_144_encoder
...
This enables the user (i.e. avconv) to automatically convert to the supported
sample format if needed.
13 years ago
Justin Ruggles
818a3bdedf
smackaud: use uint8_t* for 8-bit output buffer type
...
This matches the output sample format and the range of the output values.
13 years ago
Justin Ruggles
375ca0aca8
smackaud: clip output samples
13 years ago
Justin Ruggles
c86c3c8017
smackaud: use sign_extend() for difference value instead of casting
13 years ago
Justin Ruggles
979c8de549
sipr: use a function pointer to select the decode_frame function
13 years ago
Justin Ruggles
3468ff1060
sipr: set mode based on block_align instead of bit_rate
...
the user is not required to set bit_rate
13 years ago
Justin Ruggles
0005f9a35b
sipr: do not needlessly set *data_size to 0 when returning an error
13 years ago
Justin Ruggles
9cb70ce34b
ra288: fix formatting of LOCAL_ALIGNED_16
13 years ago
Martin Storsjö
65ac51373b
udp: Allow specifying the local IP address
...
This is useful if sending multicast data on a host with
multiple interfaces.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
shahriman AMS
c33d4916fb
VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
shahriman AMS
62622d04eb
vc1dec: move an if() block.
...
There are no reason for "if (c_valid) { ... }" to appear before
"if (b_valid) { ... }".
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
shahriman AMS
4bceeaf0c1
vc1dec: use correct hybrid prediction threshold.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
shahriman AMS
4344ce08f1
vc1dec: Partial rewrite of vc1_pred_mv()
...
The current code is a generalization of the earlier progressive MV
prediction code. This was supposed to predict MVs for both interlaced
and progressive pictures. But the interlaced MV prediction is buggy
and works mostly by luck.
This partially fixes interlaced MV prediction.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
shahriman AMS
6475a6e1ca
vc1dec: take ME precision into account while scaling MV predictors.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Andrey Utkin
055a141e44
lavf: don't leak corrupted packets
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Martin Storsjö
f38f3b88a5
tls: Use ERR_get_error() in do_tls_poll
...
The return value ret isn't an error code that can be passed
to ERR_error_string().
This makes the error messages printed actually contain useful
information.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Alex Converse
1149fbc763
indeo3: Fix a fencepost error.
...
Found with asan and the venerable 1-dog.avi sample.
13 years ago