Andreas Cadhalpun
baba9c6aef
cafdec: prevent overflow during bit rate calculation
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Andreas Cadhalpun
e558a6348a
4xm: prevent overflow during bit rate calculation
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Diego Biurrun
2d7aadf3d9
Add missing #includes for standalone spherical-information-related headers
...
(cherry picked from commit f912fd767e
)
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Michael Niedermayer
457e933919
Bump for psd demuxer and decoder
...
Found-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Martin Vignali
a534862b27
libavformat : add Photoshop PSD demuxer.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Andreas Cadhalpun
ad5807f8aa
avformat: fix overflows during bit rate calculation
...
The bit_rate field has type int64_t since commit
7404f3bdb9
.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Michael Niedermayer
f0bdd53871
avformat/utils: Print verbose error message if stream count exceeds max_streams
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
30581c51e7
avformat/options_table: Set the default maximum number of streams to 1000
...
Fixes CVE-2016-9561, Note the security relevance of this is disputed as
running out of memory can happen with valid files
Suggested-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Carl Eugen Hoyos
62eafc6a6d
lavf/mov: Accept multiple fourcc for AVID 1:1.
...
Fixes ticket #5982 .
8 years ago
Carl Eugen Hoyos
9d068896d3
lavf/isom: Support EVRC in pvAuthor files.
...
Fixes ticket #6014 .
8 years ago
James Almer
edb4f5da81
avformat/matroskadec: remove the strict unofficial check for Colour elements
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
4e759072c2
avformat/matroskadec: allocate Colour related fields only if the file contains the relevant master
...
The demuxer doesn't fill the defaults if the master isn't present.
This results in codecpar->color_space being set with a value of
zero (RGB) on such files.
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Michael Niedermayer
ee2a6f5df8
avformat/oggdec: Skip streams in duration correction that did not had their duration set.
...
Fixes: part of 670190.ogg
Fixes integer overflow
Found-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Luca Barbato
3f75e5116b
avio: Keep track of the amount of data written
...
Make avio_size() work with any write AVIOContext.
8 years ago
Diego Biurrun
f912fd767e
Add missing #includes for standalone spherical-information-related headers
8 years ago
Michael Niedermayer
1296f84495
avformat: Add max_streams option
...
This allows user apps to stop OOM due to excessive number of streams
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
James Almer
120471da2d
avformat/matroskadec: remove unused variable
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
8396d54d3c
avformat/matroskadec: fix memleak on stream side data failure
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
445204cd57
avformat/matroskadec: add support for Spherical Video elements
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Andreas Cadhalpun
e3694478a9
yuv4mpegdec: fix leaking pkt in yuv4_read_packet
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Vittorio Giovara
4dcdecf471
mov: Export spherical information
...
This implements Spherical Video V1 and V2, as described in the
spatial-media collection by Google.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
e7a6f8c972
lavc: Add spherical packet side data API
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
e90137c045
mov: Export spherical information
...
This implements Spherical Video V1 and V2, as described in the
spatial-media collection by Google.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
2fb6acd9c2
lavc: Add spherical packet side data API
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Steven Liu
6b95da9af9
avformat/hlsenc: save the EXT-X-DISCONTINUITY from old list
...
when use fix ticket 2nd problem.
command line test step:
rm -rf output*;./ffmpeg -i ~/Movies/objectC/facebook.mp4 -an -c:v copy
-f hls -hls_time 4 -hls_list_size 5 -hls_flags +delete_segments
-hls_flags +append_list -hls_flags +omit_endlist -hls_flags
+discont_start -t 50 output.m3u8
./ffmpeg -i ~/Movies/objectC/facebook.mp4 -an -c:v libx264 -g 4 -f hls
-hls_time 4 -hls_list_size 5 -hls_flags +delete_segments -hls_flags
+append_list -hls_flags +omit_endlist -hls_flags +discont_start -t 5
output.m3u8
./ffmpeg -i ~/Movies/objectC/facebook.mp4 -an -c:v libx264 -g 4 -f hls
-hls_time 4 -hls_list_size 5 -hls_flags +delete_segments -hls_flags
+append_list -hls_flags +omit_endlist -hls_flags +discont_start -t 5
output.m3u8
result:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:6
#EXTINF:4.120000,
output6.ts
#EXT-X-DISCONTINUITY
#EXTINF:4.000000,
output7.ts
#EXTINF:0.960000,
output8.ts
#EXT-X-DISCONTINUITY
#EXTINF:4.000000,
output9.ts
#EXTINF:0.960000,
output10.ts
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
8 years ago
Georgi D. Sotirov
581f93f37e
lavf/chromaprint: Update for version 1.4
...
Fixes ticket #5997 .
8 years ago
Diego Biurrun
9265364bec
build: Separate avisynth and avxsynth support
...
This simplifies the code.
8 years ago
James Almer
9c1ccee7f8
avformat/dump: remove line break on mastering display metadata info dump
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Ronald S. Bultje
845bb40178
http: move chunk handling from http_read_stream() to http_buf_read().
8 years ago
Ronald S. Bultje
2a05c8f813
http: make length/offset-related variables unsigned.
...
Fixes #5992 , reported and found by Paul Cher <paulcher@icloud.com>.
8 years ago
Jun Zhao
f17eea883a
lavf: fix the wrong warning msg and comments about av_find_stream_info
...
av_find_stream_info() was deprecated by avformat_find_stream_info(),
correct the warning message in the avformat_find_stream_info() and
comments in the avformat.h
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
7d57ca4d9a
avformat/rtmppkt: Check for packet size mismatches
...
Fixes out of array access
Found-by: Paul Cher <paulcher@icloud.com>
Reviewed-by: Paul Cher <paulcher@icloud.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Steven Liu
55affd95bd
avformat/hlsenc: fix ticket id 5988 for DISCONTINUITY
...
add EXT-X-DISCONTINUITY tag at the position of the append point.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
8 years ago
Michael Niedermayer
9859f54db3
avformat/ffmdec: Silence "may be used uninitialized in this function" warnings
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
b98510de5c
avformat/ffmdec: cleanup on extradata memory allocation failure
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
fdf588d7cf
avformat/ffmdec: Forward error code from ffm_read_header()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
c143e7939f
avformat/ffmdec: remove last use of st->codec
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Carl Eugen Hoyos
5a237c33b8
lavf/asfdec_f: Remove CR/LF from avpriv_request_sample() call.
8 years ago
Michael Niedermayer
418a2b2478
avformat/ffmdec: Drop flags2, debug and codec->time_base setting
...
It should still be possible to set these through recommended_encoder_configuration
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
e706e2e775
avformat/ffmdec: Check media type for chunks
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
591c032421
avformat/ffmdec: replace most codec uses by codecpar
...
This is a bit messy as codecar does not support AVOptions so we need
to use AVCodecContext where AVOptions are required and copy back and forth.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
5cd3ea1cc0
avformat/ffmdec: Remove some st->codec uses which set encoder parameters
...
Modern ffserver should not need these
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Diego Biurrun
3794062ab1
Remove Plan 9 support
...
Supporting the system was a nice joke for the 9 release, but it has
run its course. Nowadays Plan 9 receives no testing and has no
practical usefulness.
8 years ago
Michael Niedermayer
afcf15b0db
avformat/oggparsespeex: Check frames_per_packet and packet_size
...
The speex specification does not seem to restrict these values, thus
the limits where choosen so as to avoid multiplicative overflow
Fixes undefined behavior
Fixes: 635422.ogg
Found-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
90da187f1d
avformat/utils: Check start/end before computing duration in update_stream_timings()
...
Fixes undefined behavior
Fixes: 637428.ogg
Found-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Vittorio Giovara
25fcbf7a84
hevc: Support extradata changes
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Michael Niedermayer
4059cd3952
avformat/ffmenc: Remove the last use of st->codec
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
78519a0029
avformat/ffmenc: Make ffm_write_header_codec_ctx() use codecpar
...
This would be simpler if codecpar supported AVOptions
modern ffserver should be unaffected by this, older ffserver which required the
muxer to directly access the encoder could have issues with this, but this
direct access is just wrong and unsafe
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
e8215b77ff
avformat/ffmenc: set bitexact mode for old API without accessing the encoder
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
c06d4f2ced
avformat/ffmenc: Drop ffm_write_header_codec_private_ctx()
...
This accesses the private encoder context, it should not be used by
the current ffserver it may affect old ffserver versions but i believe
there is consens that accessing the private encoder context from the muxer
is completely wrong.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago