summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* mov: Remove a variable that is set but never usedMartin Storsjö2014-07-08
| | | | | | This silences a warning with gcc. Signed-off-by: Martin Storsjö <martin@martin.st>
* nut: Use nut->version in the version range checkLuca Barbato2014-07-08
| | | | | It was wrongly left unchanged when the version field had been introduced. (c94e2e85cb6af8a570d8542a830556243bd32873)
* avformat_new_stream: make the AVCodec parameter constRoman Savchenko2014-07-08
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* smoothstreamingenc: Fix a memory leak on errorsMichael Niedermayer2014-07-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1test: Check malloc callNidhi Makhijani2014-07-06
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vc1test: Return proper error codesNidhi Makhijani2014-07-06
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* librtmp: Don't free the temp url at the end of rtmp_openMartin Storsjö2014-07-06
| | | | | | | | librtmp can keep pointers to this string internally, and may use them at shutdown as well. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* id3v2enc: use a case-insensitive comparison for APIC picture typeAnton Khirnov2014-07-03
|
* daud: split muxer and demuxerNidhi Makhijani2014-07-03
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: document av_dump_format()Vittorio Giovara2014-07-02
|
* matroskadec: Fix a double negation typoMichael Niedermayer2014-07-02
| | | | | | | | | This typo has existed since this code was added in c16582579. Newer versions of clang pointed out that this comparison always was true (since the result of the negation is either 0 or 1, while AVDISCARD_ALL has the value 48). Signed-off-by: Martin Storsjö <martin@martin.st>
* matroska: Factor out mkv_write_stereo_modeLuca Barbato2014-07-01
|
* matroska: Factor out write_track from mkv_write_tracksLuca Barbato2014-07-01
|
* matroska: K&R formatting cosmeticsLuca Barbato2014-07-01
|
* mov: Support default-base-is-moof.Yusuke Nakamura2014-07-01
| | | | | | | | | default-base-is-moof shall be set to track fragments compatible with DASH Media Segments. So, this is a fundamental support for ISOBMFF ver. DASH. This is meaningful only when base-data-offset-present is absent and two or more track fragments are present in a movie fragment. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc_jpeg: check for color_range tooVittorio Giovara2014-06-28
|
* dump_stream: print the timebase as is, do not reduce itAnton Khirnov2014-06-26
| | | | | | It makes more sense to print the timebase exactly as it is set. Also, this avoids a divide by zero when av_dump_format() is called on a format context before writing the header.
* Check mp3 header before calling avpriv_mpegaudio_decode_header().Justin Ruggles2014-06-22
| | | | | | | | As indicated in the function documentation, the header MUST be checked prior to calling it because no consistency check is done there. CC:libav-stable@libav.org
* Replace av_malloc() and memset(0) by av_mallocz()Diego Biurrun2014-06-22
|
* build: Add missing object files for webm muxerDiego Biurrun2014-06-22
|
* build: Add missing object files for Matroska demuxerDiego Biurrun2014-06-22
|
* build: Add missing replaygain object file for CAF demuxerDiego Biurrun2014-06-22
|
* rtsp: Support misordered fmtp rtpmapJoshua Kordani2014-06-18
| | | | Issue present in Avigilon IP cameras.
* rtsp: Factor out fmtp parsingLuca Barbato2014-06-18
|
* lavf: switch to AVStream.time_base as the hint for the muxer timebaseAnton Khirnov2014-06-18
| | | | | | | | | | | | Previously, AVStream.codec.time_base was used for that purpose, which was quite confusing for the callers. This change also opens the path for removing AVStream.codec. The change in the lavf-mkv test is due to the native timebase (1/1000) being used instead of the default one (1/90000), so the packets are now sent to the crc muxer in the same order in which they are demuxed (previously some of them got reordered because of inexact timestamp conversion).
* riffenc: take an AVStream instead of an AVCodecContextAnton Khirnov2014-06-18
| | | | | | It will be useful in the following commits. Also, rename the AVCodecContext pointer name from 'stream' to 'codec'.
* lavf: add the notimestamps flag to the muxers missing itAnton Khirnov2014-06-18
|
* rtpenc: base max_frames_per_packet on avg_frame_rate, not codec timebaseAnton Khirnov2014-06-18
| | | | | Fall back to 1 (which is what is used for most cases anyway) when the framerate is not set.
* Remove avserver.Anton Khirnov2014-06-18
| | | | | | | It has not been properly maintained for years and there is little hope of that changing in the future. It appears simpler to write a new replacement from scratch than unbreaking it.
* flvenc: Don't over-count metadata.Josh Allmann2014-06-17
| | | | | | Over-counting occurs if framerate is not set. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: dump stream side data when probingVittorio Giovara2014-06-14
|
* lavf: group dump functions togetherVittorio Giovara2014-06-14
|
* Remove some unnecessary CONFIG_FOO_COMPONENT ifdefsDiego Biurrun2014-06-12
| | | | The files are only ever compiled if that condition is true.
* mpegts: Provide an option to override the pcr periodLuca Barbato2014-06-10
| | | | Certain hardware demuxer have specific restrictions for PCR periodicity.
* mpegts: Move the option section to the bottomLuca Barbato2014-06-10
| | | | | Makes it consistent with the rest of the formats and ease usage of macros constants for the defaults.
* oggenc: Set the right AVOption size for the pref_duration optionMartin Storsjö2014-06-06
| | | | | | | | | | | | | | | On big endian machines, the default value set via the faulty AVOption ended up as 2^32 times too big. This fixes the fate-lavf-ogg test which currently is broken on big endian machines, broken since 3831362. Since that commit, a final zero-sized packet is written to the ogg muxer in that test, which caused different flushing behaviour on little and big endian depending on whether the pref_duration option was handled as it should or not. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: Export geotag metadata fieldsMartin Storsjö2014-06-06
| | | | | | | | | | | | The '?xyz' form is used by android devices (and according to apple mailing list archives, also by older iOS devices). The 'loci' field (defined in 3GPP 26.244) is used by recent iOS devices. Even though the loci field can contain an altitude, it was plain 0 in my sample. Just export longitude and latitude, in a string format matching the one used by the '?xyz' metadata field. Signed-off-by: Martin Storsjö <martin@martin.st>
* oggenc: Support flushing the muxerMartin Storsjö2014-06-04
| | | | | | | | | This allows the caller to write all buffered data to disk, allowing the caller to know at what byte position in the file a certain packet starts (any packet written after the flush will be located after that byte position). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: read metadata to set correct FLV headerUwe L. Korn2014-06-01
| | | | | | | | In the presence of no metadata, do not set any stream flag in the FLV header but let the demuxer handle the detection and creation of streams as data arrives. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmppkt: Add method to read an AMF string that is not prefixed by its typeUwe L. Korn2014-06-01
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Do not default to a video and audio streamUwe L. Korn2014-06-01
| | | | | | | | | If no streams were indicated in the FLV header, do not automatically allocate by default a video and an audio stream. Instead, in the case that the header did not indicate the presence of any data, allocate no stream until data actually arrives for one type. Signed-off-by: Martin Storsjö <martin@martin.st>
* flac muxer: support reading updated extradata from side dataAnton Khirnov2014-06-01
|
* flac muxer: accept only STREAMINFO extradataAnton Khirnov2014-06-01
| | | | | | | | The other format (full flac header blocks) should not be exported by any demuxers anymore. This allows to drop an avpriv_ function and also simplify the following commits.
* matroskaenc: Allow VP9 and Opus in webmTudor Suciu2014-06-01
| | | | | | Bug-Id: 695 Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtpenc_chain: Don't copy the time base to the source stream by defaultMartin Storsjö2014-05-31
| | | | | | | | | | | | | | | Only copy it manually in the muxers where it makes sense (rtspenc, sapenc). Don't touch the original AVStream in movenchint, where the original AVStream should be kept untouched. This fixes the normal tracks in RTP hinted files after abb810db - the hint tracks were ok while the normal media tracks were broken, noticed by Michael Niedermayer. This reverts abb810db but achieves the same effect for the other muxers. Signed-off-by: Martin Storsjö <martin@martin.st>
* Revert "rtpenc_chain: Don't copy the time_base back to the caller"Martin Storsjö2014-05-30
| | | | | | | | | | | | | While it strictly isn't necessary to copy the time base (since any use of it is scaled in ff_write_chained), it still is better to signal the actual time base to the caller, avoiding one unnecessary rescaling. This also lets the caller know what the actual internal time base is, in case that is useful info for some caller. This reverts commit 397ffde115f4e0482a007b672f40457596cebfc4. Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskaenc: set the stream timebase earlierAnton Khirnov2014-05-29
| | | | Fixes calculating the ts offset for audio codecs with delay.
* flvenc: only write the framerate tag based on avg_frame_rateAnton Khirnov2014-05-29
| | | | | Do not fall back on the codec timebase, since that can be anything for VFR video.
* movenc: write avg_frame_rate as the framerate, not the codec timebaseAnton Khirnov2014-05-29
|
* matroskaenc: base DefaultDuration on the framerate, not the codec timebaseAnton Khirnov2014-05-29
| | | | | | This results in DefaultDuration not being written when the framerate is not known, but as this field is purely informative, this should not break any sane demuxers.