summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* 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>
* aiff: check block_align in aiff_read_packetAndreas Cadhalpun2016-10-21
| | | | | | | | It can be unset in avcodec_parameters_from_context and a value of 0 causes SIGFPE crashes. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avformat/rtmpproto: Fix RTMP control message handling error in listen mode.Hiroyuki OYAMA2016-10-21
| | | | | | | Fix problem to fail by a RTMP Control Message except "Set Chunk Size (1)" after an RTMP handshake. When 'nginx-rtmp-module' relays an RTMP, it sends not only control message 'Set Chunk Size (1)' but also 'Window Acknowledgement Size (5)'. Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/segment: decide whether to rename based on list URIRodger Combs2016-10-21
| | | | | This fixes the case of writing segments to local files, but the list over a network protocol.
* openssl: Support version 1.1.0.Matt Oliver2016-10-21
| | | | | | Fixes #5675 Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* libavformat/mxfdec: add metadata streams for external referenced sourclipsMark Reid2016-10-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/mxfdec: don't assume first stream index to be primaryMark Reid2016-10-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/mxfdec: export track name metadataMark Reid2016-10-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfdec: Detect field_order based on video_line_mapTobias Rapp2016-10-21
| | | | | | | | | | | | | | Read video_line_map from MXF generic picture essence descriptor and use it to derive the coded field order. Use field_dominance to derive the display field order from coded field order. If field_dominance is not available the default value "1" is used as defined in SMPTE S377-1. Fixes field_order detection for a bunch of DV/DVCPRO files. The heuristic for deriving coded field order from video_line_map is inspired by MediaInfo. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* rsd: limit number of channelsAndreas Cadhalpun2016-10-20
| | | | | | | | | Negative values don't make sense and too large values can cause overflows. For AV_CODEC_ID_ADPCM_THP this leads to a too small extradata buffer being allocated, causing out-of-bounds writes. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avformat/flvenc: do not attempt to write duration and filesize when not seekableSteven Liu2016-10-20
| | | | | | | Its impossible to update the filesize & duration values if seekback is not possible as with live streams Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/riff: Document the interleaving of VSM4 video.Carl Eugen Hoyos2016-10-19
|
* avformat: prevent triggering request_probe assert in ff_read_packetAndreas Cadhalpun2016-10-19
| | | | | | | | | | | | | If probe_codec is called with pkt == NULL, it sets probe_packets to 0 and request_probe to -1. However, request_probe can change when calling s->iformat->read_packet and thus a probe_packets value of 0 doesn't guarantee a request_probe value of -1. In that case calling probe_codec again is necessary to prevent triggering the assert. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* FATE: Add test for muxing discontinuous MP4 fragments with large timestampsDerek Buitenhuis2016-10-19
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avformat/movenc: Skip duration check for discontinuous fragmentsMichael Niedermayer2016-10-19
| | | | | Found-by: Daemon404 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mov: support gopro hero moments udta tagJean Caillé2016-10-19
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/matroskadec: fix BitsPerChannel element's default valueJames Almer2016-10-18
| | | | | | | The element is currently ignored, so there's no effective functionality change with this. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskadec: clarify some Colour element defaults using enum valuesJames Almer2016-10-18
| | | | | | | This way it's more clear what the default values refer to, as Undetermined/Unspecified is 0 for some, 2 for others. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: pass the demuxer's AVFormatContext to avpriv_request_sample()James Almer2016-10-18
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskadec: support parsing Chroma Location elementsJames Almer2016-10-18
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/mp3enc: write encoder delay/padding upon closingJon Toohill2016-10-18
| | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lavf/avidec: Be more verbose when ignoring very large tag size.Carl Eugen Hoyos2016-10-18
|
* avformat/tests/gitignore: add fifo_muxer entryZhao Zhili2016-10-18
| | | | | Reviewed-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/avidec: Do not fail for very large idx1 tags.Carl Eugen Hoyos2016-10-18
| | | | | | Fixes demuxing the sample file from github pull request 197, the size of its idx1 tag is 6171936 bytes, followed by a JUNK tag of 9505704 bytes.
* westwood_aud: prevent division by zeroAndreas Cadhalpun2016-10-17
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* astdec: fix division by zeroAndreas Cadhalpun2016-10-17
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* aiffdec: fix division by zeroAndreas Cadhalpun2016-10-17
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* matroskadec: fix NULL pointer dereferenceAndreas Cadhalpun2016-10-17
| | | | | | | The problem was introduced in commit 1273bc6. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mov: move stsd finalization to an appropriate placeHendrik Leppkes2016-10-17
| | | | | | | | mov_finalize_stsd_codec parses stream information from the ALAC extradata, so run it after the extradata processing is completed in mov_read_stsd. Fixes playback of 96kHz ALAC streams muxed by qaac or the reference alac encoder. Fixes trac ticket #5826
* Partially revert "avformat/matroskadec: set aspect ratio only when ↵James Almer2016-10-16
| | | | | | | | | | | DisplayWidth and DisplayHeight are in pixels" The code works just fine regardless of unit, so only make sure DisplayUnit is not "unknown". Found-by: Nicolas George <george@nsup.org> Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskaenc: write a DisplayUnit element when aspect ratio is unknownJames Almer2016-10-15
| | | | | | | | | | | We don't currently support values 1 (centimeters), 2 (inches) or 3 (DAR), only the default value 0 (pixels) which doesn't need to be written. The fate refs are updated as unknown SAR is now signaled in the output files with the addition of the new element. Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskadec: set aspect ratio only when DisplayWidth and ↵James Almer2016-10-15
| | | | | | | | | | | | | DisplayHeight are in pixels A missing DisplayUnit element or one with the default value of 0 means DisplayWidth and DisplayHeight should be interpreted as pixels. The current code setting st->sample_aspect_ratio is wrong when DisplayUnit is anything else. Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>