summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* lavf: rewrite the av_write_frame() doxyAnton Khirnov2014-02-10
| | | | | Remove some vague / incorrect statements and make the text more specific and less confusing.
* lavf: rewrite the av_interleaved_write_frame() doxyAnton Khirnov2014-02-10
| | | | | Remove some vague / incorrect statements and make the text more specific and less confusing.
* pcmdec: replace a reachable assert with an error checkAnton Khirnov2014-02-10
| | | | | | Libavformat should not make any assumptions about values returned from other libraries. This assert is easily reachable by using a non-raw codec id.
* mxfdec: free descriptor extradata in .read_close()Janne Grunau2014-02-09
| | | | Fixes memleak in fate-mxf-demux.
* lavf: default .ogg audio to libvorbis if we canAndrew Kelley2014-02-09
| | | | | | | | | | | | Since 2007, the Xiph.org Foundation recommends that .ogg only be used for Ogg Vorbis audio files. Source: http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions However we only do it if we have libvorbis available because the built in vorbis encoder is not as good. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Add raw HEVC muxerDerek Buitenhuis2014-02-09
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* Mirillis FIC video decoderKostya Shishkov2014-02-08
| | | | | | Does not contain cursor rendering yet. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* lavf: improve handling of sparse streams when muxingLuca Barbato2014-02-04
| | | | | | | | | | | | | | | | | | Currently ff_interleave_packet_per_dts() waits until it gets a frame for each stream before outputting packets in interleaved order. Sparse streams (i.e. streams with much fewer packets than the other streams, like subtitles or audio with DTX) tend to add up latency and in specific cases end up allocating a large amount of memory. Emit the top packet from the packet_buffer if it has a time delta larger than a specified threshold. Original report of the issue and initial proposed solution by mus.svz@gmail.com. Bug-id: 31 Signed-off-by: Anton Khirnov <anton@khirnov.net>
* jvdec: K&R formatting cosmeticsVittorio Giovara2014-02-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: ignore attachment streams for interleaving purposesAnton Khirnov2014-02-04
| | | | Those streams should never get any packets by definition.
* lavf: do basic sanity checking on muxed packetsAnton Khirnov2014-02-04
| | | | Reject packets for non-existing or attachment streams.
* mxf: Read field dominance flagMatthieu Bouron2014-02-01
| | | | | | And export the information in field_order. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxf: Handle negative edit_rateLuca Barbato2014-02-01
| | | | Default to 1/25.
* lavf: include 60 fps in guessed standard frame ratesJanne Grunau2014-01-31
| | | | | Due to what looks like an off-by-one error 60 * 12 * 1001 / 12 * 1001 is not tested as standard frame rate in avformat_find_stream_info().
* avformat: utils: Refactor duplicated PRINT macroDiego Biurrun2014-01-29
|
* avformat: utils: K&R formatting cosmeticsDiego Biurrun2014-01-26
| | | | Also adjust some comment wording / spelling and reorder header #includes.
* rtpdec_asf: Copy the need_parsing field from the chained demuxerMartin Storsjö2014-01-23
| | | | | | | This fixes playback of mp3 streams in rtp/asf. This used to work until c6f1dc8, but mostly by coincidence. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Send a full, absolute timestamp if it isn't monotonically growingMartin Storsjö2014-01-20
| | | | | | | | The normal differential timestamps can't handle negative differences, thus send a full packet header with an absolute timestamp in these cases. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Avoid using uninitialized memoryMartin Storsjö2014-01-20
| | | | | | | If the url ends with .flv, we stripped it but didn't initialize rt->playpath, doing av_strlcat on an uninitialized buffer. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: do not set avg_frame_rate in the demuxerJustin Ruggles2014-01-20
| | | | | | | | | | | The track duration is often not reliable or is not the duration represented by the number of frames. In those cases, avg_frame_rate was reported incorrectly. Removing this code falls back to the default calculation in avformat_find_stream_info(). This is a partial revert of commit c3aeaa540. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avisynth: fix setting packet propertiesMichael Niedermayer2014-01-17
| | | | | | Reviewed-by: Stephen Hutchinson <qyot27@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* yuv4mpeg: set average frame rateAnton Khirnov2014-01-17
|
* mp3enc: allow omitting the id3v2 header with -id3v2_version 0Anton Khirnov2014-01-17
|
* mp3enc: add an option for disabling the Xing frame.Anton Khirnov2014-01-17
|
* mov: Free an earlier allocated array if allocating a new oneMartin Storsjö2014-01-15
| | | | | | | | | | | It could probably also be considered an error if the pointer isn't null at this point, but then we might risk rejecting some slightly broken files that we might have handled so far. Sample-Id: 00000496-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: Free intermediate arrays in the normal cleanup functionMartin Storsjö2014-01-15
| | | | | | | | | | | | | These arrays are normally freed at the end of mov_read_trak, but make sure they're freed in case mov_read_trak returned early (due to errors) or in case the atoms that allocate arrays are encountered at some other point than within a trak (which we don't have checks against). Sample-Id: 00000496-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mxf: Fix potential leak in mxf_read_local_tags()Tomas Härdin2014-01-14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxf: Correctly support files from Pinnacle ThunderTomas Härdin2014-01-14
| | | | | | | | | | | | | | | | | | | | | | | | Such files have IndexTableSegments which when parsed cover EditUnit ranges like this: [0,1) [249,250) [249,377) [0,249) where each interval is [IndexStartPosition, IndexStartPosition + IndexDuration) This would be reduced to a sparse index like: [0,1), [249,250) instead of the full range: [0,249), [249,377) Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxf: Fix a possible leak of extradataMichael Niedermayer2014-01-14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxf: Use av_malloc_arrayLuca Barbato2014-01-14
|
* mxf: Drop unnecessary checksLuca Barbato2014-01-14
| | | | av_reallocp_array does the check already.
* mxf: Fix off by one error in d10 aes3 decodingMarton Balint2014-01-14
| | | | Without this fix the last sample was missing from the packet.
* mxf: Do not use int to check the seek positionLuca Barbato2014-01-14
| | | | | | Overly large files are to be expected. Reported-by: Jean-Baptiste Kempf <jb@videolan.org>
* mxf: Set AV_FIELD_PROGRESSIVEReimar Döffinger2014-01-14
| | | | | | Needed for AVC-intra Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavf: make av_probe_input_buffer more robustAnton Khirnov2014-01-13
| | | | | | | Always use the actually read size as the offset instead of making possibly invalid assumptions. Addresses: CVE-2012-6618
* lavf: use a fixed width typeAnton Khirnov2014-01-13
| | | | It's shorter and more consistent with the rest of the code.
* lavf: simplify handling of offset in av_probe_input_buuffer()Anton Khirnov2014-01-13
|
* flv: Workaround for buggy Omnia A/XE encoderBenjamin Larsson2014-01-11
| | | | | | | | | The Omnia A/XE encoder writes the explicit extra data incorrectly and wrongly disables parametric stereo. Truncating the extra data by setting the size to 2 works around this. The AAC extra data parser will then only parse the correct parts. Bug-id: 599
* flac muxer: add option to disable writing the global headerJustin Ruggles2014-01-09
| | | | | The global header is not explicitly required for playback, and omitting it allows for simple concatenation.
* ATRAC3+ decoderMaxim Polijakowski2014-01-09
| | | | | | Cleanup by Diego Biurrun. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* network.h: Add #endif comments to improve readabilityDiego Biurrun2014-01-06
|
* segafilm: fix leaks if reading the header failsAnton Khirnov2014-01-06
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* lavf: remove a pointless checkAnton Khirnov2014-01-06
| | | | AVStream.codec is always non-NULL
* oggparseogm: check timing variablesAnton Khirnov2014-01-06
| | | | | | | Fixes a potential divide by zero. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* sdp: Check that fmt->oformat is non-null before accessing itMartin Storsjö2014-01-05
| | | | | | | | This avoids crashes when avserver tries to create an SDP, since d77f4af. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* pmpdec: check that there is at least one audio packet.Anton Khirnov2014-01-03
| | | | | | | | The code cannot handle there being none, but that should not happen for valid files. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* avutil: Move library version related macros to version.hDiego Biurrun2013-12-26
| | | | This is a more sensible place for these macros.
* mms: Remove non-utf8 charactersLuca Barbato2013-12-26
| | | | | | Certain softwares get badly confused. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Add a libwebp encoderJustin Ruggles2013-12-21
|
* flv: Use the correct type to hold the file offsetLuca Barbato2013-12-20
|