aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
...
* | doc/general: update after recent additionsPaul B Mahol2015-10-251-1/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat: add xvag demuxerPaul B Mahol2015-10-254-2/+116
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avutil/tree: add additional const qualifier to the comparatorGanesh Ajjanagadde2015-10-245-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | libc's qsort comparator has a const qualifier on both arguments. This adds a missing const qualifier to exactly match the comparator API. Existing usages of av_tree_find, av_tree_insert are appropriately modified: type signature changes of the comparators, and removal of unnecessary void * casts of function pointers. Reviewed-by: Henrik Gramner <henrik@gramner.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* | all: remove some casts of function pointer to void *Ganesh Ajjanagadde2015-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | These casts are unnecessary, and may safely be removed. Found by enabling -Wpedantic on clang 3.7. Tested with FATE. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* | lavf/ingenientdec: Add a probe function.Carl Eugen Hoyos2015-10-242-2/+13
| |
* | avformat/genh: add ADPCM IMA DVI supportPaul B Mahol2015-10-231-1/+6
| | | | | | | | | | | | Our decoder have wrong name. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/ads: extend format long descriptionPaul B Mahol2015-10-231-1/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/svag: extend format long descriptionPaul B Mahol2015-10-231-1/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/msf: extend format long descriptionPaul B Mahol2015-10-231-1/+1
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/mov: Autodetect mp3s which need parsingMichael Niedermayer2015-10-231-0/+7
| | | | | | | | | | | | | | | | | | | | mp3 packets all have the same duration and number of samples if their duration indicated in the container varies then thats an indication that they are not 1 mp3 packet each. If this autodetection fails for some case then please contact us and provide a testcase. Fixes Ticket4938
* | avfilter,swresample,swscale: use fabs, fabsf instead of FFABSGanesh Ajjanagadde2015-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is well known that fabs and fabsf are at least as fast and sometimes faster than the FFABS macro, at least on the gcc+glibc combination. For instance, see the reference: http://patchwork.sourceware.org/patch/6735/. This was a patch to glibc in order to remove their usages of a macro. The reason essentially boils down to fabs using the __builtin_fabs of the compiler, while FFABS needs to infer to not use a branch and to simply change the sign bit. Usually the inference works, but sometimes it does not. This may be easily checked by looking at the asm. This also has the added benefit of reducing macro usage, which has problems with side-effects. Note that avcodec is not handled here, as it is huge and most things there are integer arithmetic anyway. Tested with FATE. Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* | Merge commit 'f890677d05bc4e8b494a73373ab4cc19791bf884'Hendrik Leppkes2015-10-222-2/+5
|\| | | | | | | | | | | | | * commit 'f890677d05bc4e8b494a73373ab4cc19791bf884': Replace any remaining avpicture function with imgutils Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * Replace any remaining avpicture function with imgutilsVittorio Giovara2015-10-212-2/+6
| | | | | | | | | | | | avpicture_get_size() -> av_image_get_buffer_size() Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * httpauth: Add space after commas in HTTP/RTSP auth headerAndrey Utkin2015-10-141-9/+10
| | | | | | | | | | | | | | | | | | | | | | This fixes access to Grandstream cameras, which return 401 otherwise. VLC sends Authorization: header with spaces between parameters, and it is known to work with Grandstream devices and broad range of other HTTP and RTSP servers, so author considers switching to such behaviour safe. See RFC 2617 (HTTP Auth). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | libavformat/electronicarts: also demux mpeg audio layer 2Peter Ross2015-10-221-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Peter Ross <pross@xvid.org> http://wiki.multimedia.cx/index.php?title=Electronic_Arts_SCxl Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavf/mpjpegdec: Return 0 if an allocation inside the probe function fails.Carl Eugen Hoyos2015-10-221-1/+1
| |
* | avformat/electronicarts: fix demuxing of certain eam filesPaul B Mahol2015-10-221-1/+13
| | | | | | | | | | | | Such files have gaps between header chunks. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/electronicarts: support ADPCM PSXPaul B Mahol2015-10-221-3/+13
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | libavformat/mxfdec.c: Report dark metadata keys only when they match no ↵Alexis Ballier2015-10-221-4/+4
| | | | | | | | | | | | | | parser at all, not everytime they fail to match one. Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libavformat/mxfdec.c: cosmetics: Add missing space after '?' in log message.Alexis Ballier2015-10-221-1/+1
| | | | | | | | | | Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec: drop 2 suffix from avpriv_ac3_parse_header2Andreas Cadhalpun2015-10-222-3/+3
| | | | | | | | | | | | | | avpriv_ac3_parse_header was removed in commit 3dfb643. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | lavf: add oggparsedaala and bump microRostislav Pehlivanov2015-10-215-1/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a parser for the current bitstream produced by Daala. It currently bears a large similarity with Theora, another codec produced by Xiph. While likely to change in the future, its basic format of packet parsing should remain fairly identical with its current structure. Once the bitstream freezes, there are a few probable simplifications that could be made. Also, the current version (major, minor and micro) is stuck at zero so it's unusable as a way to warn about possible incompatibilities. This will change once the bitstream freezes, however until then this file is strictly targeting the current git master of the reference encoder, libdaala. This file was developed independently at the same time by both myself and Vittorio Giovara, who used libav as a starting point. For fairness, and to prevent confusion and allegations, his name has been added to the copyright in the license header as well, and vice versa.
* | avformat/mp3dec: improve junk skipping heuristicwm42015-10-201-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 2b3e9bbfb529e6bde238aeb511b55ebe461664c8 caused problems for a certain API user: https://code.google.com/p/chromium/issues/detail?id=537725 https://code.google.com/p/chromium/issues/detail?id=542032 The problem seems rather arbitrary, because if there's junk, anything can happen. In this case, the imperfect junk skipping just caused it to read different junk, from what I can see. We can improve the accuracy of junk detection by a lot by checking if 2 consecutive frames use the same configuration. While in theory it might be completely fine for the 1st frame to have a different format than the 2nd frame, it's exceedingly unlikely, and I can't think of a legitimate use-case. This is approximately the same mpg123 does for junk skipping. The set of compared header bits is the same as the libavcodec mp3 parser uses for similar purposes.
* | avformat: add wve demuxerPaul B Mahol2015-10-204-1/+65
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat: add msf demuxerPaul B Mahol2015-10-204-2/+99
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/vag: Remove unused variable posMichael Niedermayer2015-10-181-2/+0
| | | | | | | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/rsd: add VAG supportPaul B Mahol2015-10-181-1/+7
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | mpegts: Make the sdt_period a doubleDerek Buitenhuis2015-10-172-3/+3
| | | | | | | | | | | | | | Having it as a float didn't even allow enough precision to check for INT_MAX/2. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | mpegts: Make the pat_period a doubleDerek Buitenhuis2015-10-172-3/+3
| | | | | | | | | | | | | | Having it as a float didn't even allow enough precision to check for INT_MAX/2. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avformat/vag: fix demuxing stereo filesPaul B Mahol2015-10-171-17/+17
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | concatdec: fix file_start_time calculation regressionMarton Balint2015-10-171-1/+1
| | | | | | | | | | | | | | | | Fixes ticket #4924. Found-by: Jaroslav Šnajdr <jsnajdr@gmail.com> Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Marton Balint <cus@passwd.hu>
* | libavformat/Makefile: remove unnecessary object file from wtv demuxerHendrik Leppkes2015-10-171-1/+1
| | | | | | | | The wtv demuxer doesn't reference any functionality from asfdec or asfcrypt
* | avformat/rsd: Check av_new_packet() return valueMichael Niedermayer2015-10-171-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/genh: Check av_new_packet() return valueMichael Niedermayer2015-10-171-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/rsd: propagate return values of extradata helper functionsJames Almer2015-10-161-5/+5
| | | | | | | | | | | | They can return errors other than ENOMEM Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat: add svag demuxerPaul B Mahol2015-10-164-1/+81
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/rsd: add WADP supportPaul B Mahol2015-10-161-18/+37
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat: add ads demuxerPaul B Mahol2015-10-164-1/+92
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat: add vag demuxerPaul B Mahol2015-10-164-1/+88
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat: add genh demuxerPaul B Mahol2015-10-164-1/+183
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/hls: add support for EXT-X-MAPAnssi Hannula2015-10-151-10/+182
| | | | | | | | | | | | | | | | | | Without EXT-X-MAP support we miss the first bytes of some streams. These streams worked by luck before byte-ranged segment support was added in da7759b3579de3e98deb1ac58e642b861280ba54 Fixes ticket #4797.
* | avformat/hls: fix segment selection regression on track changes of live streamsAnssi Hannula2015-10-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit ad701326b43078b90 ("avformat/hls: open playlists immediately when AVDISCARD_ALL is dropped") inadvertently caused first_packet to never be cleared, causing select_cur_seq_no() to not use the specific code for live streams. In practice this means that when the user selects a different audio track during live stream (i.e. non-VOD) playback, there may be some additional delay as the code might select an incorrect segment at first, and we have to wait for video to catch audio (if too late segment was selected) or to download more following audio segments (if too early segment was selected). Fix that by restoring the zeroing of first_packet.
* | lavf: Remove duplicated latm demuxer.Carl Eugen Hoyos2015-10-154-17/+3
| | | | | | | | The demuxer used to demux loas files for which a dedicated demuxer exists.
* | Merge commit 'e55376a1fd5abebbb0a082aa20739d58c2260a37'Hendrik Leppkes2015-10-141-3/+3
|\| | | | | | | | | | | | | * commit 'e55376a1fd5abebbb0a082aa20739d58c2260a37': rtmpproto: Write correct flv packet sizes at the end of packets Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * rtmpproto: Write correct flv packet sizes at the end of packetsMichael Niedermayer2015-10-141-3/+4
| | | | | | | | | | | | | | In one case it was written as zero, one case left it uninitialized, missed the 11 bytes for the flv header. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avformat/async: cache some data for fast seek backwardZhang Rui2015-10-141-19/+104
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavf/vc1dec: Autodetect raw vc-1 streams.Carl Eugen Hoyos2015-10-144-6/+83
| | | | | | | | Move the demuxer into its own file.
* | Merge commit '34ed5c2e4d9b7fe5c9b3aae2da5599fabb95c02e'Hendrik Leppkes2015-10-142-2/+7
|\| | | | | | | | | | | | | | | | | | | * commit '34ed5c2e4d9b7fe5c9b3aae2da5599fabb95c02e': avformat: Do not use AVFMT_RAWPICTURE Removal from ffmpeg.c not merged because some parts of avdevice still use it Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * avformat: Do not use AVFMT_RAWPICTURELuca Barbato2015-10-132-2/+7
| | | | | | | | | | There are no formats supporting it anymore and it is deprecated. Update the documentation accordingly.
* | Merge commit 'b9ece15a01782b4f301c0c139d1d7b20f848914c'Hendrik Leppkes2015-10-141-2/+2
|\| | | | | | | | | | | | | * commit 'b9ece15a01782b4f301c0c139d1d7b20f848914c': nullenc: Use the wrapped avframe pseudo-encoder Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>