James Almer
49b0246635
avformat/matroskadec: force 48kHz sample rate when rescaling Opus inital padding
...
Mkvtoolnix stores the sample rate of the original stream as reported by the
"OpusHead" stream header instead of 48kHz, the actual sample rate of the Opus
stream.
Ignoring the stored sample rate and forcing 48kHz preserves the correct initial
padding when remuxing such files.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
fdf832a986
avcodec: add BitJazz SheerVideo decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
e01b19dece
avformat/mpegts: Fix probing of mpegts with invalid ASC
...
Fixes Ticket5566
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
a2e6c785ce
avformat/rawdec: Fix avg_framerate for h264
...
The framerate is 25 which is a fixed default and is wrong undo the 1 line
change which caused this regression
Only the avg_frame rate setting is removed
The timebase update is not done as there was a objection (see ML)
Fixes Ticket 5444
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
a5eb70ad95
avformat/mpegts: Do not trust BSSD descriptor, it is sometimes not an S302M stream
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
b5bc436ebc
avformat/matroskadec: Fix rounding error with codec_delay
...
Fixes Ticket5509
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
5a8b41b4a7
avformat/movenc: Skip unsupported video tracks in timecode generation
...
Fixes Ticket5414
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Vivekanand
b092ee701f
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
9 years ago
Michael Niedermayer
2ccf9ae6cc
avformat/format: Print debug info when probe score is increased due to mime type
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
bb3388fd60
avformat/dump: Print tbc value
...
Fixes regression of av_dump_format()
Fixes part of Ticket 5444
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
b28e102875
avformat/version: Add Ticket5421 to list of tickets possibly affected by a major bump
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
fc07972582
avformat/dump: Use codec and QP limits from AVCodecContext
...
Fixes regression
Fixes Ticket5421
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Nicolas George
8b05a7ffe4
lavf/udp: fix dead code.
...
Since d607861
, service can not be NULL, only "0".
An UDP address with neither local port nor address leaves both
service and node to their default value, and POSIX specifies
that they are not allowed to be both NULL; "0" is equivalent
to an unspecified port for all currently known protocols.
Fix CID 1341570.
9 years ago
Thomas Bernard
1f8c0e44cb
avformat/au: Write MetaData in AU Sun audio file header
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
ad72d7d299
avformat: Copy properties from internal context
...
Fixes Ticket5467 "Lossless j2k information no longer shown"
Based on suggestion by Hendrik Leppkes
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4865252c08
avformat/udp: Protect write to circular_buffer_error by mutex
...
This isnt really needed on most platforms but
fixes CID1362183
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
d1efdd54f2
avformat: Document where the AVOption names can be found for the fields of AVFormatContext
...
Missing docs found by: nevcairiel
RFC: should we add support so that the C field names always work as av option names/keys ?
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Piotr Bandurski
4c7d3e827c
avformat/isom: add MagicYUV FourCCs
9 years ago
Paul B Mahol
77f9c4b7aa
avocdec: add MagicYUV decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Marton Balint
0d0b9397d6
avformat/movenc: remove useless if and reindent
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Marton Balint
15005701b5
avformat/movenc: propagate shift_data errors properly
...
The second one is not explicitly needed, as res is not reset, but it is there
for consistency.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Mark Reid
d74cc61574
libavformat/movenc: remove unnecessary null check
...
Fixes CID1361955
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
cbd19881f7
avformat/udp: Remove unused variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
dac030d3aa
avformat/movenc: Fix potential track width/height overflows
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
17d320800b
avformat/movenc: Avoid integer overflow
...
Fixes: CID1361947
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Thomas Guilbert
1a82d2cf8f
avformat/oggparseopus: Fix Undefined behavior in oggparseopus.c and libavformat/utils.c
...
Fixes: usan_granule_overflow
constant type fix by commiter
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
c1ed78a591
avformat/utils: avoid overflow in compute_chapters_end() with huge durations
...
Fixes: usan_granule_overflow
Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
2be3007ed5
avformat/utils: avoid overflow in update_stream_timings() with huge durations
...
Fixes: usan_granule_overflow
Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Carl Eugen Hoyos
a64a030ba0
lavf/mov: Support one more Avid compression id for AVCI50.
...
Reported by forum user lexidata.
9 years ago
Michael Niedermayer
86d703fd55
avformat/movenc: Fix memleak of reshuffled packet
...
Fixes CID1361952
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
5db111757c
avformat/movenc: Rename reshuffles return variable to ensure it is not mixed up
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
f66ca036bc
avformat/oggparseflac: Fix memleaks in old_flac_header()
...
Fixes CID1361953
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
7f5c6ea511
avformat/utils: Fix use of uninitialized variable
...
Fixes CID1361961
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
9591ca704b
avformat/udp: Close the socket after destroying the thread using the socket
...
for send() this cannot work and even for recv() it feels very wrong and hackish
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
9b7a8bddac
avformat/udp: redesign threaded udp tx code
...
This fixes partially completed send()
Avoids holding the mutex during send()
fixes race conditions in error handling
removes copied non thread specific blocking code
Fixes deadlocks on closure
Fixes data loss on closure
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
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
Martin Storsjö
fd4957d9c6
movenc-test: Test write_data_type
...
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
71852a1ba8
matroskaenc: Provide output bytestream markers
...
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
dbbaad32e3
movenc: Provide output bytestream markers for fragmented content
...
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago