Aman Gupta
373b82066c
avformat/mpegts: include stream type for aac
...
this removes the need to probe to discover aac streams
inside mpegts containers, thus speeding up initial playback.
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
afd04058bc
avformat/oggparsevorbis: free base64 encoded data immediately after decoding it
...
It has no use afterwards and freeing it before calling ff_flac_parse_picture()
may help prevent OOM issues on memory constrained scenarios.
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
8b5b756c4d
avformat/oggparsevorbis: use the base64 decode size macro
...
Allocate the memory needed for the decoded data rather than the
encoded data.
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Matthieu Bouron
acfab2dce6
lavf/mov: ignore ctts entries that do not apply to a least one sample
...
Fixes packet pts of samples which contain ctts entries with count <= 0.
9 years ago
Marton Balint
e07b8d68f5
avformat/mux: do not call write_packet with a flush packet if header is not written
...
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Marton Balint
517fe64406
avformat/mux: do not call write_header multiple times if it fails the first time
...
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Michael Niedermayer
3fd0694a11
avformat/version: Change the version bumping comment
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Marton Balint
cc16229d91
avformat/udp: replace packet_gap with bitrate option
...
We haven't had a stable release since the packet_gap addition, so probably it
is worth reworking the option to something that makes more sense to the end
user. Also add burst_bits option to specify maximum length of bit bursts.
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Marton Balint
0a06569487
avformat/udp: do not accumulate packet_gap delay errors
...
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Carl Eugen Hoyos
e274113292
lavc/cafenc: Allow QDMC muxing.
9 years ago
Kongqun Yang
54327c2b34
Add experimental support for vp9 in iso-bmff
...
Implemented according to the draft specification
"VP Codec ISO Media File Format Binding":
http://www.webmproject.org/vp9/#draft-vp-codec-iso-media-file-format-binding
'-strict -2' is required to use this feature.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
9 years ago
Yuri Zats
ebda8216dc
avformat/http: change seek_ret to int64
...
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Hendrik Leppkes
cb46b78b2e
os_support: use the appropriate stat functions matching the stat type
...
The stat struct is defined to stati64, which requires using the appropriate wstati/stati functions as well.
Fixes a whole bunch of compiler warnings as well as build breakage with the decklink avdevice.
Fixes trac #5640
9 years ago
Aman Gupta
ddffafc0b0
avformat/utils: in debug mode, print number of streams found before avformat_find_stream_info()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Aman Gupta
e9391ab121
avformat/mpegts: enhance logging in trace mode
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Stefano Sabatini
4b5620446a
lavf/utils: fix timestamp trace log in estimate_timings() function
...
Use the correct timebase, also replace "stream" with "format" in the
context of the format.
9 years ago
Martin Storsjö
cab237953e
rtpdec_vp9: Support parsing the scalability structure
...
We still only support one single layer though, but this allows
receiving streams that have this structure present even for
single layer streams.
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
d50b3fe463
rtpdec_h264: Use avpriv_report_missing_feature instead of a manual av_log
...
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
94dee9067a
rtpdec: Use AVERROR_PATCHWELCOME instead of AVERROR(ENOSYS) for
...
unimplemented features
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
43880f9716
rtpdec_vp9: Update header parsing to spec draft 02
...
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
03aa4cd22b
rtpdec_vp9: Make sure to free the temp buffer on close
...
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Michael Niedermayer
00c4861f13
avformat/mpegts: adjust probe score for low check_count
...
Fixes mis-detection of tiff as mpegts
Fixes Ticket5565
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Marton Balint
9da27fb579
avformat/mux: factorize header writing code
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Marton Balint
301ead1313
avformat/mux: call deinit if write_header fails
...
Docs clearly states that av_write_trailer should only be called if
avformat_write_header was successful, therefore we have to deinit if we return
failure.
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Marton Balint
4bee44007a
avformat/mxfdec: check if source_package is NULL
...
Fixes ticket #5554 .
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Thomas Bernard
836f3555a8
avformat/au: Read MetaData from AU Sun audio file header
...
recognize title= album= artist= genre= track=
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4879841d15
avformat/dump: Show coded dimensions again
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Thomas Volkert
1f872332c4
rtpdec_vc2hq: avoid magic number
9 years ago
Thomas Volkert
668fb1cb6a
rtpenc: packetizer for VP9 RTP payload format (draft v2)
9 years ago
Michael Niedermayer
60de31e98c
avformat/utils: Export coded dimensions unconditionally
...
This fixes a API regression
Probably fixes Ticket5451
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Matt Oliver
37787f2616
lavf/os_support.h: Fix for unicode filenames on windows.
...
Fixes #819 #5256 #5281
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
9 years ago
James Almer
15f9189b9c
avformat/redspark: deobfuscate header decrypt code
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
8fdad638f9
avformat/redspark: remove av_malloc usage
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
84efdabc94
avcodec/utvideodec: add support for UQRG and UQRA formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Ivan
c1f57e2f91
libavformat/flvenc: support for codec configuration change mid stream
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Ivan
52985768af
libavformat/flvenc: refactoring: extracted method for writing codec headers
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
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>
9 years ago
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>
9 years ago
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>
9 years ago
Michael Niedermayer
2a70e78a28
avformat/utils: Initialize st in loop
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4888932c4d
avformat: Fix max value of AV_OPT_TYPE_VIDEO_RATE
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
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