Michael Niedermayer
eae35eadc0
rtspdec: Fix use of uninitialized byte
ffurl_read_complete can return 0 as well as negative error codes.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Paul B Mahol
3d179edf6d
yop: check return value of avformat_new_stream()
Fixes null pointer dereference, fixes CID703729.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
5a75924dfd
rtmpproto: fix out of array write
Fixes CID732263
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0c6b9b9fe5
rtspdec:read_line: fix use of uninitialized byte
Fixes CID732301
Fixes CID723300
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
59cbedfc3d
update_initial_timestamps: increase pts_buffer size
Fixes CID733786
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
da18e918a4
md5: Allocate a normal private context for the opaque md5 context pointer
This avoids having to overestimate the md5 context size, which
isn't known beforehand, allowing us to use the new allocate functions
instead.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
e002e3291e
Use the new aes/md5/sha/tree allocation functions
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Paul B Mahol
3632f35c8e
bethsoftvid: check return value of av_packet_new_side_data()
Fixes null pointer dereference, fixes CID733777.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Carl Eugen Hoyos
1a104bf641
Fix broken timestamps for some mp3 in avi samples.
Mostly based on 73ad355
by Michael Niedermayer.
Fixes ticket #606 .
12 years ago
Michael Niedermayer
317505b566
lavf: do not prematurely accept a format with low score in init_input()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b47396b614
img2dec: detect .raw files only with a low score as img2
They can be many other things and this otherwise breaks probing of some .raw files.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
94f5470a20
lavf: add a AVPROBE_SCORE_RETRY instead of using hardcoded values.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Janne Grunau
bd141f5ec9
mxfdec: return error if no segments are available in mxf_get_sorted_table_segments
Fixes CID732275.
12 years ago
Luca Barbato
b522000e9b
avio: introduce avio_closep
12 years ago
Luca Barbato
26db9100b2
segment: support applehttp style list
12 years ago
Luca Barbato
82569b01a1
mpegtsenc: set muxing type notification to verbose
12 years ago
Paul B Mahol
ee109c6bc2
dtshd: fix seeking
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
73ad355d23
avidec: fix 10l typo
found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
229e33a2b6
avidec: override sample size of 1024 for VBR AAC
Fixes Ticket1755
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
03cc52a07d
takdec: fix seeking
The previous approach was just wrong.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Paul B Mahol
eb71f027f0
dtshd: remove redundant/wrong avio_tell()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Paul B Mahol
1470c8a9a3
takdec: remove redundant/wrong avio_tell()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Duncan Salerno
f3f35f7430
crypto should allow passing of options to the underlying protocol via the url_open2 interface
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Duncan Salerno
bd2f8e8f79
Fix second use of AVOptions in HLS
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Janne Grunau
d5ef9354ce
rtspdec: use av_strlcpy for writing into fixed size buffer
Fixes CID231347.
12 years ago
Janne Grunau
4a7c0c4555
http: use av_strlcpy instead of strcpy() without size checks
Fixes CID700730.
12 years ago
Andrey Utkin
b6f435fbc8
http: add 'timeout' AVOption
This option is passed though to underlying tcp protocol context
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Andrey Utkin
2e009c6042
tcp: accept params through avio_open2() options
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Andrey Utkin
949acefc11
tcp: use timeout option consistently
Default _connection_ timeout value 5 seconds is left as i/o timeout also
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Andrey Utkin
d2b18c8f5b
Introduce ff_network_wait_fd_timeout()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Janne Grunau
4ffbe3f3a5
matroskaenc: check cue point validity before reallocation
Prevents memory leak and possible access to freed memory.
Fixes CID605744.
12 years ago
Janne Grunau
53e122dd4a
swfenc: error out for more than 1 audio or video stream
Prevents CID602000.
12 years ago
Janne Grunau
8dd0650fe6
rtpdec_mpeg4: au_headers is a single array, simple av_free is enough
Fixes CID700204.
12 years ago
Martin Storsjö
7bc433b36d
fate: Add tests of the ff_make_absolute_url function
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Duncan Salerno
33893e6abc
url: Handle relative urls starting with two slashes
This is defined by RFC 3986 section 5.4.1 to be handled this way.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Duncan Salerno
eea003814c
url: Handle relative urls being just a new query string
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Duncan Salerno
a6363e3d89
url: Don't treat slashes in query parameters as directory separators
Strip off query parameters from the original url before
applying the new relative path.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Diego Biurrun
f75f4194d1
Restructure av_log_missing_feature message
Some invocations include a verb in the log message, others do not. Yet
av_log_missing_feature expects callers to provide a verb. Change the
function to include a verb instead and update the callers accordingly.
The result is a more natural function API and correct English in the
function invocations.
12 years ago
Paul B Mahol
238e904df3
DTS-HD demuxer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Martin Storsjö
c136a813d7
rtp: Support packetization/depacketization of opus
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Yusuke Nakamura
e04826c34e
file: Set the return value type for lseek to int64_t.
This fixes a regression in 4ed5ac5
.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Tim Nicholson
a02762995b
movenc.c: Force correct value for "Samples per packet" for pcm audio
Apple spec is for it to always be "1" for uncompressed audio.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
c9b10cc4db
rtpenc_vp8: Update the packetizer to the latest spec version
Tested to work with the gstreamer depacketizer.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
66d652cbf3
rtpdec_vp8: Make the depacketizer implement the latest spec draft
Not all details are implemented, but it's enough for proper
playback as long as there is no packet loss.
Tested to work with the packetizer in gstreamer (which although
uses a different codec name, to clarify that it is still a spec
draft).
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Luca Barbato
0826d8513d
segment: drop global headers setting
avconv provides an option to set it externally and there isn't a way for
the outer demuxer to report the inner demuxer flag.
Solves a bad interaction between mpegts and x264, but requires
additional setting for the user.
12 years ago
Paul B Mahol
d7a4739265
TAK demuxer, decoder and parser
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Clément Bœsch
f7c46d251c
ffserver: fix seeking with ?date=...
Regression since 5f847bf61d
.
After this commit, timestamps pushed by FFmpeg won't be relative
anymore, but absolute (based on the date/time at the beginning of the
push). This will allow seeking to work properly. Before this patch, the
seek was done, but ffm timestamps were way smallers than the absolute
requested timestamp (based on a date), so the seek was done, but to the
end of the stream (which was similar to no effect at all).
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Michael Niedermayer
f464b02d22
mpegts: fuzzy crc check for not so spec compliant files
Fixes Ticket598
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
adcfc0535d
mxfenc: fix av_log data type for dts paramater
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago