Carl Eugen Hoyos
ced0d6c14d
Use correct msvc type specifiers for ptrdiff_t and size_t.
...
The Windows runtime aborts if it finds %t or %z.
Fixes ticket #3472 .
Reviewed-by: Ronald Bultje
11 years ago
Michael Niedermayer
be25614177
mmsh: reimplement seeking
...
Fixes Ticket2682
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b4579a29c7
mmsh: dont close context on seeking failure
...
Fixes Ticket2581
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c7755c348b
mmsh/mmsh_close: use ffurl_closep()
...
avoid using freed pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0329345da2
mmsh/mmsh_close: use av_freep()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
830f7f189f
mmsh: fix integer overflow in mmsh_seek()
...
Fixes CID703745
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
32b83aeec1
avio: Add an URLProtocol flag for indicating that a protocol uses network
...
This definition is in two files, since the definitions will move
to the private header at the next bump.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
c3b05d2159
proto: Realign struct initializers
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
7e58050590
proto: Use .priv_data_size to allocate the private context
...
This simplifies the open functions by avoiding one function
call that needs error checking, reducing the amount of
extra bulk code.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
9c6777bd93
mmsh: Properly clean up if the second ffurl_alloc failed
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
c88ebdb42c
Eliminate pointless 0/NULL initializers in AVCodec and similar declarations.
13 years ago
Anton Khirnov
ddffc2fdc3
avio: add support for passing options to protocols.
...
Not used anywhere yet, support for passing options from avio_open() will
follow.
13 years ago
Martin Storsjö
6f1b7b3944
avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc
...
Change all uses of these function to pass the relevant
callback on.
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
Michael Niedermayer
26b64550d6
mmsh: add return value for mmsh_open()
...
Found-by: cptspiff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8af4ac5272
mmsh: do not try to seek to negative tiimestamps, it does not work
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
33789862aa
mmsh_read_seek: skip header
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
237bcaa275
mmsh:_implement a minimal mmsh_seek() so the stream position can be found out.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8475ec190c
mmsh: mmsh_read_seek()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
86a4e55e66
mmsh: split out mmsh_open_internal()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
aedb87c57e
mmsh: move location storage into context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
add41decd9
Remove return statements following infinite loops without break
...
These statements cannot be reached and are thus not needed.
This removes a number of compiler warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Kirill Zorin
6ec2fd5f77
mmsh: fix 400 bad request
...
There is no need to write two HTTP newlines (\r\n) into "headers",
because http_connect (in http.c) already appends one HTTP newline at
the end of the given headers chunk, which would result in sending
three HTTP newlines after the headers. Most of the time it's okay
(although not RFC-conforming), but many proxy servers and the
occasional strict httpd will puke with a "400 bad request".
14 years ago
Kirill Zorin
6095388812
mmsh: fixed printf injection bug in mmsh request
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Kirill Zorin
a0bafaabb0
mmsh: fixed printf injection bug in mmsh request
14 years ago
Diego Biurrun
dc25d79f49
Drop unnecessary directory prefixes from #include directives.
14 years ago
Stefano Sabatini
59d96941f0
avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
...
Make AVIO_FLAG_ access constants work as flags, and in particular fix
the behavior of functions (such as avio_check()) which expect them to
be flags rather than modes.
This breaks API.
14 years ago
Anton Khirnov
f87b1b373a
avio: AVIO_ prefixes for URL_ open flags.
14 years ago
Anton Khirnov
e52a9145c8
avio: make url_close() internal.
14 years ago
Anton Khirnov
dce3756459
avio: make url_read_complete() internal.
14 years ago
Anton Khirnov
62eaaeacb5
avio: make url_connect internal.
14 years ago
Anton Khirnov
5652bb9471
avio: make url_alloc internal.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Luca Barbato
9ef5a9deaf
Replace dprintf with av_dlog
...
dprintf clashes with POSIX.1-2008
(cherry picked from commit dfd2a005eb
)
14 years ago
Luca Barbato
dfd2a005eb
Replace dprintf with av_dlog
...
dprintf clashes with POSIX.1-2008
14 years ago
Diego Elio Pettenò
66355be3c3
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
...
This also lists the objects from those two libraries as internal (by adding
the ff_ prefix) so that they can then be hidden via linker scripts.
(cherry picked from commit c6610a216e
)
14 years ago
Diego Elio Pettenò
c6610a216e
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
...
This also lists the objects from those two libraries as internal (by adding
the ff_ prefix) so that they can then be hidden via linker scripts.
14 years ago
Ronald S. Bultje
3dedbeff7b
Check return value of get_chunk_header(). Since enum can be unsigned, the
...
current code wouldn't always error out on errors.
Based on patch by Stephen d'Angelo <sdangelo evertz com>.
Originally committed as revision 25260 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Ronald S. Bultje
6a1712ddb5
Fix two compiler arnings related to printf-format of sizeof()-statements.
...
Originally committed as revision 24961 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Zhentan Feng
37c506e8b9
stream_selection can be freed in the fail case, in which case it's unassigned.
...
Therefore, init it with NULL to prevent a crash on invalid streams.
Patch by Zhentan Feng <spyfeng gmail com>.
Originally committed as revision 24960 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Ronald S. Bultje
f5ea69b235
MMSH support, the most popular and widely used of all MMS variants. Written by
...
Zhentan Feng <spyfeng gmail com> as part of Google's Summer of Code program.
Originally committed as revision 24861 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago