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>
13 years ago
Michael Niedermayer
875851294f
avienc: create xsub in avi files that are closer to whats in the wild
...
Fixes ticket1332
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
65212e3ed9
mxfdec: remove unused last_index_duration
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
ab7d6cb8f7
Support decoding fourcc YVYU.
...
Based on work by ami_stuff.
Fixes ticket #1352
13 years ago
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
Michael Niedermayer
f7c89705e4
avio: fix "discards const qualifier from pointer target type" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
ami_stuff
ca8623e1a5
Support some BOXX codecs.
...
Fixes a part of ticket #1352 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
Michael Niedermayer
d0f78e77e1
avidec: simplify avi_read_idx1()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
212f129fb8
avidec: discard 0 packets even for sample_size==0 NI
...
Fixes Ticket1332
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
121d3875b6
lavf: print the invalid tb in avpriv_set_pts_info()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
Matthieu Bouron
f452d6c34d
mxfdec: fix frame height computation for mixed fields layout
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1dd71e1cd5
rawdec: force timestamps from codec to be used
...
This fixes playback timing with at least m4v files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a6b3471c44
avformat: add needs_parsing type to enable codec TS use.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
faa2930f19
flvdec: reenable extradata passing code
...
This fixes passing junk in stream.
It should not have any user vissible effect.
We are discarding the new data in the decoder as no case is known
where it is needed but it causes problems if used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
Marton Balint
b36a0a80fc
lavf: also use codec aspect ratio in av_guess_sample_aspect_ratio
...
Use codec aspect ratio for frame aspect ratio if AVFrame is NULL.
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
Piotr Bandurski
4d18f4c15b
id3v2: reject APICs with size of 0
...
fixes ticket #1324
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
Clément Bœsch
e5fcf3646a
lavf/id3v2: always strdup the value.
...
This simplifies the code but also fix a warning: ff_id3v1_genre_str
array contains const strings so do the string dup now instead of in
av_dict_set().
13 years ago
Clément Bœsch
6ad974ae1c
lavf/id3v2: do not export empty fields.
...
This also avoids a memleak.
13 years ago
Clément Bœsch
1308fa42ad
lavf/swf: fix make checkheaders.
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
Piotr Bandurski
4d37877632
aasc: support "Autodesk 24 bit RLE compressor" (FourCC: aas4)
...
fixes ticket #1310
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Bradshaw
1f3f7bd444
Add AVFMT_SEEK_TO_PTS to nut demuxer flags
...
Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Bradshaw
bb008f0ad1
Mention AVFMT_SEEK_TO_PTS in AVInputFormat flags docs
...
Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Piotr Bandurski
6439ad495e
Add SLDV FourCC for dvvideo.
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
Michael Niedermayer
b9777797be
mtv: make output endian independant
...
should fix fate-mtv test
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
86709ce3a9
Support NTSC forward dvcpro videos (PAL looks incorrect).
13 years ago