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>
13 years ago
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>
13 years ago
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>
13 years ago
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>
13 years ago
Martin Storsjö
39e29aa019
cosmetics: Fix indentation
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
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.
13 years ago
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.
13 years ago
Samuel Pitoiset
177bcc9593
rtmp: Pass the proper return code in rtmp_handshake
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
bba287fdac
rtmp: Check return codes of net IO operations
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
a4d3f3580b
rtmp: Return a proper error code instead of -1
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
08e93f5b46
rtmp: Check malloc calls
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
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>
13 years ago
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>
13 years ago
Dave Yeo
3f9d6e4239
os_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
e5773d8bc3
http: Add support for reading http POST reply headers
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
ba354a8cc0
http: Add http_shutdown() for ending writing of posts
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
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>
13 years ago
Samuel Pitoiset
32d545e0a4
avio: Add a function for signalling end of reading/writing
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
db9e00f469
Remove libnut wrapper
...
libnut is unmaintained and known to be buggy; native NUT code exists.
13 years ago
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>
13 years ago
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>
13 years ago
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>
13 years ago
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>
13 years ago
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.
13 years ago
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>
13 years ago
Mans Rullgard
db465be45d
lavf: add mdec to is_intra_only() list
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
7c6d240665
mtv: do not byteswap raw video in demuxer
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
70be4dddc8
gxfenc: remove disabled half-implemented MJPEG tag
13 years ago
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.
13 years ago
Samuel Pitoiset
05945db9ce
rtmp: Support 'rtmp_swfurl', an option which specifies the URL of the SWF player.
13 years ago
Samuel Pitoiset
e64673e4f4
rtmp: Support 'rtmp_flashver', an option which overrides the version of the Flash plugin.
13 years ago
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>
13 years ago
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>
13 years ago
Diego Biurrun
59cbc4eee2
mov: make one comment slightly more specific
13 years ago
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>
13 years ago
Alex Converse
40f81769ae
options_table: Add some missing #includes to fix "make checkheaders".
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Jordi Ortiz
fcd0298c05
rtsp: Add content-type message header parsing
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
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>
13 years ago
Diego Biurrun
520c1ec699
dv: Split profile handling code into a separate file.
13 years ago
Anton Khirnov
0a3ad7ff80
flvenc: use AVFormatContext, not AVCodecContext for logging.
...
Encoder tag being used for muxer messages is confusing.
13 years ago
Diego Biurrun
455245ca8a
mov: Remove write-only variable in mov_read_chan().
...
libavformat/mov.c:597:25: warning: variable ‘cflags’ set but not used
13 years ago
Anton Khirnov
1432c1c429
lavf: add missing '*' in a doxy.
13 years ago
Diego Biurrun
9eb83a56aa
build: cosmetics: Split HEADERS/OBJS/PROGS lists into one entry per line.
13 years ago
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.
13 years ago
Janne Grunau
29d27b5425
mpegmux: add stuffing to avoid incomplete PCM frames
...
Fixes https://bugzilla.libav.org/show_bug.cgi?id=244
13 years ago
Mans Rullgard
ddce7dabd2
rtsp: avoid const warnings from strtol() call
...
The strtol() interface makes it difficult to use with
const-qualified pointers. With this change, although
the const is still lost, the compiler does not warn
about it.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Martin Storsjö
2ed503af9f
rtpdec_h264: Add missing newlines to av_log calls
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
b97d21e4d6
rtpdec_h264: Free old extradata before clearing the pointer
...
This avoids memory leaks if there actually was some extradata
set before.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
3c148703f6
rtpdec_h264: Reorder code blocks
...
This removes one level of indentation.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
b368861747
rtpdec_h264: Make start_sequence a static const array
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago