Oka Motofumi
5c742005fb
avisynth: Make sure the filename passed to avisynth is in the right code page
...
avisynth is a non-unicode application and cannot accept UTF-8
characters. Therefore, the input filename should be converted to
the correct code page that it expects.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-31 22:39:08 +03:00
Samuel Pitoiset
9613240f72
http: Pass the proper return code of net IO operations
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-30 23:46:51 +03:00
Samuel Pitoiset
1876e7c0c2
http: Add 'post_data', a new option which sets custom HTTP post data
...
This allows doing http posts with a content-length header sent
in advance, avoiding chunked encoding.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-30 23:41:05 +03:00
Ronald S. Bultje
64bde80563
mp3/ac3 probe: search for PES headers to prevent probing MPEG-PS as MP3.
2012-05-30 09:08:29 -07:00
Samuel Pitoiset
e999b641df
http: Add support for reusing the http socket for subsequent requests
...
Introduce ff_http_do_new_request(), a new function which sends a new
HTTP request, reusing the existing connection to the server.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-28 16:42:40 +03:00
Samuel Pitoiset
3bdb438e65
http: Add support for using persistent connections
...
Add a new AVOption 'multiple_requests', which indicates if we want
to use persistent connections (ie. Connection: keep-alive).
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-28 16:42:14 +03:00
Martin Storsjö
6099543ad4
rtsp: Check for dynamic payload handlers if no static payload mapping was found
...
Some systems abuse the static payload types 35 or 36 (which
according to IANA are unassigned) for H264.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-26 21:58:18 +03:00
Martin Storsjö
68c813081b
rtpenc_chain: Return an error code instead of just a plain pointer
...
Also check the return value in sapenc.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-26 13:35:44 +03:00
Martin Storsjö
93cef6f923
rtpenc_chain: Free the URLContext on failure
...
If an URLContext is passed in, its ownership is given to this
function, and is either owned by the returned AVFormatContext
on a successful return, or freed on failure.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-26 13:35:44 +03:00
Martin Storsjö
2dcb21a95d
rtpenc: Expose the ssrc as an avoption
...
This allows the caller to set it, and allows the caller to query
what it was set to.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-26 13:35:39 +03:00
Martin Storsjö
39e29aa019
cosmetics: Fix indentation
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-26 00:34:20 +03:00
Luca Barbato
c6eeb9b7b6
rtmp: fix url parsing
...
The application component can have a subcomponent to specify the
application instance even if it doesn't have a ":" in the playpath.
2012-05-25 14:20:34 -07:00
Alex Converse
ed7bdd8647
movenc: Don't write the 'wave' atom or its child 'enda' for lpcm audio.
...
It's left over from stsd v0. QuickTime 7 no longer writes 'wave' or 'enda'
when 'lpcm' is the audio tag.
2012-05-25 11:24:43 -07:00
Samuel Pitoiset
177bcc9593
rtmp: Pass the proper return code in rtmp_handshake
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-24 22:16:46 +03:00
Samuel Pitoiset
bba287fdac
rtmp: Check return codes of net IO operations
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-24 22:16:46 +03:00
Samuel Pitoiset
a4d3f3580b
rtmp: Return a proper error code instead of -1
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-24 00:25:36 +03:00
Samuel Pitoiset
08e93f5b46
rtmp: Check malloc calls
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-24 00:25:35 +03:00
Samuel Pitoiset
f645f1d6ea
rtmp: Check ff_rtmp_packet_create calls
...
Check malloc calls used by ff_rtmp_packet_create, unify error
handling and pass on error codes.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-24 00:25:35 +03:00
Martin Storsjö
1e8561e369
flvdec: Make sure sample_rate is set to the updated value
...
The sample_rate variable is used for checks for audio format
changes at the end of the function.
This fixes cases where the sample rate was set from the codec
id by flv_set_audio_codec (as for nellymoser 8 kHz/16 kHz),
so the value set to last_sample_rate wasn't equal to sample_rate
at this point. This caused the demuxer otherwise reports a spurious
change to 5512 Hz and back to the correct one.
Updating channels in the same way is only done for consistency.
Currently, flv_set_audio_codec doesn't update that value.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-23 22:23:43 +03:00
Dave Yeo
3f9d6e4239
os_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-23 10:38:14 +03:00
Samuel Pitoiset
e5773d8bc3
http: Add support for reading http POST reply headers
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-22 23:16:46 +03:00
Samuel Pitoiset
ba354a8cc0
http: Add http_shutdown() for ending writing of posts
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-22 23:16:44 +03:00
Samuel Pitoiset
4a9ca93556
tcp: Allow signalling end of reading/writing
...
tcp_shutdown() isn't needed at the moment, but is added for
consistency to explain how the function is supposed to be used.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-22 23:16:42 +03:00
Samuel Pitoiset
32d545e0a4
avio: Add a function for signalling end of reading/writing
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-22 23:16:41 +03:00
Diego Biurrun
db9e00f469
Remove libnut wrapper
...
libnut is unmaintained and known to be buggy; native NUT code exists.
2012-05-21 08:51:50 +02:00
James Zern
e9cef89702
avformat: Add a flag to mark muxers that allow (non strict) monotone timestamps.
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
2012-05-20 19:50:32 -04:00
Samuel Pitoiset
5d603f1b65
http: Factorize the code by adding http_read_header()
...
This function is used for reading http reply headers.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-20 20:20:50 +03:00
Mans Rullgard
68aef0b481
lavf: change some (de)muxer names to lowercase
...
This is consistent with other format names.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-05-19 19:44:16 +01:00
Mans Rullgard
81ad97eeda
lavf: make output format matching case insensitive
...
This is consistent with how input formats are matched.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-05-19 19:44:15 +01:00
Anton Khirnov
755cd4197d
mov: enable parsing for VC-1.
...
This makes lavf discard broken timestamps for non-B frames in
samples/isom/vc1-wmapro.ism.
2012-05-18 19:38:21 +02:00
Martin Storsjö
4b7304e80d
rtmp: Don't assume path points to a string of nonzero length
...
If using the new -rtmp_app and -rtmp_playpath parameters,
one can in many cases set the main url to just rtmp://server/.
If the trailing slash is omitted, path is a string of zero length,
and using path+1 will end up reading uninitialized data.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-17 21:16:52 +03:00
Mans Rullgard
db465be45d
lavf: add mdec to is_intra_only() list
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-05-15 15:49:56 +01:00
Mans Rullgard
7c6d240665
mtv: do not byteswap raw video in demuxer
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-05-14 20:26:39 +01:00
Diego Biurrun
70be4dddc8
gxfenc: remove disabled half-implemented MJPEG tag
2012-05-14 15:38:42 +02:00
Samuel Pitoiset
d55961fa82
rtmp: Implement check bandwidth notification.
...
According to the behaviour of librtmp, it is recommended to send this
message to the server after receiving the 'onBWDone' callback in order
to do bandwidth checking and improve compatibility with some servers.
2012-05-10 13:55:32 +03:00
Samuel Pitoiset
05945db9ce
rtmp: Support 'rtmp_swfurl', an option which specifies the URL of the SWF player.
2012-05-10 13:55:31 +03:00
Samuel Pitoiset
e64673e4f4
rtmp: Support 'rtmp_flashver', an option which overrides the version of the Flash plugin.
2012-05-10 13:55:30 +03:00
Samuel Pitoiset
55c9320e06
rtmp: Support 'rtmp_tcurl', an option which overrides the URL of the target stream.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-10 13:55:26 +03:00
Sean McGovern
ded69c5e21
sctp: be consistent with socket option level
...
Replace SOL_SCTP by the more portable IPPROTO_SCTP.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2012-05-10 00:01:45 +02:00
Diego Biurrun
59cbc4eee2
mov: make one comment slightly more specific
2012-05-09 23:12:37 +02:00
Luca Barbato
5699884c2e
sctp: Initial tcp-alike sctp support with streams
...
Signed-off-by: Jordi Ortiz <nenjordi@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2012-05-08 16:06:49 -07:00
Alex Converse
40f81769ae
options_table: Add some missing #includes to fix "make checkheaders".
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2012-05-08 20:05:20 +02:00
Jordi Ortiz
fcd0298c05
rtsp: Add content-type message header parsing
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2012-05-08 10:18:35 -07:00
Samuel Pitoiset
b2e495afa8
rtmp: Support 'rtmp_live', an option which specifies if the media is a live stream.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-08 13:21:35 +03:00
Diego Biurrun
520c1ec699
dv: Split profile handling code into a separate file.
2012-05-07 23:59:49 +02:00
Anton Khirnov
0a3ad7ff80
flvenc: use AVFormatContext, not AVCodecContext for logging.
...
Encoder tag being used for muxer messages is confusing.
2012-05-07 21:28:40 +02:00
Diego Biurrun
455245ca8a
mov: Remove write-only variable in mov_read_chan().
...
libavformat/mov.c:597:25: warning: variable ‘cflags’ set but not used
2012-05-07 20:31:23 +02:00
Anton Khirnov
1432c1c429
lavf: add missing '*' in a doxy.
2012-05-07 14:22:42 +02:00
Diego Biurrun
9eb83a56aa
build: cosmetics: Split HEADERS/OBJS/PROGS lists into one entry per line.
2012-05-07 14:01:32 +02:00
Diego Biurrun
30b1961c66
Mark a number of variables only used in av_dlog() calls as av_unused.
...
This fixes a number of unused-but-set gcc warnings.
2012-05-06 18:01:31 +02:00