summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
...
* lavf: allow custom IO for all filesAnton Khirnov2016-01-24
| | | | | | | | | | | | | | Some (de)muxers open additional files beyond the main IO context. Currently, they call avio_open() directly, which prevents the caller from using custom IO for such streams. This commit adds callbacks to AVFormatContext that default to avio_open2()/avio_close(), but can be overridden by the caller. All muxers and demuxers using AVIO are switched to using those callbacks instead of calling avio_open()/avio_close() directly. (de)muxers that use the URLProtocol layer directly instead of AVIO remain unconverted for now. This should be fixed in later commits.
* riff: add C210 FourCC (Canopus C210)Piotr Bandurski2016-01-21
|
* riff: add YUYV FourCC (Drastic YUYV)Piotr Bandurski2016-01-21
|
* mov: Add an option to toggle dref openingDerek Buitenhuis2016-01-21
| | | | | | | | | This feature is mostly only used by NLE software, and is both of dubious value being enabled by default, and a possible security risk. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* flvdec: Add sanity checking of the last packet sizeMartin Storsjö2016-01-19
| | | | | | | | For http, this avoids spurious warnings about failed requests (e.g. HTTP error 416 Requested Range Not Satisfiable), if the last packet is truncated and the size read is bogus. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: perform duration search just onceMichael Niedermayer2016-01-19
| | | | | | | | When loading a truncated flv file, it would previously try to do a seek to the end of every packet read. For some input protocols (such as http), such repeated seek attempts are cripple the reading performance. Signed-off-by: Martin Storsjö <martin@martin.st>
* nutdec: only copy the header if it existsAndreas Cadhalpun2016-01-13
| | | | | | | | Fixes runtime error: null pointer passed as argument 2, which is declared to never be null Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* nuv: sanitize negative fps rateAndreas Cadhalpun2016-01-13
| | | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* movenc-test: stop setting the GLOBAL_HEADER codec flagAnton Khirnov2016-01-12
| | | | | This test does no encoding, setting the flag was done just to silence the warning removed in the previous commit.
* mux: drop the warning about global headersAnton Khirnov2016-01-12
| | | | | The AVStream codec context is often not (and should not be) the actual encoding context, so this warning will be spurious in many cases.
* swfdec: support compressed swfClément Bœsch2016-01-11
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* asfdec: Fix typo in commentAlexandra Hájková2016-01-11
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* asfdec: Remove unused function parametersAlexandra Hájková2016-01-07
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: reject size > INT64_MAX in asf_read_unknownAndreas Cadhalpun2016-01-07
| | | | | | | | | | | Both avio_skip and detect_unknown_subobject use int64_t for the size parameter. This fixes a segmentation fault due to infinite recursion. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: only set asf_pkt->data_size after sanity checksAndreas Cadhalpun2016-01-07
| | | | | | | | | Otherwise invalid values are used unchecked in the next run. This can cause NULL pointer dereferencing. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Alexandra Hájková <alexandra.khirnova@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Remove stray line breaks from avpriv_{report_missing_feature|request_samples}Diego Biurrun2015-12-26
|
* rtpdec_jpeg: Coalesce redundant error checksDiego Biurrun2015-12-26
|
* mpegtsenc: add flag to embed an AC-3 ES the DVB wayStefan Pöschel2015-12-14
| | | | | | | | | | | | | So far an AC-3 elementary stream is refered to in the PMT according to System A (ATSC). However System B (DVB) has a different way to signal an AC-3 ES within the PMT. This different way can be enabled by a new flag. The flag is more generally named 'system_b' as there are further differences between ATSC and DVB (e.g. the signalling of E-AC-3) which should then also be covered by it in the future. Bug-Id: 73 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* r3d: fix an invalid read introduced in 6bf4c1dAnton Khirnov2015-12-14
|
* rtmpproto: Include the full path as app when "slist=" is foundMartin Storsjö2015-12-13
| | | | | | | This matches what librtmp does. This fixes automatic url parsing of crunchyroll urls. Signed-off-by: Martin Storsjö <martin@martin.st>
* vocdec: do not create the stream in read_header()Anton Khirnov2015-12-12
| | | | | The stream parameters are not known until we read a packet, so postpone creating it until then.
* vocdec: put the code not shared with other demuxers under appropriate ifdefAnton Khirnov2015-12-12
|
* flvdec: do not create any streams in read_header()Anton Khirnov2015-12-12
| | | | | | | | | | | The current muxer behaviour is to create streams in read_header() based on the audio/video presence flags, but fill in the stream parameters later when we actually get some packets for them. This is rather shady, since other demuxers set the stream parameters immediately when the stream is created and do not touch the stream codec context after that. Change the flv demuxer to behave in the same way as other similar demuxers -- create the streams only when we get a packet for them.
* mp3dec: replace avpriv_mpa_decode_header with avpriv_mpegaudio_decode_headerAnton Khirnov2015-12-12
| | | | | The latter does not require a full AVCodecContext and still provides all the functionality needed here.
* mpegaudiodecheader: check the header in avpriv_mpegaudio_decode_headerAnton Khirnov2015-12-12
| | | | | | Almost all the places from which this function is called already check the header manually and in the two that don't (the mp3 muxer) the check should not cause any problems.
* r3d: do not create the audio stream until we know the sample rateAnton Khirnov2015-12-12
|
* ff_parse_specific_params: do not use AVCodecContext.frame_sizeAnton Khirnov2015-12-12
| | | | | | It will not be set unless the muxing codec context is also the encoding context, which is discouraged. When the frame size is not known from av_get_audio_frame_duration(), the fallback should still be good enough.
* rmenc: do not use AVCodecContext.frame_sizeAnton Khirnov2015-12-12
| | | | | | It will not be set if the stream codec context is not the encoding context. Use av_get_audio_frame_duration() instead, it should work for all audio codecs supported by the muxer.
* matroskadec: Fix sample_aspect_ratio for stereo matroska contentAaron Colwell2015-12-07
| | | | | | | | | matroskaenc applies divisors to the display width/height when generating stereo content. This patch adds the corresponding multipliers to matroskadec so that the original sample aspect ratio can be recovered. Signed-off-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* rtsp: free opts dictionary on failure of getnameinfoGanesh Ajjanagadde2015-12-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc-test: add a missing va_end callGanesh Ajjanagadde2015-12-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mxfenc: always assume long gopAnton Khirnov2015-12-06
| | | | | | Checking the codec context parameters to find out this information is far too unreliable to be useful, so it is safer to assume B-frames are always present.
* lavc: export Dirac parsing API used by the ogg demuxer as publicAnton Khirnov2015-12-06
| | | | Also, stop using AVCodecContext for storing the stream parameters.
* mpegenc: use the CPB props side dataAnton Khirnov2015-12-06
| | | | | Do not access the encoder options, since it makes no sense when the AVStream codec context is not the encoding context.
* movenc: use the CPB props side dataAnton Khirnov2015-12-06
| | | | | Do not access the encoder options, since it makes no sense when the AVStream codec context is not the encoding context.
* avi: Spin out the logic to position to the next non-interleaved streamLuca Barbato2015-12-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avi: Validate the stream-id for DV as wellMichael Niedermayer2015-12-02
| | | | | | | | | | Avoid false positives while syncing. Bug-Id: ffmpeg/4086 Bug-Id: 879 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avi: Use the correct data typeLuca Barbato2015-12-02
| | | | avio_tell returns an int64_t.
* lavf: G.723.1 muxerMohamed Naufal2015-11-30
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* matroska: Warn when metadata references a non-existent elementLuca Barbato2015-11-28
| | | | | | Avoid some confusion when the information is not present. Bug-Id: 902
* dvenc: Validate the frame size before copying itLuca Barbato2015-11-28
|
* nut: Mark non-fatal errors as warningsLuca Barbato2015-11-25
| | | | And make one more informative.
* nut: Provide more information on failureLuca Barbato2015-11-25
|
* rtsp: Log getaddrinfo failuresLuca Barbato2015-11-25
| | | | And forward the logging contexts when needed.
* udp: Provide additional information on getaddrinfo failureLuca Barbato2015-11-25
|
* udp: Use the logging contextLuca Barbato2015-11-25
|
* rtsp: Do not assume getnameinfo cannot failLuca Barbato2015-11-25
| | | | And properly report the error when it happens.
* movenc-test: Fix integer overflowsMichael Niedermayer2015-11-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* asfdec: handle the case when the stream index has an invalid value betterAlexandra Hájková2015-11-23
| | | | | | | | | | The demuxer returned INVALIDDATA and failed to demux the remaining data when an invalid stream index was read, now it just skips the asf packet for the stream with an invalid stream index and continues demuxing. Reported-By: Hendrik Leppkes Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* oggparsespeex: Fix unchecked mallocDerek Buitenhuis2015-11-23
| | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>