Pavel Nikiforov
413c842a69
avformat/udp: Add a delay between packets for streaming to clients with short buffer
...
This commit enables sending UDP packets in a background thread with specified delay.
When sending packets without a delay some devices with small RX buffer
( MAG200 STB, for example) will drop tail packets in bursts causing
decoding errors.
To use it specify "fifo_size" with "packet_gap" .
The output url will looks like udp://xxx:yyy?fifo_size=<output fifo
size>&packet_gap=<delay in usecs>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4c82ccad2b
avformat/mov: Avoid "Unintended sign extension"
...
Fixes CID1361957
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
566be4f9e8
avformat/matroskaenc: reindent after last commit
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
2062d51275
avformat/matroskaenc: wrap par->format use as sample format under codec_type == AVMEDIA_TYPE_AUDI
...
Fixes CID1361946
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
9d5894b239
avformat/avienc: Fix memleaks on errors
...
Fixes CID1361951
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
ea88dc3e8e
avformat/avienc: Rename reshuffles return variable to ensure it is not mixed up
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
4da4bfcdc9
avformat: add MTAF demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Stefano Sabatini
4b38df82c2
lavf/mpegts: add ID3 entry to the REGD_types array
...
This allows to recognize ID3 packets from their corresponding descriptor
tag.
9 years ago
Stefano Sabatini
1ab8e03a45
lavf/mpegtsenc: set metadata stream type and write descriptor for ID3 packets
...
This allow to remux data packets which are then recognized as ID3 packets.
9 years ago
Paul B Mahol
7494b49780
avformat/iff: parse DPAN chunk
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
James Almer
e34e7a575e
avformat/dtshddec: move data_start outside of DTSHDDemuxContext
...
It's only used in dtshd_read_header()
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
d08f2c172f
avformat/avidec: Detect index with too short entries
...
Fixes Ticket5498
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
936751b652
avformat/avio: Fix null pointer dereference in case of memleak
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Yong Lei
7bacf74536
avformat/avio: fix memory leak in url_find_protocol
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Chris Cunningham
2875745d35
avformat/utils: Check negative bps before shifting in ff_get_pcm_codec_id()
...
Fixes: undefined shift.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
60c2e38dcb
avformat/dtshddec: implement AUPR_HDR chunk parsing
...
Use it to get stream duration, sample rate, channel count and initial padding
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
ab3c04c458
avformat/dtshddec: parse chunks stored after audio data
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
72e33eec3a
avcodec/iff: add support for ANIMs with keyframes and concatenated ANIMs
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
635b2ec5f2
avformat/utils: Do not compute the bitrate from duration == 0
...
Fixes division by 0 in fate-acodec-ra144
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
5afecff1ef
avformat/adxdec: set bit_rate, fixes duration calculation
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Peter Ross
86e493a6ff
avcodec: add Direct Stream Transfer (DST) decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
James Almer
8ba257bac6
avformat/Makefile: fix avlanguage dependencies
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Tobias Rapp
77d1e88cf5
avformat/dump.c: fix mixed log levels
...
Previously a partial log message without newline was printed in case of
loglevel=warning.
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
cb928fc448
lavc: add IFF ANIM decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Chris Cunningham
542f725964
libavformat/oggdec: Free stream private when header parsing fails.
...
Leaking this private structure opens up the possibility that it may
be re-used when parsing later packets in the stream. This is
problematic if the later packets are not the same codec type (e.g.
private allocated during Vorbis parsing, but later packets are Opus
and the private is assumed to be the oggopus_private type in
opus_header()).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
ea791c080d
avformat/utils: Check bps before using it in a shift in ff_get_pcm_codec_id()
...
Fixes undefined shift
Fixes: usan_shift
Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
8efaee3710
avformat/oggparseopus: Check that granule pos is within the supported range
...
Larger values would imply file durations of astronomic proportions and cause
overflows
Fixes integer overflow
Fixes: usan_int64_overflow
Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Jan Sebechlebsky
1bc83f6ea8
avformat/tee: Use ref instead copy in write_packet
...
Replace av_copy_packet and deprecated av_dup_packet by
creating reference using av_packet_ref.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Jan Sebechlebsky
a3c877aca7
avformat/tee: Fix TeeSlave.bsfs pointer array size
...
TeeSlave.bsfs is array of pointers to AVBitStreamFilterContext,
so element size should be really size of a pointer, not size
of TeeSlave structure.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
compn
1e109bbbf1
riff: add comment for g721,g723 codec tags
...
Signed-off-by: Piotr Bandurski <ami_stuff@o2.pl>
9 years ago
Piotr Bandurski
e601e078e9
avformat/riff: add M102 FourCC
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
5621da4996
avformat/riff: add M101
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
e3df56f5b4
avformat/dtsdec: reduce the scope of crctab
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
foo86
bb7c558070
avformat/dtsdec: detect core-less streams
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
fe483ac428
avformat/mpegtsenc: fix usage of AVStream.codec
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
03e8c1b843
avformat/h264dec: Avoid get_ue_golomb_31( ) due to ff_ prefixed table from golomb.c
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
824906a541
avformat/utils: Do not detect video codecs when audio is expected
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
3646ef6f7c
avformat/h264dec: Check pps_id/sps_id fields from parameter sets
...
Fixes a misdetection in wav.detected.as.h264.error.wav
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
smallishzulu
77a7ff8f05
lavf/mpegtsenc: Define service_type "HEVC digital television service".
...
Fixes ticket #5455 .
9 years ago
Thomas Volkert
f591b7b526
rtpenc: packetizer for VC-2 HQ RTP payload format (draft v1)
9 years ago
Carl Eugen Hoyos
fd0f1442eb
lavf/mpegtsenc: Fix stream_type for low sample rate MP2/MP3.
9 years ago
Carl Eugen Hoyos
80d14de52d
lavf/mpegts: Add E-AC3 registered stream specifier "EAC3".
...
Related to ticket #5501 .
9 years ago
Michael Niedermayer
dc34fa6a9e
avformat/riff: add M702
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
11db7eee9b
avformat/options_table: Add missing identifier for very strict compliance
...
Fixes Ticket5443
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
25482d5c42
avformat/wsddec: set bit_rate, fixes duration estimation
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
423a6a0993
avformat/dsfdec: set bit_rate, fixes duration estimation
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Carl Eugen Hoyos
88a849c714
lavf/mpegts: Return small probe score for very short transport streams.
...
Fixes Debian bug 823098.
9 years ago
Michael Niedermayer
9a499e0ae7
avformat/riff: add m704
...
(Ticket 2616)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
675cfb2f86
avformat/iff: fix deadlock in parsing dsd chunks
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
d171cd076f
avformat/dsfdec: check if number of channels is <= 0
...
Fixes FPE bellow.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago