Paul B Mahol
84efdabc94
avcodec/utvideodec: add support for UQRG and UQRA formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-06-12 01:07:23 +02:00
Ivan
c1f57e2f91
libavformat/flvenc: support for codec configuration change mid stream
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-11 10:54:43 +02:00
Ivan
52985768af
libavformat/flvenc: refactoring: extracted method for writing codec headers
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-11 10:54:43 +02:00
Michael Niedermayer
5fd73948bb
avformat/mp3dec: Increase probe score slightly when the whole data from begin to end is mp3
...
Improves score for 1000-frames-of-noise-encoded-with-lame.mp3 without file extension
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-11 02:58:00 +02:00
Michael Niedermayer
6826f16e4a
avformat/utils: Do not overwrite, but use sample_fmt from context
...
Fixes Ticket 3759
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-09 19:32:56 +02:00
Michael Niedermayer
218bb8b3f3
avformat/utils: Open decoder even if there are no packets if parameters are missing
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-09 19:32:56 +02:00
Michael Niedermayer
2a70e78a28
avformat/utils: Initialize st in loop
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-09 19:32:56 +02:00
Michael Niedermayer
4888932c4d
avformat: Fix max value of AV_OPT_TYPE_VIDEO_RATE
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-09 10:35:13 +02:00
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>
2016-06-07 20:32:25 -03:00
Paul B Mahol
fdf832a986
avcodec: add BitJazz SheerVideo decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-06-07 21:38:49 +02:00
Michael Niedermayer
e01b19dece
avformat/mpegts: Fix probing of mpegts with invalid ASC
...
Fixes Ticket5566
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-07 15:46:08 +02:00
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>
2016-06-07 14:08:13 +02:00
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>
2016-06-06 21:56:51 +02:00
Michael Niedermayer
b5bc436ebc
avformat/matroskadec: Fix rounding error with codec_delay
...
Fixes Ticket5509
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-06 05:01:34 +02:00
Michael Niedermayer
5a8b41b4a7
avformat/movenc: Skip unsupported video tracks in timecode generation
...
Fixes Ticket5414
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-06 01:30:48 +02:00
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
2016-06-05 23:48:12 +02:00
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>
2016-06-05 16:35:40 +02:00
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>
2016-06-04 21:56:34 +02:00
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>
2016-06-03 23:09:19 +02:00
Michael Niedermayer
fc07972582
avformat/dump: Use codec and QP limits from AVCodecContext
...
Fixes regression
Fixes Ticket5421
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-03 22:26:00 +02:00
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.
2016-06-03 12:46:02 +02:00
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>
2016-06-03 12:18:57 +02:00
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>
2016-06-02 16:57:49 +02:00
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>
2016-06-02 13:41:04 +02:00
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>
2016-06-01 18:12:45 +02:00
Piotr Bandurski
4c7d3e827c
avformat/isom: add MagicYUV FourCCs
2016-06-01 14:59:06 +02:00
Paul B Mahol
77f9c4b7aa
avocdec: add MagicYUV decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-05-31 22:37:09 +02:00
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>
2016-05-31 00:35:16 +02:00
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>
2016-05-31 00:35:16 +02:00
Mark Reid
d74cc61574
libavformat/movenc: remove unnecessary null check
...
Fixes CID1361955
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-30 02:33:06 +02:00
Michael Niedermayer
cbd19881f7
avformat/udp: Remove unused variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-29 12:35:14 +02:00
Michael Niedermayer
dac030d3aa
avformat/movenc: Fix potential track width/height overflows
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-29 04:42:04 +02:00
Michael Niedermayer
17d320800b
avformat/movenc: Avoid integer overflow
...
Fixes: CID1361947
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-29 03:56:23 +02:00
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>
2016-05-29 00:58:15 +02:00
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>
2016-05-29 00:25:21 +02:00
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>
2016-05-29 00:14:02 +02:00
Carl Eugen Hoyos
a64a030ba0
lavf/mov: Support one more Avid compression id for AVCI50.
...
Reported by forum user lexidata.
2016-05-28 11:57:37 +02:00
Michael Niedermayer
86d703fd55
avformat/movenc: Fix memleak of reshuffled packet
...
Fixes CID1361952
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-28 03:13:14 +02:00
Michael Niedermayer
5db111757c
avformat/movenc: Rename reshuffles return variable to ensure it is not mixed up
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-28 02:55:33 +02:00
Michael Niedermayer
f66ca036bc
avformat/oggparseflac: Fix memleaks in old_flac_header()
...
Fixes CID1361953
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-28 01:22:01 +02:00
Michael Niedermayer
7f5c6ea511
avformat/utils: Fix use of uninitialized variable
...
Fixes CID1361961
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-26 19:04:46 +02:00
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>
2016-05-25 01:39:23 +02:00
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>
2016-05-25 01:39:23 +02:00
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>
2016-05-25 01:39:22 +02:00
Michael Niedermayer
4c82ccad2b
avformat/mov: Avoid "Unintended sign extension"
...
Fixes CID1361957
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-24 04:37:50 +02:00
Michael Niedermayer
566be4f9e8
avformat/matroskaenc: reindent after last commit
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-22 03:22:16 +02:00
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>
2016-05-22 03:22:09 +02:00
Michael Niedermayer
9d5894b239
avformat/avienc: Fix memleaks on errors
...
Fixes CID1361951
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-22 02:14:33 +02:00
Michael Niedermayer
ea88dc3e8e
avformat/avienc: Rename reshuffles return variable to ensure it is not mixed up
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-22 02:14:33 +02:00
Paul B Mahol
4da4bfcdc9
avformat: add MTAF demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-05-21 18:49:45 +02:00