summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* avformat/mux: split side data before internal auto BSFMichael Niedermayer2016-11-04
| | | | | | | | | The bitstream filters do not work with merged in side data This leaves the input packet split if it is being split. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* Revert "avformat/mux: split side data earlier in av_write_frame and ↵James Almer2016-11-04
| | | | | | | | | | | av_interleaved_write_frame" This reverts commit fba2a8a254997e0db39a30438e96e5f3e44c669a. The changes were right for av_write_frame() but not for av_interleaved_write_frame(). The following commit will fix this in a simpler way. Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/movenc: Do not print an error when muxing gray8 rawvideo.Carl Eugen Hoyos2016-11-05
| | | | This was fixed in 9a2778082121ea44d06a2f00f822ea99109c7fd8
* avformat/mux: split side data earlier in av_write_frame and ↵James Almer2016-11-04
| | | | | | | | | | | av_interleaved_write_frame Similarly, merge it back before returning. Fixes ticket #5927. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/mux: Add missing CR/LF to error messages.Carl Eugen Hoyos2016-11-04
|
* lavf/mov.c: Use the first sidx for tracks without sidx.Sasi Inguva2016-11-03
| | | | | | | | According to spec ISO_IEC_15444_12 "For any media stream for which no segment index is present, referred to as non‐indexed stream, the media stream associated with the first Segment Index box in the segment serves as a reference stream in a sense that it also describes the subsegments for any non‐indexed media stream." Signed-off-by: Sasi Inguva <isasi@google.com> Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat: close parser if codec changedAndreas Cadhalpun2016-11-02
| | | | | | | | | The parser depends on the codec and thus must not be used with a different one. If it is, the 'avctx->codec_id == s->parser->codec_ids[0] ...' assert in av_parser_parse2 gets triggered. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avformat/matroskaenc: use display aspect ratio for DisplayWidth and ↵James Almer2016-11-02
| | | | | | | | | | | | | DisplayHeight when possible This avoids potential rounding errors and guarantees the source aspect ratio is preserved. Keep writing pixel values when Stereo 3D Mode is enabled and for WebM, as the format doesn't support anything else. This fixes ticket #5743, implementing the suggestion from ticket #5903. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskaenc: support writing Chroma Location elementsJames Almer2016-11-02
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mpegtsenc: Add option to mark stream begin as discontinuousMichael Niedermayer2016-11-02
| | | | | | | This avoids continuity check failures in concatenated streams Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/matroskaenc: don't try to modify the header when live-streamingRodger Combs2016-11-02
|
* lavf/matroskaenc: fix uninitialized readRodger Combs2016-11-02
|
* lavf/segment: fix autobsfRodger Combs2016-11-02
|
* Revert "img2 encoder: allow %t in filename, based on patch from Yuval Adam"Michael Niedermayer2016-11-01
| | | | | | | breaks API Found-by: jamrial This reverts commit 1a956c64c8eff5edecb004fc7aafd21207e6485c.
* img2 encoder: allow %t in filename, based on patch from Yuval Adamrogerdpack2016-11-01
| | | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* apngdec: use side data to pass extradata to the decoderAndreas Cadhalpun2016-11-01
| | | | | | | | | Fixes remuxing apng streams coming from the apng demuxer. This is a regression since 940b8908b94404a65f9f55e33efb4ccc6c81383c. Found-by: James Almer <jamrial@gmail.com> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mov: immediately return from mov_fix_index without old index entriesAndreas Cadhalpun2016-11-01
| | | | | | | | | | If there are no index entries, e_old = st->index_entries is only one byte large, since it was created by av_realloc called with size 0. Thus accessing e_old[0].timestamp causes a heap buffer overflow. Reviewed-by: Sasi Inguva <isasi@google.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* Fix build warnings due to misleading indentationAdriano Pallavicino2016-11-01
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mov: Only search for invalid moov in free if compliance < STRICT.Carl Eugen Hoyos2016-11-01
|
* lavf/mov.c: Use the correct timescale when seeking for audio.Sasi Inguva2016-10-31
| | | | | Signed-off-by: Sasi Inguva <isasi@google.com> Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* openssl: Allow newer TLS versions than TLSv1Mark Thompson2016-10-30
| | | | | | | | The use of TLSv1_*_method() disallows newer protocol versions; instead use SSLv23_*_method() and then explicitly disable the deprecated protocol versions which should not be supported. Fixes ticket #5915.
* avformat/flvdec: Fix regression loosing streamsMichael Niedermayer2016-10-28
| | | | | | | Fixes: unknown_video.flv Found-by: Thierry Foucu <tfoucu@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* apng: use side data to pass extradata to muxerAndreas Cadhalpun2016-10-28
| | | | | | | | This fixes creating apng files, which is broken since commit 5ef19590802f000299e418143fc2301e3f43affe. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avisynth: fix Planar RGB outputStephen Hutchinson2016-10-27
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/matroskaenc: fix cue relative position values when CRC32 is enabledJames Almer2016-10-26
| | | | | | | | | | | | The dynamic buffer does not contain the CRC32 element so calls to avio_tell() don't take it into account. This resulted in CueRelativePosition values being six bytes short. This is a regression since 6724525a1576ca334d2ffdc085620bb44aea7394 Instead of adding yet another custom check for CRC32 to fix a size or an offset, remove the existing ones and reserve the six bytes in the dynamic buffer. Signed-off-by: James Almer <jamrial@gmail.com>
* Bump minor versions after 3.2 branchpoint to seperate releaseMichael Niedermayer2016-10-26
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Bump minor versions for 3.2Michael Niedermayer2016-10-26
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Revert "avformat/utils: Discard huge timestamps which would cause overflows ↵Michael Niedermayer2016-10-26
| | | | | | | | | if used in basic computations" Some people seem to oppose this the patch seems to have been missed for a month on the ML lets restart the discussion and solve this after the release This reverts commit e936c8d176efd1a0a41e22df24564b1178c79ea9.
* avformat/utils: Discard huge timestamps which would cause overflows if used ↵Michael Niedermayer2016-10-26
| | | | | | | | | | | | | in basic computations Allowing larger timestamps makes it impossible to calculate basic things like the difference of 2 timestamps or their sum without checking each individual computation for overflow. This should avoid a significant number of overflow checks Fixes Ticket5136 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/isom: Fix old API regression with exporting max bitrateMichael Niedermayer2016-10-26
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/flvdec: init AVPacket::pos to FLVTAG offsetSuman-2016-10-26
| | | | | | Current code doesn't initialize AVPacket::pos. Made it point to FLVTAG so flv_read_packet can decode from pos Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mov: reindentRodger Combs2016-10-24
| | | | Reviewed-By: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mov: improve `tref/chap` chapter handlingRodger Combs2016-10-24
| | | | | | | | | 3 parts: - Supports multiple chapter streams - Exports regular text chapter streams as opaque data. This prevents consumers from showing chapters as if they were regular subtitle streams. - Exports video chapter streams as thumbnails, and provides the first one as an attached_pic.
* lavf: add AV_DISPOSITION_TIMED_THUMBNAILSRodger Combs2016-10-24
| | | | Reviewed-By: Michael Niedermayer <michael@niedermayer.cc>
* lavf/rawenc: add automatic bitstream filtering for H264+HEVCRodger Combs2016-10-24
|
* lavf/movenc+dashenc: add automatic bitstream filteringRodger Combs2016-10-24
| | | | This is disabled by default when the empty_moov flag is enabled
* lavf/dashenc: add deinit functionRodger Combs2016-10-24
|
* lavf/movenc: add deinit functionRodger Combs2016-10-24
|
* lavf/segment: fix writing separate header with auto BSFRodger Combs2016-10-24
|
* lavf/segment: add deinit functionRodger Combs2016-10-24
|
* lavf/mux: add avformat_init_outputRodger Combs2016-10-24
| | | | | | This allows a consumer to run the muxer's init function without actually writing the header, which is useful in chained muxers that support automatic bitstream filtering.
* lavf/mpegts: add missed fixes to scte35 section callbackCarlos Fernandez2016-10-23
| | | | | | They somehow got lost along the patch versions. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/matroskaenc: write DisplayWidth and DisplayHeight elements only if ↵James Almer2016-10-22
| | | | | | they differ from PixelWidth and PixelHeight Signed-off-by: James Almer <jamrial@gmail.com>
* mpegts: handle AVMEDIA_TYPE_UNKNOWN correctlyAndreas Cadhalpun2016-10-22
| | | | | | | | | It is negative, so can't be used for left shifting. This fixes ubsan runtime error: shift exponent -1 is negative Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lavf/rtpdec_g726: Map mime type G726 to g726le.Carl Eugen Hoyos2016-10-22
| | | | | | | | | | Add new mime types AAL2-G726 for g726 as suggested in rfc 3551. This patch will break interaction with applications that incorrectly use big-endian G.726 with mime type G726 but we know of at least one device (DVTel camera) that correctly implements the rfc, so do the same. Fixes ticket #5890.
* doc: fix spelling errorsAndreas Cadhalpun2016-10-21
| | | | | | | | Thanks to Mathieu Malaterre <malat@debian.org> for reporting the Que/Queue typo. (https://bugs.debian.org/839542) Reviewed-by: Lou Logan <lou@lrcd.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lavf/mpegts: SCTE-35 extraction from mpegtsCarlos Fernandez2016-10-21
| | | | | | | Reviewed-by: Marton Balint <cus@passwd.hu> Acked-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Carlos Fernandez <carlos@ccextractor.org> Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfdec: Check size to avoid integer overflow in mxf_read_utf16_string()Michael Niedermayer2016-10-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfdec: Fix mixed declaration and codeMichael Niedermayer2016-10-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* dcstr: fix division by zeroAndreas Cadhalpun2016-10-21
| | | | | | | Also check for possible overflows. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>