ffmpeg/libavformat
Aman Gupta 91a565e20f avformat/http: fix chunked response w/ multiple_requests=1
Currently if you use the multiple_requests=1 option and try to
receive a chunked-encoded response, http_buf_read() will hang forever.

After this patch, EOF is emulated once a 0-byte final chunk is
received by setting a new flag. This flag is reset in ff_http_do_new_request(),
which is used to make additional requests on the open socket.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Aman Gupta <aman@tmm1.net>
2017-11-14 07:36:51 -08:00
..
tests movenc-test: fix potential uninitialized read 2017-11-13 20:33:10 +01:00
.gitignore
3dostr.c
4xm.c
Makefile aptx: add raw muxer and demuxer for aptX 2017-11-10 21:32:06 +00:00
a64.c
aacdec.c
aadec.c
ac3dec.c avformat/ac3dec: Check buf2 before adding 16 in ac3_eac3_probe() 2017-10-28 20:24:04 +02:00
acm.c
act.c
adp.c lavf/adp: Fix the probe function on systems with signed char. 2017-10-09 02:57:48 +02:00
ads.c
adtsenc.c Merge commit '831018b0bbe26a603802a9022472f714a59293be' 2017-10-30 17:47:21 -03:00
adxdec.c
aea.c
afc.c
aiff.h
aiffdec.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
aiffenc.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
aixdec.c
allformats.c aptx: add raw muxer and demuxer for aptX 2017-11-10 21:32:06 +00:00
amr.c lavf/amr: Do not set codec_tag for raw amr_nb and raw amr_wb. 2017-11-06 13:36:40 +01:00
anm.c
apc.c
ape.c
apetag.c
apetag.h
apngdec.c
apngenc.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
aptxdec.c aptx: add raw muxer and demuxer for aptX 2017-11-10 21:32:06 +00:00
aqtitledec.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
asfdec_o.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
asfenc.c
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
async.c
au.c
audiointerleave.c
audiointerleave.h
avc.c
avc.h
avformat.h avformat/utils: Look at the first 3 frames if timestamps indicate frame reorder but decoder delay does not 2017-11-11 14:15:15 +01:00
avformatres.rc
avi.h
avidec.c avcodec/exif: remove GetByteContext usage from avpriv_exif_decode_ifd() 2017-10-26 00:45:49 -03:00
avienc.c
avio.c lavf/avio: Print the https warning also for missing tls protocol. 2017-10-23 11:48:17 +02:00
avio.h lavf/avio: temporarily accept 0 as EOF. 2017-10-29 19:40:52 +02:00
avio_internal.h
aviobuf.c lavf/aviobuf: return EINVAL when reading from a write-only context. 2017-10-29 19:40:52 +02:00
avisynth.c
avlanguage.c
avlanguage.h
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c
bintext.c
bit.c lavf/bit: Fix the G.729 bit auto-detection. 2017-09-30 20:41:52 +02:00
bluray.c
bmv.c
boadec.c
brstm.c
c93.c
cache.c libavformat: not treat 0 as EOF 2017-10-19 22:07:21 +02:00
caf.c lavf/caf: Support demuxing Opus. 2017-09-20 03:31:48 +02:00
caf.h
cafdec.c avformat/cafdec: reject multichannel Opus streams 2017-09-19 23:06:42 -03:00
cafenc.c lavf/cafenc: Only allow mono and stereo for Opus. 2017-10-17 23:00:07 +02:00
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c
concat.c libavformat: not treat 0 as EOF 2017-10-19 22:07:21 +02:00
concatdec.c
crcenc.c
crypto.c
cutils.c
dash.c
dash.h
dashdec.c lavf/dashdec: Fix several memleaks. 2017-11-12 22:20:22 +08:00
dashenc.c Merge commit '4723c6226aa1ece4099338cc9b38a9cef4fa4846' 2017-11-12 00:15:57 -03:00
data_uri.c
dauddec.c
daudenc.c
dcstr.c
dfa.c
diracdec.c
dnxhddec.c
dsfdec.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
dsicin.c
dss.c
dtsdec.c
dtshddec.c
dump.c
dv.c
dv.h
dvbsub.c
dvbtxt.c
dvenc.c
dxa.c
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c
ffmenc.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
fifo.c
file.c
file_open.c
filmstripdec.c
filmstripenc.c
fitsdec.c
fitsenc.c avformat/fitsenc: validate input pixel format 2017-11-13 20:33:10 +01:00
flac_picture.c
flac_picture.h
flacdec.c
flacenc.c
flacenc.h
flacenc_header.c
flic.c
flv.h
flvdec.c Merge commit '279e3aaa14daba6b7a37d75f3fb6e29c732d123f' 2017-10-28 15:29:23 -03:00
flvenc.c
format.c
framecrcenc.c
framehash.c
frmdec.c
fsb.c
ftp.c
g722.c
g723_1.c
g726.c
g729dec.c
gdv.c
genh.c
gif.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
gifdec.c
golomb_tab.c
gopher.c
gsmdec.c
gxf.c
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hashenc.c
hdsenc.c
hevc.c hevc: Improve stream constraint values in common header 2017-10-17 20:56:29 +01:00
hevc.h
hevcdec.c
hls.c Merge commit 'fd9212f2edfe9b107c3c08ba2df5fd2cba5ab9e3' 2017-09-26 16:02:40 -03:00
hlsenc.c avformat/hlsenc: write fmp4 init header after first AV frame 2017-11-14 10:31:26 +08:00
hlsproto.c
hnm.c
http.c avformat/http: fix chunked response w/ multiple_requests=1 2017-11-14 07:36:51 -08:00
http.h
httpauth.c
httpauth.h
icecast.c
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
id3v2.h avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
ilbc.c
img2.c
img2.h
img2_alias_pix.c
img2_brender_pix.c
img2dec.c lavf/img2dec: Auto-detect svg images. 2017-10-07 03:42:00 +02:00
img2enc.c avformat/img2enc: add frame_pts option for make output filename 2017-11-13 10:52:01 +08:00
ingenientdec.c
internal.h avformat: move priv_pts from AVStream to an internal struct 2017-11-07 23:20:50 -03:00
ipmovie.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c libavformat : add mov dataformat tag for HapAlphaOnly and HapQAlpha 2017-09-24 21:54:13 +02:00
isom.h Merge commit '604fbb3132e88727e496c96c92cfe02748c25a1a' 2017-10-26 15:21:59 -03:00
iss.c
iv8.c
ivfdec.c
ivfenc.c
jacosubdec.c
jacosubenc.c
jvdec.c
latmenc.c Merge commit '831018b0bbe26a603802a9022472f714a59293be' 2017-10-30 17:47:21 -03:00
libavformat.v avformat: Drop deprecated feof() AVIO fuction 2017-10-21 22:08:08 -03:00
libgme.c
libmodplug.c
libopenmpt.c avformat/libopenmpt: Query duration and metadata after selecting subsong 2017-09-24 15:54:38 +01:00
librtmp.c
libsmbclient.c
libssh.c
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
lvfdec.c
lxfdec.c
m4vdec.c
matroska.c
matroska.h
matroskadec.c Merge commit '55fe72a841ba306370e68e86c88f34b4456aa4dd' 2017-11-12 00:46:52 -03:00
matroskaenc.c Merge commit '827a05eaa9482e9ac2a17f7f2e42ead07c1d7574' 2017-10-21 13:19:36 -03:00
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mj2kdec.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c
mov.c lavf/mov.c: Parse upto 2 keyframes after the edit list end in mov_fix_index. 2017-11-11 14:15:15 +01:00
mov_chan.c
mov_chan.h
mov_esds.c Merge commit '604fbb3132e88727e496c96c92cfe02748c25a1a' 2017-10-26 15:21:59 -03:00
movenc.c avformat/movenc: let avpriv_ac3_parse_header() allocate the AC3HeaderInfo struct 2017-11-01 11:55:13 -03:00
movenc.h movenc: Add an option for enabling negative CTS offsets 2017-09-28 18:15:45 +02:00
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c avformat/mp3dec: Fix definition of MIDDLE_BITS 2017-10-04 02:16:11 +02:00
mp3enc.c avformat/mp3enc: flush buffered packets if referencing fails 2017-10-06 21:59:11 -03:00
mpc.c
mpc8.c
mpeg.c avformat/mpeg: zero initialize idx_pkt 2017-09-23 19:37:21 -03:00
mpeg.h
mpegenc.c
mpegts.c lavf/mpegts: Consider stream_type 0x0f just a hint towards AAC. 2017-09-20 02:20:32 +02:00
mpegts.h
mpegtsenc.c
mpegvideodec.c
mpjpeg.c
mpjpegdec.c
mpl2dec.c
mpsubdec.c
msf.c
msnwc_tcp.c
mtaf.c
mtv.c
musx.c
mux.c avformat: move priv_pts from AVStream to an internal struct 2017-11-07 23:20:50 -03:00
mvdec.c avformat/mvdec: check for EOF 2017-11-05 10:42:07 +01:00
mvi.c
mxf.c
mxf.h
mxfdec.c lavf/mxfdec: Search all components of material track for source package. 2017-10-03 23:29:20 +02:00
mxfenc.c avformat/mxfenc: Fix labels for IEC PAL DV 420 2017-10-03 18:34:37 +02:00
mxg.c
ncdec.c
network.c Merge commit '61cec5adaacb358783c18aa07362f15824c1b274' 2017-11-01 16:52:05 -03:00
network.h
nistspheredec.c
nsvdec.c
nullenc.c
nut.c
nut.h
nutdec.c
nutenc.c
nuv.c
oggdec.c
oggdec.h
oggenc.c
oggparsecelt.c
oggparsedaala.c
oggparsedirac.c
oggparseflac.c
oggparseogm.c
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c
oggparsetheora.c
oggparsevorbis.c
oggparsevp8.c
oma.c
oma.h
omadec.c avformat: fix id3 chapters 2017-10-05 17:10:23 +02:00
omaenc.c
options.c
options_table.h avformat: remove use of deprecated AVFMT_FLAG_KEEP_SIDE_DATA flag 2017-10-29 00:09:52 -03:00
os_support.c Merge commit '2ca759657bcda328acc312e5882a940333a3e268' 2017-11-01 14:01:54 -03:00
os_support.h Merge commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e' 2017-11-11 10:22:11 -03:00
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c
pmpdec.c
prompeg.c
protocols.c Merge commit '61cec5adaacb358783c18aa07362f15824c1b274' 2017-11-01 16:52:05 -03:00
psxstr.c
pva.c
pvfdec.c
qcp.c
qtpalette.c
qtpalette.h
r3d.c
rawdec.c
rawdec.h
rawenc.c aptx: add raw muxer and demuxer for aptX 2017-11-10 21:32:06 +00:00
rawenc.h
rawutils.c
rawvideodec.c
rdt.c
rdt.h
realtextdec.c
redspark.c
replaygain.c
replaygain.h
riff.c
riff.h Merge commit '0539d84d985e811e5989ef27c13f7e2dda0f9b89' 2017-09-28 00:28:38 -03:00
riffdec.c Merge commit '0539d84d985e811e5989ef27c13f7e2dda0f9b89' 2017-09-28 00:28:38 -03:00
riffenc.c
rl2.c
rm.c
rm.h
rmdec.c Merge commit '95ce02b35d3d1bb16111031df1d82a6e4d894d36' 2017-11-07 19:17:26 -03:00
rmenc.c
rmsipr.c
rmsipr.h
rpl.c
rsd.c
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmpdigest.c Merge commit 'b864230c49089b087eef56988a3d6a784f6f9827' 2017-10-21 13:32:13 -03:00
rtmphttp.c
rtmppkt.c Merge commit 'a1a143adb0fd11c474221431417cff25db7d920f' 2017-09-26 18:29:05 -03:00
rtmppkt.h Merge commit 'a1a143adb0fd11c474221431417cff25db7d920f' 2017-09-26 18:29:05 -03:00
rtmpproto.c Merge commit 'b864230c49089b087eef56988a3d6a784f6f9827' 2017-10-21 13:32:13 -03:00
rtp.c
rtp.h
rtpdec.c
rtpdec.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c avformat/rtpdec_asf: free the buffer pointed by the AVIOContext 2017-11-06 16:25:32 -03:00
rtpdec_dv.c
rtpdec_formats.h
rtpdec_g726.c
rtpdec_h261.c
rtpdec_h263.c
rtpdec_h263_rfc2190.c
rtpdec_h264.c
rtpdec_hevc.c
rtpdec_ilbc.c
rtpdec_jpeg.c
rtpdec_latm.c
rtpdec_mpa_robust.c
rtpdec_mpeg4.c
rtpdec_mpeg12.c
rtpdec_mpegts.c
rtpdec_qcelp.c
rtpdec_qdm2.c
rtpdec_qt.c
rtpdec_rfc4175.c
rtpdec_svq3.c
rtpdec_vc2hq.c
rtpdec_vp8.c
rtpdec_vp9.c
rtpdec_xiph.c
rtpenc.c lavf/rtpenc: Add support for 24 bit pcm encoding as defined by RFC 3190. 2017-10-29 15:30:02 +01:00
rtpenc.h
rtpenc_aac.c
rtpenc_amr.c
rtpenc_chain.c
rtpenc_chain.h
rtpenc_h261.c
rtpenc_h263.c
rtpenc_h263_rfc2190.c
rtpenc_h264_hevc.c
rtpenc_jpeg.c
rtpenc_latm.c
rtpenc_mpegts.c
rtpenc_mpv.c
rtpenc_vc2hq.c
rtpenc_vp8.c
rtpenc_vp9.c
rtpenc_xiph.c
rtpproto.c
rtpproto.h
rtsp.c rtsp: Move message parsing to a separate function 2017-10-06 00:22:10 -03:00
rtsp.h Merge commit '79331df362fb05a0d04ca9489c87e5b80077a3f4' 2017-10-03 23:08:06 -03:00
rtspcodes.h
rtspdec.c
rtspenc.c
s337m.c
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c
sccdec.c
sccenc.c
sctp.c
sdp.c lavf/rtpenc: Add support for 24 bit pcm encoding as defined by RFC 3190. 2017-10-29 15:30:02 +01:00
sdr2.c
sdsdec.c
sdxdec.c
segafilm.c
segment.c Fix several typos 2017-09-21 16:17:02 -08:00
shortendec.c
sierravmd.c
siff.c
smacker.c smacker: fix integer overflow with pts_inc 2017-09-24 12:58:42 +02:00
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c Remove some unneeded casts of bit_rate. 2017-09-22 01:33:22 +02:00
smush.c
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c Merge commit 'b5f19f7478492307e4b4763aeac3180faf50e17f' 2017-10-30 18:56:45 -03:00
spdifenc.c Merge commit 'b5f19f7478492307e4b4763aeac3180faf50e17f' 2017-10-30 18:56:45 -03:00
srtdec.c
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c
subtitles.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
supenc.c
svag.c
swf.c
swf.h
swfdec.c
swfenc.c
takdec.c avcodec/tak: remove GetBitContext usage from avpriv_tak_parse_streaminfo() 2017-10-26 00:26:08 -03:00
tcp.c
tedcaptionsdec.c
tee.c
tee_common.c
tee_common.h
teeproto.c
thp.c
tiertexseq.c
tls.c
tls.h Merge commit '61cec5adaacb358783c18aa07362f15824c1b274' 2017-11-01 16:52:05 -03:00
tls_gnutls.c Merge commit 'eb061ad6fd0e3cea7cf7cfbff0749bc90dd7d888' 2017-11-02 23:39:28 -03:00
tls_openssl.c Merge commit '0671eb2346c17e8fb13784cf90ce416661fdea1c' 2017-11-02 23:27:53 -03:00
tls_schannel.c Merge commit '61cec5adaacb358783c18aa07362f15824c1b274' 2017-11-01 16:52:05 -03:00
tls_securetransport.c This fixes a deadlock while reading a chunked https response, if 2017-11-13 15:04:55 -06:00
tmv.c
tta.c
ttaenc.c
tty.c
txd.c
ty.c avformat/ty: check cur_chunk_pos before using it 2017-11-12 22:58:15 +01:00
udp.c
uncodedframecrcenc.c
unix.c
url.c
url.h
urldecode.c
urldecode.h
utils.c avformat/utils: Look at the first 3 frames if timestamps indicate frame reorder but decoder delay does not 2017-11-11 14:15:15 +01:00
v210.c
vag.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h avformat: add TiVo ty demuxer 2017-11-06 18:20:29 +01:00
vivo.c
voc.c
voc.h
voc_packet.c
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vpcc.c
vpcc.h
vpk.c
vplayerdec.c
vqf.c Remove some unneeded casts of bit_rate. 2017-09-22 01:33:22 +02:00
w64.c
w64.h
wavdec.c avcodec/wmaprodec: support multichannel XMA stream configurations 2017-10-09 17:06:19 +02:00
wavenc.c avformat/wavenc: skip writing incorrect peak-of-peaks position value 2017-10-26 08:29:41 +02:00
wc3movie.c
webm_chunk.c
webmdashenc.c
webpenc.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_vqa.c
wsddec.c
wtv.h
wtv_common.c
wtvdec.c libavformat/wtvdec: return AVERROR_EOF on EOF 2017-10-13 17:23:54 +02:00
wtvenc.c avformat: replace all uses of av_copy_packet() 2017-09-25 21:26:38 -03:00
wv.c
wv.h
wvdec.c
wvedec.c
wvenc.c
xa.c
xmv.c
xvag.c
xwma.c
yop.c
yuv4mpeg.h
yuv4mpegdec.c avformat/yuv4mpeg: add gray9/10/12 support 2017-10-26 18:32:28 +02:00
yuv4mpegenc.c avformat/yuv4mpeg: add gray9/10/12 support 2017-10-26 18:32:28 +02:00