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
Martin Storsjö
e9443105ea
avio: Remove a leftover comment
...
The declarations that this comment referred to were removed
in 2439f2ca8
- there is no unbuffered IO in this header now.
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Michael Niedermayer
5621da4996
avformat/riff: add M101
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Diego Biurrun
5afb94c817
Mark read-only tables as static
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
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Alexandra Hájková
5c31eaa999
Remove unnecessary get_bits.h #includes and add missing headers where needed.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
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
Diego Biurrun
0f40c90984
Drop pointless assert.h #includes
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
Luca Barbato
74d98d1b0e
mpegts: Validate the SL Packet Header Configuration
...
timeStampLength, OCRLength and AU_Length have well specified upper
boundaries.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
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
Martin Storsjö
375cad0965
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ö
943f4bea37
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ö
b55e3633d3
rtpdec: Use AVERROR_PATCHWELCOME instead of AVERROR(ENOSYS) for unimplemented features
...
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
70c77fdfc1
rtpdec_vp9: Update header parsing to spec draft 02
...
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Martin Storsjö
33b83d89e3
rtpdec_vp9: Make sure to free the temp buffer on close
...
Signed-off-by: Martin Storsjö <martin@martin.st>
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
Peter Ross
10d48c63b2
avformat: add Wideband Single-bit Data (WSD) demuxer
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Michael Niedermayer
78baa450d9
avformat/ffmdec: Check pix_fmt
...
Fixes crash
Fixes Ticket5412
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Александр Слободенюк
688664e02d
avformat/riff: support for matrox m703 mpeg-2
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Piotr Bandurski
55e6323090
avformat/riff: assign g721 and g723 codec tags to g726 decoder
9 years ago
Nicolas George
0cb19c30c6
lavf/concatdec: clear extradata when inserting h264_mp4toannexb bsf.
...
Fix remuxing H.264-in-MP4 to Matroska, possibly others.
9 years ago
Nicolas George
b8fa374fb6
lavf/concatdec: remove unrelated change during codecpar merge.
...
Clearing the extradata is not related to the codecpar change,
and it breaks if auto_convert is disabled.
Fix trac ticket #5461 .
9 years ago
Michael Niedermayer
c84ba07db4
avformat/mux: Check that deinit is set before calling it
...
Fixes null pointer dereference
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
dbe1dd59e0
avformat/mpegts: Skip over broken 0x80 headers
...
This fixes demuxing of 01c56b0dc1.ts
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
ea41ab0987
avformat/mpegts: factor duplicate seek back code into mpegts_resync
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Carl Eugen Hoyos
0499012a55
lavf/isom: Support Perian tag NELL for nellymoser.
...
Reported by forum user turas35.
9 years ago
Jan Sebechlebsky
2063f3ed9c
avformat/tee: Handling slave failure in tee muxer
...
Adds per slave option 'onfail' to the tee muxer allowing an output to
fail, so other slave outputs can continue.
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
f9d7e9feec
avformat/tee: Fix leaks in tee muxer when open_slave fails
...
In open_slave failure can happen before bsfs array is initialized,
close_slave must check that bsfs is not NULL before accessing
tee_slave->bsfs[i] element.
Slave muxer expects write_trailer to be called if it's
write_header suceeded (so resources allocated in write_header
are freed). Therefore if failure happens after successfull
write_header call, we must ensure that write_trailer of
that particular slave is called.
Some cleanups are made by Marton Balint.
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
Paul B Mahol
c85d04251d
avcodec: add TrueMotion 2.0 Real Time decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Derek Buitenhuis
be5fde92ff
libnut: Pass stream to ff_parse_specific_params
...
This function bo longer takes an AVCodecContext.
Fixes ticket #5430 .
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago