summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
...
* mxf: Handle identification metadataMatthieu Bouron2014-03-06
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxf: Set audio packets ptsMatthieu Bouron2014-03-06
| | | | | | | | | | | Extrapolate audio timestamps based on the number of samples demuxed. Deal with some MXF nastiness involving fractional number of samples per EditUnit when seeking (the specs handwave this away). Further fixes from Tomas Härdin. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxf: Introduce ff_mxf_get_samples_per_frameMatthieu Bouron2014-03-06
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avienc: K&R formatting cosmeticsKeiji Costantini2014-03-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mathops: move macro to the only place it is usedVittorio Giovara2014-03-04
| | | | This helps in disentangling lavf and lavc too.
* ass: K&R formatting cosmeticsPatrice Clement2014-03-02
|
* mxf: Add DNxHD ULTomas Härdin2014-02-21
| | | | | | | Note that the old DNxHD UL is actually JPEG 2000 according to RP224. Leaving it as-is for now. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxf: Add uncompressed 422 8-bit rawvideo ULPhilip de Nier2014-02-21
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libavformat/mpegts: expose raw packet sizeLeandro Dorileo2014-02-19
| | | | | | | | We cannot easily determine if an mpeg TS's packet size is DVHS, FEC or so on, for that we need to expose the internal raw_packet_size field. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* movenc: Add a fallback fragmentation method for plain mp4 as wellMartin Storsjö2014-02-19
| | | | | | | Previously the default fragmentation method was only enabled if writing an ISM file. Signed-off-by: Martin Storsjö <martin@martin.st>
* doxygen: Replace @parblock syntax with manual linebreaksDiego Biurrun2014-02-17
| | | | @parblock is only supported in very recent Doxygen versions.
* doxygen: Add a number of missing function parameter descriptionsDiego Biurrun2014-02-17
|
* Move all example programs to doc/examplesDiego Biurrun2014-02-16
| | | | Also drop support for building examples in library directories.
* jv: detect partial packets in the demuxerJanne Grunau2014-02-12
| | | | | Fixes fate-jv under valgrind which reports a different CRC for the last frame from a partial read.
* asfdec: fix seeking with fragmented packetsJanne Grunau2014-02-12
| | | | | | | After seeking fragments with an offset > 0 must be skipped to correctly assemble packets. Bug-Id: 43
* asfdec: short-circuit seeking to the start of streamAndrew Kelley2014-02-12
| | | | | | Bug-id: 43 Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* asfdec: check ff_get_guid() return values during seekingJanne Grunau2014-02-12
| | | | | Hitting EOF during seeking is quite likely. Fixes use of uninitialized data during fate-seek-lavf-asf.
* lavf: always unref the packet passed to av_interleaved_write_frame() on errorAnton Khirnov2014-02-10
|
* lavf: extend / improve the AVFormatContext doxyAnton Khirnov2014-02-10
|
* lavf: add some basic documentation of the muxing processAnton Khirnov2014-02-10
|
* 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
|