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
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
Michael Niedermayer
26ae9a5d7c
pthreads: drop has_b_frames mangling, its buggy in many many ways,
...
not to mention race conditions and that its used for stream copy, used to determine IPB type by
applications and other things.
Fixes various frame drop/timestamp issues with frame multithreading.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Andrey Utkin
055a141e44
lavf: don't leak corrupted packets
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Michael Niedermayer
b2bdca1b4a
udp: simplify 7a032cb97f
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Andrey Utkin
7a032cb97f
Fix segfault on UDP reading
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
bf0ac7aa69
mpegvideo_probe: reduce score for invalid streams
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
Michael Niedermayer
4e38d4ef0e
mpegvideo_probe: Getting rid of the use of GCC language extensions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0643ff1712
mpegvideo_probe: dont be too picky on spec compliance and the lack of system startcodes.
...
Fixes Ticket620
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b52f2d88fe
mpegvideo_probe: count video and audio pes seperately
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
26d7eb40fd
mpegvideo probe: fix slice counting
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
735e601be1
mxfdec: Fix comparison of unsigned expression < 0.
...
'size' is populated by functions returning int64_t and int that return
negative error codes.
13 years ago
Anton Khirnov
3110ad8329
mpegts: set stream id on just created stream, not an unrelated variable
...
Bug introduced in 84ad31ff18
.
Thanks to Uoti Urpala for finding it.
13 years ago
Michael Niedermayer
4b7ef5a1e6
flv: Skip invalid index
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
83daced0a3
lavf: expand doxy for some AVFormatContext fields.
13 years ago
Carl Eugen Hoyos
4d7c71c364
Check for OOM after av_mallocz() in ff_interleave_add_packet().
...
Fixes a crash with the sample from Ubuntu bug #869125 .
13 years ago
Carl Eugen Hoyos
8a3f976498
Support decoding "m1v " mpeg1video in mov.
...
Fixes ticket #579 at least for ffplay.
13 years ago
Carl Eugen Hoyos
6aaf6db253
Support decoding transport streams from Sony NXCAM.
...
Fixes ticket #617 .
13 years ago
Michael Niedermayer
4717e29796
flvdec: skip duplicate indexes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
1c8c41ff07
avformat: Avoid a warning about mixed declarations and code
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Kostya Shishkov
f545e00677
BMV demuxer and decoder
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Miroslav Slugeň
df9c1cfb48
libavformat: add support for G726 audio decoder in RTP and RTSP streams
...
Fixes Ticket611
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
44729bc020
matroskaenc: Make sure the seekhead struct is freed even on seek failure
...
The caller expects the seekhead struct to be freed when calling
matroska_write_seekhead. Currently, the structure is leaked if the
seek fails.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
ce145690b6
avformat: Warn about using network functions without calling avformat_network_init
...
This is to make developers aware of the fact that they will
start using the new init function at some point.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
87892ef8a6
avformat: Revise wording
...
It might make sense not to make the function completely mandatory
immediately at the next bump, which might be quite soon after
the function was introduced.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
0882689116
rdt: Set AVFMT_NOFILE on ff_rdt_demuxer
...
This makes rdt work again, which has been broken since
603b8bc2a1
. This commit made
opening a demuxer without a file (or in this case, with a filename
which can't be opened) fail, unless the demuxer actually declared
AVFMT_NOFILE.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
ed307e2659
rdt: Check the return value of avformat_open
...
If it failed, return NULL. This avoids trying to use an
half-initialized RDTDemuxContext.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
4b3dc857e4
rtsp: Discard the dynamic handler, if it has an alloc function which failed
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
728e6d979b
avio: print a warning from ffurl_alloc() if no protocols are allocated.
...
Fixes Ticket618
Based on code by teratorn
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
eb0de71058
lavf: don't return from void av_update_cur_dts()
13 years ago
Martin Storsjö
2461284630
openssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0
...
Since 1.0.0, this function is deprecated. A new function,
CRYPTO_THREADID_set_callback is available, but if not set at all,
it uses the address of errno as thread id, which should be
sufficient for most systems.
On windows, it never was necessary to use this function even
before 1.0.0, it used the right win32 API function for this
by default.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
3607ed70d5
Remove leftover includes of strings.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Reimar Döffinger
bb3244dee2
Replace all usage of strcasecmp/strncasecmp
...
All current usages of it are incompatible with localization.
For example strcasecmp("i", "I") != 0 is possible, but would
break many of the places where it is used.
Instead use our own implementations that always treat the data
as ASCII.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Peter Ross
b372723f6a
wtvenc: ensure fat tables are padded to the sector boundary
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
41ab24bad8
lavf: remove commented check in compute_pkt_fields2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Peter Ross
3b4798a873
wtvdec: ignore another known guid
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ea83b032af
matroskaenc: base default duration on avg_frame_rate if possible.
...
Fixed Ticket432
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Peter Ross
42b5a6f634
wtvenc: use ff_put_guid and remove local copy of this function
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Peter Ross
b7c9512fca
asfenc: rename put_guid to ff_put_guid
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago