summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
...
* riff: Add MultiScope II fourcc MSC2 as MJPEGCarl Eugen Hoyos2015-05-12
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dashenc: Reduce the segment duration if cutting out parts with edit listsMartin Storsjö2015-05-10
| | | | | | | | This makes sure that the time + duration of the first segment matches the start time of the next segment for e.g. AAC audio with encoder delay. Signed-off-by: Martin Storsjö <martin@martin.st>
* dashenc: replace attribute id with contentType for the AdaptationSet elementJames Almer2015-05-10
| | | | | | | | | | id should be an integer, not a string. It is also optional, so use contentType instead which is the proper attribute for these values. This fixes an MPD validation error. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* id3v2: Do not export empty APIC descriptionwm42015-05-09
| | | | | | APIC tags always have a description. Tag writers obviously leave it empty if there is no description. In this case, libavformat would export "" as title. Do not set the title instead.
* nut: Make sure to clean up on read_header failureLuca Barbato2015-05-09
| | | | | | Based on Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> work. CC: libav-stable@libav.org
* avi: Validate sample_sizeAndreas Cadhalpun2015-05-09
| | | | | | | And either error out or set it to 0 if it is negative. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* nut: Check chapter creation in decode_info_headerAndreas Cadhalpun2015-05-08
| | | | | | | | This fixes a segmentation fault when accessing the metadata. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> CC: libav-stable@libav.org
* mux: Do not leave stale side data pointers in ff_interleave_add_packet()Michael Niedermayer2015-05-06
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dump: Print AVAudioServiceType side dataVittorio Giovara2015-05-06
|
* lavf: Open PICT images with QuickdrawVittorio Giovara2015-05-06
| | | | | Update the pictor test to use the pictor codec, as both formats share the .pic file extension.
* mpegts: Update the PSI/SI table only if the version changeJohn Högberg2015-04-28
| | | | | | | | | | | | | | | | | | | | | | | | If a PAT is finished while a PMT section filter is opened but not yet finished, the PMT section filter is closed and all the received data is discarded. This is usually not an issue but some multiplexers (With very quick PAT/PMT repetition settings) consistently emit a PMT section start, then a PAT, and then the rest of the PMT, causing the aforementioned behavior to result in no PMT being finished. In the most pathologic situation the stream information are lost and the probe fallback miscategorizes subtitles as mp3 audio. Avoid the issue through eliminating redundant PSI/SI table updates by checking their version field, which is required by the standard to be incremented on every change no matter how minor. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* riff: Add GMP4 fourcc for mpeg4Vittorio Giovara2015-04-24
|
* riff: Add GLV4 fourcc for mpeg4Vittorio Giovara2015-04-24
|
* rtsp: Make sure we don't write too many transport entries into a fixed-size ↵Martin Storsjö2015-04-24
| | | | | | | array CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc_jpeg: Handle case of picture dimensions not dividing by 8Andrey Utkin2015-04-23
| | | | | | | This fixes the calculation of the number of needed blocks to make sure that ALL pixels are represented by the result. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Don't warn about unparsed time rangesMartin Storsjö2015-04-23
| | | | | | | | | | | | | | | | | | | This removes the error logging added in 4e54432164. This avoids warnings about "Invalid interval start specification 'now'" for live rtsp streams. We only try to parse some of the many valid values for time ranges in RTSP - the other ones are fully valid but not interesting for the use case in rtsp.c, so we shouldn't warn about them. (Parsing the time ranges is needed to allow seeking, but e.g. setting the current realtime clock for the start time doesn't make sense. av_parse_time has got a different mode for parsing absolute times as well, which can handle the special case "now", but that doesn't make much sense for this particular use in rtsp.c.) Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Fix variables constness in ff_iso8601_to_unix_time()Vittorio Giovara2015-04-20
| | | | | | warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
* rmenc: Drop the temporary buffer for ac3 byteswapLuca Barbato2015-04-20
| | | | | | Use direcly avio_w8(). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* ogg: Forward errors furtherLuca Barbato2015-04-20
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dashenc: Add a publishTime field in dynamic manifestsMartin Storsjö2015-04-20
| | | | | | This field is mandatory in dynamic manifests. Signed-off-by: Martin Storsjö <martin@martin.st>
* g2meet: Support G2M5 codec variantEric Zimmerman2015-04-19
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* mov: Double-check that alias path is not an absolute pathVittorio Giovara2015-04-19
| | | | | | | nlvl_to and nlvl_from can be set to 1 if both alias and target files are in the same directory, so actually check the first character of the string. We can do this because MacOS filepaths (alis type 2) are always converted to UNIX filepaths (alis type 18).
* mov: Read alternate absolute path in dref alisVittorio Giovara2015-04-19
| | | | | | | Absolute paths can be stored in alis type 2 and 18 according to my research: the first is the canonical MacOS filepath, with path level separated by colons, and the volume name within the filepath, while the second should be the absolute filesystem path from the mount point.
* Canopus HQ/HQA decoderVittorio Giovara2015-04-19
| | | | | | Based on work by Kostya Shishkov <kostya.shishkov@gmail.com>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Replace av_dlog with normal av_log at trace levelVittorio Giovara2015-04-19
| | | | This applies to every library where performance is not critical.
* matroskadec: fix crash when parsing invalid mkvThomas Guillem2015-04-18
| | | | | | CC: libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avisynth: Simplify shared library name constructionDiego Biurrun2015-04-15
|
* avisynth: Bump minimum required version to interface version 6Stephen Hutchinson2015-04-14
| | | | | | | The AVSC_API changes in the new headers mean that the 2.6 alphas are just as incompatible as 2.5 is. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avisynth: Fix detection of AviSynth 2.5Stephen Hutchinson2015-04-14
| | | | | | | | | In order to safely exit when the user tries to use AviSynth 2.5, the continue_on_fail value for 2.6's functions need to be set to 1. Otherwise, the library loader fails before the 'upgrade to 2.6' log message appears. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rtsp: Fix unchecked return valueHimangi Saraogi2015-04-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Check a malloc return valueHimangi Saraogi2015-04-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Handle error return from ff_listen_bindAnders Nystrom2015-04-09
| | | | | | | Handle error return from ff_listen_bind without leaking file descriptors. Signed-off-by: Anders Nystrom <anders.nystrom@southpole.se> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* riff: Add 'M705' FourCC for mpeg2videoVittorio Giovara2015-04-09
|
* mov: Rely on box type rather than file type for colr atomVittorio Giovara2015-04-09
| | | | | | | | Although it's not allowed to use only allows 'nclc' in ISOM files, there are samples that do not always respect this rule. This change prevents atom overread and a spurious color range initialization. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* matroskadec: export cover art correctlywm42015-04-08
| | | | | | | | | | | | | | | | | | Generally, libavformat exports cover art pictures as video streams with 1 packet and AV_DISPOSITION_ATTACHED_PIC set. Only matroskadec exported it as attachment with codec_id set to AV_CODEC_ID_MJPEG. Obviously, this should be consistent, so change the Matroska demuxer to export a AV_DISPOSITION_ATTACHED_PIC pseudo video stream. Matroska muxing is probably incorrect too. I know that it can create broken files with an audio track and just 1 video frame when e.g. remuxing mp3 with APIC to mkv. But for now this commit does not change anything about muxing, and also continues to write attachments with AV_CODEC_ID_MJPEG should the muxer application have special knowledge that the Matroska is broken in this way. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* parseutils: Make av_small_strptime publicLuca Barbato2015-04-07
| | | | | | And use it in libavformat. Based on a similar patch by Stefano Sabatini <stefasab@gmail.com>.
* mpegtsenc: Take max_delay into account when buffering multiple audio packets ↵Martin Storsjö2015-04-03
| | | | | | | | | | into one PES packet Make sure we don't buffer up more than max_delay worth of data before writing a PES packet, even if pes_payload_size is set to a larger value. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Add a buffer_size optionLuca Barbato2015-04-01
| | | | | | And forward it to rtp and udp. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtp: Add an option to set the send/receive buffer sizeLuca Barbato2015-04-01
| | | | It gets forwarded down to UDP.
* rtp: Map the urloptions to AVOptionsLuca Barbato2015-04-01
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* build: Split JPEG-related tables off into a separate componentDiego Biurrun2015-03-30
|
* udp: Fix pkt_size managementLuca Barbato2015-03-29
| | | | | | | | The default value for unset is -1, not 0. Problem introduced in 66028b7ba6b411ba12ef553e9c8f1f4a4fe27710 Bug-Id: 835
* avisynth: update documentation about the avisynth_c.h headerStephen Hutchinson2015-03-24
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avisynth: Fix compilation against current 2.6 header(s).Stephen Hutchinson2015-03-24
| | | | | | | | | AviSynth 2.6 (and by extension, AviSynth+) moves these functions into AVSC_API. This requires both adjusting their normal use, and for AvxSynth, adjusting the position/use of the USING_AVISYNTH ifdefs. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: Write the display matrix in orderVittorio Giovara2015-03-23
| | | | | | | | | | This will allow to copy the matrix as is and it is just cleaner to keep the matrix in the same order specified by the mov standard (which is also explicitly described in the documentation). In order to preserve compatibility, flip the angle sign in the display API av_display_rotation_set() and av_display_rotation_get(), and improve the documentation mentioning the rotation direction.
* movenc: Write the make and model metadata keys for mov style filesMartin Storsjö2015-03-23
| | | | | | | These are essential allowing QuickTime to keep detecting content as slow-motion - this allows preserving them on stream copy. Signed-off-by: Martin Storsjö <martin@martin.st>
* oggdec: Check memory allocationFederico Tomassetti2015-03-21
| | | | | | Bug-Id: CID 1257798 / CID 1257805 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mms: Check memory allocationFederico Tomassetti2015-03-21
| | | | | | Bug-Id: CID 1258462 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rmenc: Check memory allocationFederico Tomassetti2015-03-21
| | | | | | Bug-Id: CID 1257832 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* movenc: write the display transform matrixAnton Khirnov2015-03-19
|