James Almer
29216d7fd1
tls: fix compilation when both gnutls and openssl are enabled
...
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
James Almer
e91fbfd9cf
tls: fix compilation when both gnutls and openssl are enabled
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
Urvang Joshi
6b56fcbd10
WebP muxer: support a packet containing animated WebP.
...
This is the 1st patch in preparation for using WebPAnimEncoder API for encoding
and muxing WebP images.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Martin Storsjö
94599a6de3
tls: Remove all the local polling loops
...
These aren't necessary any longer.
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Martin Storsjö
d13b124eaf
tls: Remove the nonblocking code
...
Since the underlying URLContext read functions are used,
they handle interruption, without having to handle it at
this level.
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Martin Storsjö
d15eec4d6b
tls: Use custom IO to read from the URLContext
...
This avoids hijacking the fd, by reading using the normal
URLContext functions instead. This allowing reading data that has
been buffered in the underlying URLContext.
This avoids using the libraries own send functions that can
cause SIGPIPE.
The fd is still used for polling the lowlevel socket, for
waiting for retries.
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Zhang Rui
c886dd2f58
avformat/mov: check result of avio_seek
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Carl Eugen Hoyos
4fb3efd2c1
lavf/mov: Use AVCOL_SPC constants when checking color_space.
...
Suggested-by: Ronald Bultje
10 years ago
Carl Eugen Hoyos
c4f864193f
lavf/mov: Write colour matrix "6" for color_space bt470bg.
...
This matches the demuxer's behaviour.
10 years ago
Carl Eugen Hoyos
8f6b919d99
lavf/mkv: Only skip prores header if the packet is large enough.
...
Fixes a possible endless loop.
10 years ago
Andreas Cadhalpun
bb23a15df5
nutdec: abort if EOF is reached in decode_info_header/read_sm_data
...
These loops can take a lot of time if count is very large.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
10 years ago
Andreas Cadhalpun
fa7dec8cb0
nutdec: stop skipping bytes at EOF
...
This can unnecessarily waste a lot of time.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
10 years ago
Andreas Cadhalpun
37e679881d
nutdec: fix infinite resync loops
...
nut->last_syncpoint_pos doesn't necessarily change between resync
attempts, so find_any_startcode can return the same startcode again.
Thus remember where the last resync happened and don't try to resync
before that.
This can't be done locally in nut_read_packet, because this wouldn't
prevent infinite resync loops, where after the resync a packet is
returned and while reading a following packet the resync happens again.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
10 years ago
Michael Niedermayer
b3496b4a33
avformat/nutdec: Fix recovery when immedeately after seeking a failure happens
...
Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
6bbb2f8f4d
avformat/nutdec: Return error on EOF from get_str()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
e32d832a82
avformat/mxfenc: Set horizontal chroma subsample value from pixel format if available
...
Reviewed-by: tim nicholson <nichot20@yahoo.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
58afb3128b
avformat/mxfenc: Set the component depth from the pixel format if available
...
Reviewed-by: tim nicholson <nichot20@yahoo.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
MrBoogs
4f2fcac290
avformat/hlsenc: do not append an endlist tag when the stream ends
...
Reviewed-by: Thomas Volkert <silvo@gmx.net>
10 years ago
MrBoogs
572a8292cb
avformat/hlsenc: Add hls flag for starting a playlist with a discontinuity on startup
...
Reviewed-by: Thomas Volkert <silvo@gmx.net>
10 years ago
MrBoogs
8fd01b4a79
avformat/hlsenc: Add hls flag for rounding m3u8 durations to whole numbers, problems with floats on some devices
...
Reviewed-by: Thomas Volkert <silvo@gmx.net>
10 years ago
Carl Eugen Hoyos
ee8c18387d
lavf/mpeg: Do not detect unknown audio in Hikvision streams as alaw.
10 years ago
Carl Eugen Hoyos
2acc065653
lavf/wav: Read files >4G if no smaller filesize was written.
...
Fixes second part of ticket #4543 .
10 years ago
Carl Eugen Hoyos
2608f11863
lavf/wav: Print an error if files >4G are written.
...
Additionally, don't write an incorrect shorter size for such files.
Fixes part of ticket #4543 .
10 years ago
Carl Eugen Hoyos
caa41d1e4c
lavf/mov: Tell users about the use_absolute_path option.
...
Fixes ticket #4539 .
10 years ago
Michael Niedermayer
488383afd1
avformat/avidec: add mp2 to the list of exceptions instead of generally treating dshow_block_align==1 special
...
Fixes Ticket4552
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
da4ef13cb2
avformat/mux: use <0 instead of != 0 for error check of init_muxer()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
50393bce31
avformat/mov: Fix parsing short loci
...
Fixes Ticket4557
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
9e4f0cfc8f
avformat/mov: Print reason of loci parsing failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
e6ec65d2d3
avformat/rtsp: print a debug level note if time parsing fails
...
Fixes CID733718 again
This partly reverts commit eb7ddb5066
.
10 years ago
Vignesh Venkatasubramanian
b5508f74b9
lavf/webmdashenc: fix unchecked strftime
...
Fix unchecked strftime return value. This patch fixes Coverity
CID 1295086.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
88f29406b7
avformat/nutdec: Remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Timothy Gu
eaeb632198
nutdec: Remove unused label
...
Added in 361702660d
. Modified version that
doesn't use this label merged in 55231323b0
,
thus obsoleting this label.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Andreas Cadhalpun
cb7c4f73e5
cafdec: free extradata before allocating it
...
This fixes a memleak if read_kuki_chunk is executed more than once.
Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
10 years ago
Andreas Cadhalpun
a3ede6b742
cafdec: check avio_read return value
...
If avio_read fails, the buffer can contain uninitialized values.
Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
10 years ago
Michael Niedermayer
b62b3292d8
avformat/hevc: Check num_negative_pics and num_positive_pics
...
Fixes CID1238994
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
2cddc0b19a
avformat/hevc: Check cpb_cnt_minus1
...
Fixes CID1239014
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
7a27aa15ec
avformat/hls: Handle read_buffer allocation failure
...
Fixes CID1297576
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
70e022cfc5
avformat/idcin: Remove redundant chunk size check
...
Fixes CID1138438
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
171af59d58
avformat/matroskadec: Cleanup error handling for bz2 & zlib
...
Fixes CID703652
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
56abf35151
avformat/nutdec: Fix use of uinitialized value
...
Fixes CID1041175
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
a23379a0a6
avformat/rtpdec_xiph: Move pkt_len onto one side of the check
...
This is more correct
Fixes CID1271793
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
aa5169935e
avformat/rtpdec_xiph: Check upper bound on len in xiph_handle_packet()
...
Larger packets are not supported and would cause problems later
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
81198a6837
avformat/rtpenc_jpeg: Check remaining buffer size for SOS
...
Fixes CID1238818
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Vittorio Giovara
8fc11abe1f
mkv: Print unsupported mov tags when found
10 years ago
Michael Niedermayer
c3671e1d57
avformat/riffenc: Use size_t for strlen in ff_riff_write_info_tag()
...
Also dont generated corrupted output for larger than 4gb strings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Marton Balint
93cc5ca7ed
lavf/img2dec: add option to disable pattern matching
...
Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
59db9e6949
avformat/internal: Fix warning about struct declaration
...
Moving ffio_open2_wrapper() to internal as it uses AVFormatContext
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Carl Eugen Hoyos
da5c6a97bb
riff: Add MultiScope II fourcc MSC2 as MJPEG
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Michael Niedermayer
62a1e0035a
avformat/mlvdec: Use AVFormatContext->open_cb()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
a228f7d5e5
avformat/avformat: slightly more verbose documentation for open_cb()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago