1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libavformat
Vivekanand 5af0ada442 avformat/allformats: Making av_register_all() thread-safe.
When multiple threads tries to call av_register_all(), the first thread sets
initialized to 1 and do the register process. At the same time, other thread might
also call av_register_all(), which returns immediately because initialized is set to 1
(even when it has not completed registering codecs). We can avoid this problem
if we set initialised to 1 while exiting from function.

Github: Closes #196
(cherry picked from commit b092ee701f)

Conflicts:

	libavformat/allformats.c
2016-08-15 18:54:34 +02:00
..
4xm.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
a64.c
aacdec.c
aadec.c avformat/aa: use correct format specifier in sscanf 2015-08-25 12:44:20 +00:00
ac3dec.c avformat: increase first_frames threshold for mp3,ac3 2015-07-18 04:52:49 +02:00
act.c
adp.c
adtsenc.c
adxdec.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
aea.c
afc.c
aiff.h
aiffdec.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
aiffenc.c lavf/aiffenc: Clarify an error message. 2015-09-05 10:53:55 +02:00
allformats.c avformat/allformats: Making av_register_all() thread-safe. 2016-08-15 18:54:34 +02:00
amr.c
anm.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
apc.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
ape.c
apetag.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
apetag.h
apngdec.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
apngenc.c
aqtitledec.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
asfdec_o.c asfdec_o: check for too small size in asf_read_unknown 2016-01-27 23:45:45 +01:00
asfenc.c avformat/asfenc: Check pts 2016-01-15 12:30:40 +01:00
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
async.c avformat/async: replace strerror with av_err2str 2015-09-06 11:56:54 +02:00
au.c
audiointerleave.c
audiointerleave.h
avc.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
avc.h
avformat.h avformat: Document urls a bit 2016-01-28 15:53:54 +01:00
avformatres.rc
avi.h
avidec.c avformat/avidec: Detect index with too short entries 2016-08-15 18:54:34 +02:00
avienc.c Replace av_dlog with ff_dlog. 2015-08-18 10:24:01 -04:00
avio_internal.h
avio.c avformat/avio: Limit url option parsing to the documented cases 2016-01-28 15:53:54 +01:00
avio.h lavf/avio: add avio_accept and avio_handshake 2015-08-01 00:58:31 +02:00
aviobuf.c avformat/aviobuf: Fix end check in put_str16() 2016-01-15 12:30:40 +01:00
avisynth.c avisynth: fix setting stream timebase 2015-08-13 01:20:16 +02:00
avlanguage.c
avlanguage.h
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
bintext.c
bit.c
bluray.c
bmv.c
boadec.c
brstm.c brstm: fix missing closing brace 2016-01-27 23:45:44 +01:00
c93.c
cache.c avformat/cache: Fix memleak of tree entries 2016-04-27 04:40:11 +02:00
caf.c
caf.h
cafdec.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c
cinedec.c
concat.c avformat/concat: Check protocol prefix 2016-01-28 15:53:54 +01:00
concatdec.c avformat/concatdec: set safe mode to enabled instead of auto 2016-04-27 04:40:11 +02:00
crcenc.c
crypto.c
cutils.c
dashenc.c
data_uri.c
dauddec.c
daudenc.c
dfa.c
diracdec.c
dnxhddec.c lavf/dnxhd: Autodetect more valid files. 2015-08-25 12:07:38 +02:00
dsfdec.c
dsicin.c
dss.c
dtsdec.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
dtshddec.c
dump.c avformat/dump: Fix integer overflow in av_dump_format() 2015-12-06 02:51:27 +01:00
dv.c lavf/dv: Do not return EIO for every error (like EOF). 2015-09-02 00:59:10 +02:00
dv.h
dvbsub.c
dvenc.c
dxa.c
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c avformat/ffmdec: Check pix_fmt 2016-04-28 23:26:45 +02:00
ffmenc.c Merge commit '7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615' 2015-07-27 22:10:35 +02:00
ffmeta.h
ffmetadec.c
ffmetaenc.c
file_open.c
file.c avformat/file: Fix copy and paste error 2015-09-03 12:42:40 +02:00
filmstripdec.c
filmstripenc.c
flac_picture.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
flac_picture.h
flacdec.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
flvenc.c
format.c
framecrcenc.c
framehash.c
frmdec.c
ftp.c avformat/ftp: use correct enum type 2015-08-20 12:22:50 +02:00
g722.c
g723_1.c
g729dec.c
gif.c
gifdec.c avformat/gifdec: correct r_frame_rate for single frame gifs 2015-08-10 04:45:27 +02:00
golomb_tab.c
gopher.c
gsmdec.c
gxf.c
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hdsenc.c
hevc.c avformat/hevc: Check num_long_term_ref_pics_sps to avoid potentially long loops 2015-08-24 13:04:38 +02:00
hevc.h
hevcdec.c
hls.c avformat/hls: Even stricter URL checks 2016-01-15 15:49:35 +01:00
hlsenc.c avformat/hlsenc: Check the return code of avformat_write_header() 2015-12-13 02:59:32 +01:00
hlsproto.c
hnm.c
http.c lavf/http: Remove superfluous parenthesis. 2015-09-03 20:11:29 +02:00
http.h
httpauth.c avformat/httpauth: Add space after commas in HTTP/RTSP auth header 2015-10-08 13:15:42 +02:00
httpauth.h
icecast.c
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c
img2.h avformat/img2dec: do not interpret the filename by default if a IO context has been opened 2016-01-28 15:53:54 +01:00
img2dec.c avformat/img2dec: Use AVOpenCallback 2016-01-28 15:53:54 +01:00
img2enc.c
ingenientdec.c
internal.h avformat: Remove use of AVFrac and AVStream->pts 2015-08-23 04:16:02 +02:00
ipmovie.c avformat/ipmovie: put video decoding_map_size into packet and use it in decoder 2016-01-27 23:28:49 +01:00
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
isom.h mov: Add an option to toggle dref opening 2016-01-28 15:53:53 +01:00
iss.c
iv8.c
ivfdec.c
ivfenc.c avformat/ivfenc: fix division by zero 2016-01-15 12:30:40 +01:00
jacosubdec.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
jacosubenc.c
jvdec.c jvdec: avoid unsigned overflow in comparison 2015-11-07 14:10:41 +01:00
latmenc.c avformat/latmenc: Add assert to avoid coverity warning 2015-09-03 11:28:29 +02:00
libavformat.v
libgme.c
libmodplug.c
libnut.c
libquvi.c avformat/libquvi: Set default demuxer and protocol limitations 2016-01-28 15:53:54 +01:00
librtmp.c librtmp: Avoid an infiniloop setting connection arguments 2016-07-26 12:08:58 -07:00
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
Makefile Add support for Audible AA files 2015-08-21 04:24:58 +00:00
matroska.c
matroska.h
matroskadec.c avformat/matroskadec: Check subtitle stream before dereferencing 2015-11-26 16:06:39 +01:00
matroskaenc.c avformat/matroskaenc: Check codecdelay before use 2015-12-09 18:27:54 +01:00
md5enc.c
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mkvtimestamp_v2.c
mlvdec.c mlvdec: check that index_entries exist 2015-12-20 02:42:13 +01:00
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c
mov_chan.c
mov_chan.h
mov.c lavf/mov: downgrade sidx errors to non-fatal warnings; fixes trac #5216 2016-04-27 04:40:11 +02:00
movenc.c Merge commit '26ac22e5e7394346e9d59f800e7d4e91f4518d33' 2015-08-18 08:50:22 +02:00
movenc.h Merge commit '26ac22e5e7394346e9d59f800e7d4e91f4518d33' 2015-08-18 08:50:22 +02:00
movenchint.c
mp3dec.c avformat/mp3dec: improve junk skipping heuristic 2015-10-20 12:35:43 +02:00
mp3enc.c
mpc8.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
mpc.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
mpeg.c avformat/vobsub: compare correct packet stream IDs 2015-10-08 15:21:45 +02:00
mpeg.h
mpegenc.c lavf/mpegenc: provide better feedback in case of invalid media type 2015-08-27 18:07:43 +02:00
mpegts.c avformat/mpegts: Only start probing data streams within probe_packets 2015-11-05 18:23:11 +01:00
mpegts.h
mpegtsenc.c mpegencts: Fix overflow in cbr mode period calculations 2015-12-06 02:51:27 +01:00
mpegvideodec.c
mpjpeg.c
mpjpegdec.c
mpl2dec.c
mpsubdec.c
msnwc_tcp.c
mtv.c
mux.c mux: warn if the encoders bitexact flag is set, but not the muxers 2015-08-30 23:30:09 +02:00
mvdec.c
mvi.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
mxf.c lavf/mxf: Support video essence container uls for vc1. 2015-09-05 00:09:13 +02:00
mxf.h lavf/mxfdec: Set codec_tag AVup for Avid 1:1 input. 2015-07-22 10:23:18 +02:00
mxfdec.c mxfdec: check edit_rate also for physical_track 2015-11-26 01:35:46 +01:00
mxfenc.c avformat/mxfenc: Do not crash if there is no packet in the first stream 2015-12-13 17:27:04 +01:00
mxg.c avformat/mxg: Use memmove() 2015-09-01 22:46:23 +02:00
ncdec.c
network.c lavf/network: split ff_listen_bind into ff_listen and ff_accept 2015-08-01 00:58:31 +02:00
network.h lavf/network: split ff_listen_bind into ff_listen and ff_accept 2015-08-01 00:58:31 +02:00
nistspheredec.c
noproxy-test.c
nsvdec.c
nullenc.c
nut.c
nut.h
nutdec.c nutdec: reject negative value_len in read_sm_data 2015-12-20 13:39:41 +01:00
nutenc.c avformat/nutenc: Omit AV_PKT_DATA_QUALITY_STATS when storing side data. 2015-07-25 18:39:17 +02:00
nuv.c nuv: sanitize negative fps rate 2015-12-20 13:39:45 +01:00
oggdec.c libavformat/oggdec: Free stream private when header parsing fails. 2016-08-15 18:54:34 +02:00
oggdec.h
oggenc.c avformat/oggenc: Check segments_count for headers too 2015-08-27 04:28:21 +02:00
oggparsecelt.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
oggparsedirac.c
oggparseflac.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
oggparseogm.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
oggparseopus.c avformat/oggparseopus: Fix Undefined behavior in oggparseopus.c and libavformat/utils.c 2016-08-15 18:54:34 +02:00
oggparseskeleton.c
oggparsespeex.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
oggparsetheora.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
oggparsevorbis.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
oggparsevp8.c avformat/oggparsevp8: fix pts calculation on pages ending with an invisible frame 2016-07-25 09:59:54 -03:00
oma.c
oma.h
omadec.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
omaenc.c
options_table.h avformat/options_table: Add missing identifier for very strict compliance 2016-08-15 18:54:34 +02:00
options.c
os_support.c
os_support.h
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c
pmpdec.c
psxstr.c
pva.c
pvfdec.c
qcp.c
qtpalette.h
r3d.c
rawdec.c rawdec: fix mjpeg probing buffer size check 2015-07-30 00:06:15 +02:00
rawdec.h
rawenc.c
rawenc.h
rawvideodec.c
rdt.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
rdt.h
realtextdec.c
redspark.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
replaygain.c
replaygain.h
riff.c lavf/riff: Support fourcc AVd1 for dvvideo. 2015-09-05 00:09:06 +02:00
riff.h
riffdec.c avformat/riffdec: Initialize bitrate 2015-12-06 02:51:27 +01:00
riffenc.c
rl2.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
rm.c
rm.h
rmdec.c avformat/rmdec: MLTI with multiple MDPR support 2015-08-14 04:40:00 +02:00
rmenc.c
rmsipr.c
rmsipr.h
rpl.c
rsd.c
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h rtmpproto: use AVHMAC instead of a custom implementation 2015-07-29 22:09:16 +03:00
rtmpcrypt.c rtmpcrypt: Do the xtea decryption in little endian mode 2015-11-26 16:06:39 +01:00
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmphttp.c
rtmppkt.c rtmp: support the AMF_DATE tag 2015-09-01 13:35:37 +02:00
rtmppkt.h
rtmpproto.c rtmpproto: free hmac context properly 2015-07-30 09:26:49 +03:00
rtp.c
rtp.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c
rtpdec_dv.c
rtpdec_formats.h
rtpdec_g726.c
rtpdec_h261.c
rtpdec_h263_rfc2190.c
rtpdec_h263.c
rtpdec_h264.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
rtpdec_hevc.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
rtpdec_ilbc.c
rtpdec_jpeg.c avformat/rtpdec_jpeg: fix low contrast image on low quality setting 2016-04-27 04:40:11 +02:00
rtpdec_latm.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
rtpdec_mpa_robust.c
rtpdec_mpeg4.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
rtpdec_mpeg12.c
rtpdec_mpegts.c
rtpdec_qcelp.c
rtpdec_qdm2.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
rtpdec_qt.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
rtpdec_svq3.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
rtpdec_vp8.c
rtpdec_vp9.c
rtpdec_xiph.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
rtpdec.c
rtpdec.h
rtpenc_aac.c
rtpenc_amr.c
rtpenc_chain.c rtpenc_chain: also copy AVFMT_FLAG_BITEXACT to new AVFormatContext 2015-08-23 23:35:38 +02:00
rtpenc_chain.h
rtpenc_h261.c
rtpenc_h263_rfc2190.c
rtpenc_h263.c
rtpenc_h264_hevc.c
rtpenc_jpeg.c lavf/rtpenc_jpeg: Less strict check for standard Huffman tables. 2015-12-02 14:56:53 +01:00
rtpenc_latm.c
rtpenc_mpegts.c
rtpenc_mpv.c
rtpenc_vp8.c
rtpenc_xiph.c
rtpenc.c avformat/rtpenc: Fix integer overflow in NTP_TO_RTP_FORMAT 2016-04-27 04:40:11 +02:00
rtpenc.h
rtpproto.c
rtpproto.h
rtsp.c rtsp: Allow $ as interleaved packet indicator before a complete response header 2015-10-27 13:40:06 +01:00
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c
sctp.c
sdp.c Merge commit '7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615' 2015-07-27 22:10:35 +02:00
sdr2.c
seek-test.c
segafilm.c
segment.c avformat/segment: atomically update list if possible 2015-08-28 00:09:56 +02:00
sierravmd.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
siff.c
smacker.c avformat/smacker: fix integer overflow with pts_inc 2015-12-06 02:51:27 +01:00
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c
smush.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c
spdifenc.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
srtdec.c avformat/srtdec: make sure we probe a number 2015-10-09 10:56:31 +02:00
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c
subtitles.c
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
swf.c
swf.h
swfdec.c avformat/swfdec: Check return value of init_get_bits8() 2015-09-03 10:20:29 +02:00
swfenc.c
takdec.c Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba' 2015-07-27 23:15:19 +02:00
tcp.c lavf/tcp: increase range for listen and call the underlying socket operations accordingly 2015-08-01 00:58:31 +02:00
tedcaptionsdec.c FF_OPT_TYPE_* -> AV_OPT_TYPE_*. 2015-08-18 11:48:49 -04:00
tee.c lavf/tee: fix side data double free. 2015-12-13 10:14:24 +01:00
thp.c
tiertexseq.c
tls_gnutls.c avformat/tls_gnutls: correct version detection for certificate support 2015-08-13 02:24:37 +02:00
tls_openssl.c
tls_securetransport.c
tls.c
tls.h
tmv.c
tta.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
tty.c
txd.c
udp.c
uncodedframecrcenc.c
unix.c
url-test.c
url.c
url.h lavf/avio: add ffurl_accept and ffurl_handshake 2015-08-01 00:58:31 +02:00
urldecode.c
urldecode.h
utils.c avformat/utils: Check negative bps before shifting in ff_get_pcm_codec_id() 2016-08-15 18:54:34 +02:00
vc1test.c
vc1testenc.c
version.h lavf: Remove probesize32 and max_analyze_duration32 on version bump. 2015-09-01 09:19:49 +02:00
vivo.c
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vplayerdec.c
vqf.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
w64.c
w64.h
wavdec.c avformat/wavdec: Detect wrongly interpreted specification about the sample value in the fact chunk 2015-08-13 12:38:31 +02:00
wavenc.c
wc3movie.c
webm_chunk.c
webmdashenc.c avformat/webmdashenc: fix uninitialized variable 2015-08-20 21:03:08 +02:00
webpenc.c
webvttdec.c
webvttenc.c lavf/webvttenc: Require webvtt file to contain exactly one WebVTT stream. 2015-10-08 13:15:42 +02:00
westwood_aud.c
westwood_vqa.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
wtv_common.c
wtv.h
wtvdec.c
wtvenc.c
wv.c
wv.h
wvdec.c
wvenc.c
xa.c
xmv.c avformat/xmv: Discard remainder of packet on error 2015-11-06 02:55:48 +01:00
xwma.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
yop.c lavc: Consistently prefix input buffer defines 2015-07-27 15:24:59 +01:00
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c