summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* aacdec: Lower the number of frames required to detect ADTSMartin Storsjö2014-03-16
| | | | | | | | | | | For live audio streams, requiring 500 frames for a stream to be detected is a bit overkill. This allows live ADTS streams that don't start nicely at a frame boundary to start up more quickly, e.g. http://mp3.streampower.be/radio1.aac. Signed-off-by: Martin Storsjö <martin@martin.st>
* aacdec: Don't count probed ADTS frames if there are false positivesMartin Storsjö2014-03-16
| | | | | | | | | If a portion of the probe buffer seem to resemble ADTS frames, but some data at the end is a mismatch, disregard the whole probing attempt. If it actually is ADTS data, there shouldn't be any mismatches within the sequential frame data. Signed-off-by: Martin Storsjö <martin@martin.st>
* isom: convert mp4 dvdsub extradata to vobsub formatwm42014-03-15
| | | | | | | | | | | | mp4 files embedding DVD subtitles do not use the same extradata format as the rest of Libav expects. The subtitle decoder in libavcodec in particular does not understand this format. Convert the extradata to the vobsub .idx format. mp4 stores the palette as binary 32 bit ints in YUV. The subtitle resolution is stored separately in the track header, which we access through AVStream. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* aac: K&R formatting cosmeticsLuca Barbato2014-03-14
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* http: Properly initialize icy headers stringAlessandro Ghedini2014-03-12
| | | | | | | | | | | | | | The icy_metadata_headers string never gets initialized, so, during the first call to av_strlcatf() in parse_icy(), strlen() will be called on a pointer to uninitialized memory. At best this causes some garbage data to be left at the start of the string. By initializing icy_metadata_headers to the empty string, the first call to strlen() will always return 0, so that data is appended from the start of the string. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* http: Declare more parameters as const where possibleMartin Storsjö2014-03-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Allow setting a Content-Type for POST requestsClément Bœsch2014-03-11
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* http: Improve options descriptionsAlessandro Ghedini2014-03-11
| | | | | | Add documentation where missing. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* http: Always allow no-op seekAnssi Hannula2014-03-11
| | | | | | This also allows checking stream position as per ffurl_seek() doxy. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* http: Add support for selecting a request rangeAnssi Hannula2014-03-11
| | | | | | Comment from Reimar Döffinger included as pro memoria. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* http: Support setting custom User-AgentClément Bœsch2014-03-11
| | | | | | | Contextually make the default User-Agent use the common "Name/Version" pattern. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* http: Export Content-Type informationMichael Niedermayer2014-03-11
| | | | | | Bug-Id: https://bugs.debian.org/740421 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* http: Add support reading ICY metadataLuca Barbato2014-03-11
| | | | | | | | | Export the metadata as a icy_metadata_packet avoption. Based on the work of wm4 and Alessandro Ghedini. Bug-Id: https://bugs.debian.org/739936 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* http: Refactor process_lineLuca Barbato2014-03-11
|
* http: K&R formatting cosmeticsLuca Barbato2014-03-11
|
* http: Drop doxy commentsLuca Barbato2014-03-11
|
* http: Return meaningful error codesLuca Barbato2014-03-11
|
* avformat: Report the duration analysis reachedLuca Barbato2014-03-11
|
* lavf: more correct printf format specifiersDiego Biurrun2014-03-11
|
* lavf: always use av_freeMichael Niedermayer2014-03-10
| | | | Signed-off-by: Tim Walker <tdskywalker@gmail.com>
* lavf: simplify ff_hevc_annexb2mp4_bufTim Walker2014-03-10
| | | | | | Use ff_hevc_annexb2mp4 instead of duplicating its functionality, and update the documentation to match the new behavior.
* hevc: Use get_se_golomb_longLuca Barbato2014-03-10
| | | | | Do not use inline functions that refer to tables present in other libraries.
* mxfdec: Validate parameters to strftimeMartin Storsjö2014-03-10
| | | | | | | | | | | | The MSVCRT version of strftime calls the invalid parameter handler if the struct values in struct tm are invalid. In case no invalid parameter handler is set for the process, the process is aborted. This fixes fate failures on MSVC builds since 570af382. Based on a patch by Hendrik Leppkes. Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskaenc: enable Annex B to MP4 conversion for HEVC tracks.Tim Walker2014-03-09
|
* matroskaenc: write private data in hvcC format for HEVC.Tim Walker2014-03-09
|
* movenc: allow muxing HEVC in MODE_MP4.Tim Walker2014-03-09
|
* movenc: enable Annex B to MP4 conversion for HEVC tracks.Tim Walker2014-03-09
|
* movenc: write hvcC tag for HEVC.Tim Walker2014-03-09
|
* movenc: use 'hev1' tag for HEVC in MODE_MOV.Tim Walker2014-03-09
| | | | | | | | | | | | | | 'hvc1' requires that parameter set NAL units be present only in the samples entry, but not in the samples themselves, requiring that additional parameter sets, if present, be filtered out of the samples and placed in new, additional sample entries if they override or otherwise conflict with the parameter sets present in the first sample entry. We do not have any way of doing this at present, so the files we produce can only comply with the restrictions set for the 'hev1' sample entry name in ISO/IEC 14496-15.
* riff: add VP9 fourccJames Zern2014-03-09
|
* riff: IPJ2 decodes with JPEG2000 decoderBen Littler2014-03-09
| | | | Samples can be made from mencoder and jp2avi.dll codec.
* movdec: handle 0x7fff langcode as macintosh per the specsBaptiste Coudurier2014-03-09
| | | | | | The correct point that seperates ISO and MAC language codes is 0x400 according to the current QT spec. Old QT specs did not list where this seperation is but apparently only defined the meaning of the first 137.
* libspeex: support ZygoAudio (quality 10 mode)Piotr Bandurski2014-03-09
|
* isom: lpcm in mov default to big endianMark Himsley2014-03-09
| | | | | | | | | | | | | | | | | | | | | | | | | It is my understanding that "Unless otherwise stated, all data in a QuickTime movie is stored in big-endian byte ordering" [1] in MOV files. I have a couple of thousand files, which technically are invalid because their sound sample description element 4CC is 'lpcm' but its version is 0 - and "Version 0 supports only uncompressed audio in raw ('raw ') or twos-complement ('twos') format" [2] Because isom.c only contains a mapping for 4CC 'lpcm' to AV_CODEC_ID_PCM_S16LE, these files have their audio decoded as LE when it is actually BE. This commit adds AV_CODEC_ID_PCM_S16BE as the first match for 4CC 'lpcm'. [1] https://developer.apple.com/library/mac/documentation/quicktime/QTFF/qtff.pdf page 21 [2] https://developer.apple.com/library/mac/documentation/quicktime/QTFF/qtff.pdf page 178 Reviewed-by: Yusuke Nakamura <muken.the.vfrmaniac@gmail.com>
* isom: add "MNG" FourCCPiotr Bandurski2014-03-09
|
* isom: Support MPEG-2 video mov files from FPC5Carl Eugen Hoyos2014-03-09
|
* isom: add "NO16" FourCCPiotr Bandurski2014-03-09
|
* isom: add Radius DV YUV FourCCsPiotr Bandurski2014-03-09
|
* isom: Support Sony XAVC in movCarl Eugen Hoyos2014-03-09
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* isom: add xd51 hdcamBen Littler2014-03-09
| | | | Someone needs to binary search FCP for new isom...
* movenc: allow override of "writing application" tagJohn Stebbins2014-03-08
| | | | | | Signed-off-by: Tim Walker <tdskywalker@gmail.com> CC: libav-stable@libav.org
* matroskaenc: allow override of "writing application" tagJohn Stebbins2014-03-08
| | | | | | Signed-off-by: Tim Walker <tdskywalker@gmail.com> CC: libav-stable@libav.org
* matroskadec: cosmetics: Fix "attachement" vs. "attachment" typoDiego Biurrun2014-03-07
|
* matroskadec: K&R formatting cosmeticsKeiji Costantini2014-03-07
| | | | | | Also sort #includes into canonical order. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rtmppkt: Rename the ts_delta field to ts_fieldMartin Storsjö2014-03-07
| | | | | | | | | | | Based on a suggestion by Martin Panter. This is more descriptive, since it's the actual timestamp field from the RTMP packet, which might or might not be a delta depending on context (in some packets it's a delta, in some packets it's an absolute timestamp, and in some packets it's 0xffffff to indicate that the actual delta or absolute timestamp is transmitted separately). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmppkt: Properly handle extended timestamps when writingMartin Panter2014-03-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmppkt: Add a descriptive commentMartin Panter2014-03-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmppkt: Handle extended timestamp field even for one-byte headerMartin Panter2014-03-07
| | | | | | | | | | | | | | | | | | | | | Related fix in "rtmpdump": https://repo.or.cz/w/rtmpdump.git/commitdiff/79459a2 Adobe's RTMP specification (21 Dec 2012), section 5.3.1.3 ("Extended Timestamp"), says "this field is present in Type 3 chunks". Type 3 chunks are those with the one-byte header size. This resolves intermittent hangs and segfaults caused by the read function, and also includes an untested fix for the write function. The read function was tested with ABC (Australia) News 24 streams, however they are probably restricted to only Australian internet addresses. Some of the packets at the start of these streams seem to contain junk timestamp fields, often requiring the extended field. Test command: avplay rtmp://cp81899.live.edgefcs.net/live/news24-med@28772 Signed-off-by: Martin Storsjö <martin@martin.st>
* mxf: Return meaningful errorsLuca Barbato2014-03-06
|
* mxf: Parse random index packPaul B Mahol2014-03-06
| | | | | | | | | | Get the last partition offset and use it when footer partition offset is missing. Footer partition may not be present and even if present footer partition offset may not be set in any partition except last one. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>