summaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
...
* avformat/mov: add support for reading Content Light Level BoxJames Almer2017-05-272-0/+45
| | | | | | | | As defined in "VP Codec ISO Media File Format Binding v1.0" https://github.com/webmproject/vp9-dash/blob/master/VPCodecISOMediaFileFormatBinding.md Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: add support for reading Mastering Display Metadata BoxJames Almer2017-05-272-0/+59
| | | | | | | | As defined in "VP Codec ISO Media File Format Binding v1.0" https://github.com/webmproject/vp9-dash/blob/master/VPCodecISOMediaFileFormatBinding.md Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mux: Fix copy an paste typoMichael Niedermayer2017-05-271-1/+1
| | | | | Found-by: Roger Scott <rscott@grammatech.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mux: remove autobsf extradata propagation hackJames Almer2017-05-241-13/+0
| | | | | | The offending bitstream filter was fixed, so this is no longer needed. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/adtsenc: check packet side data for AAC extradata updatesJames Almer2017-05-241-0/+17
| | | | | | This is in preparation for the following patch. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/latmenc: check packet side data for AAC extradata updatesJames Almer2017-05-241-4/+18
| | | | | | This is in preparation for a following patch. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskaenc: check packet side data for AAC extradata updatesJames Almer2017-05-241-8/+66
| | | | | | | | | | | | This adapts and merges commit f4bf236338f6001736a4784b9c23de863057a583 from libav, originally skipped in 13a211e6320d061d9e8c29354c81239324b2db03 as it was not necessary back then. Is's applied now in preparation for the following patches, where the aac_adtstoasc bitstream filter will start to correctly propagate the new extradata through packet side data. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/movenc: always check for new extradata on a packetJames Almer2017-05-241-16/+18
| | | | | | | | Don't just look at zero sized packets, and also check for AAC extradata updates, in preparation for the following patches. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/hls: do not transfer custom IO flagClément Bœsch2017-05-221-1/+1
| | | | See 0dcac9c3f0f8f32009098edb704fac4b08bac951
* lavf/concatdec: do not transfer custom IO flagClément Bœsch2017-05-221-1/+1
| | | | | | | If the source is using a custom IO, setting this flag causes heavy leaks since the segments will not have their avio context closed. Regression since f5da453b068f55d335ca403d2e2b4dd2ac3d4331.
* Use AVOnce as a static variable consistentlyHendrik Leppkes2017-05-221-1/+1
| | | | | | | Using AVOnce as a stack variable makes no sense as the state is lost when the function exits. This fixes repeated calls to av(filter/device)_register_all
* lavf/img2: Add svg and svgz to allow reading image sequences.Carl Eugen Hoyos2017-05-222-1/+3
| | | | Increase the return value for svg_probe() to make it != AVPROBE_SCORE_EXTENSION.
* lavf/riff: Support more vlc fourcc's for 12 and 16 bit yuv4xx.Carl Eugen Hoyos2017-05-211-0/+8
|
* Merge commit 'e519dcd937c7c98815ba9884867590e302272016'Clément Bœsch2017-05-201-3/+2
|\ | | | | | | | | | | | | * commit 'e519dcd937c7c98815ba9884867590e302272016': dashenc: separate segments based on current segment duration Merged-by: Clément Bœsch <u@pkh.me>
| * dashenc: separate segments based on current segment durationPeter Große2017-01-311-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation creates new segments comparing pkt->pts - first_pts > nb_segs * min_seg_duration This works fine, but if the keyframe interval is smaller than "min_seg_duration" segments shorter than the minimum segment duration are created. Example: keyint=50, min_seg_duration=3000000 segment 1 contains keyframe 1 (duration=2s < total_duration=3s) and keyframe 2 (duration=4s >= total_duration=3s) segment 2 contains keyframe 3 (duration=6s >= total_duration=6s) segment 3 contains keyframe 4 (duration=8s < total_duration=9s) and keyframe 5 (duration=10s >= total_duration=9s) ... Segment 2 is only 2s long, shorter than min_seg_duration = 3s. To fix this, new segments are created based on the actual written duration. Otherwise the option name "min_seg_duration" is misleading. Signed-off-by: Peter Große <pegro@friiks.de> Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '1920382aa9f21d7ed1a3c2214990da8d2b067a92'Clément Bœsch2017-05-201-0/+5
|\ \ | |/ | | | | | | | | | | | | | | | | * commit '1920382aa9f21d7ed1a3c2214990da8d2b067a92': dashenc: add option to provide UTC timing source Also use E instead of AV_OPT_FLAG_ENCODING_PARAM to be consistent with the other AVOption. Merged-by: Clément Bœsch <u@pkh.me>
| * dashenc: add option to provide UTC timing sourcePeter Große2017-01-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If set, adds a UTCTiming tag in the manifest. This is part of the recommendations listed in the "Guidelines for Implementations: DASH-IF Interoperability Points" [1][2] Section 4.7 describes means for the Availability Time Synchronization. A usable default is "https://time.akamai.com/?iso" [1] http://dashif.org/guidelines/ [2] http://dashif.org/wp-content/uploads/2016/12/DASH-IF-IOP-v4.0-clean.pdf (current version as of writing) Signed-off-by: Peter Große <pegro@friiks.de> Signed-off-by: Martin Storsjö <martin@martin.st>
| * rtmp: Account for bytes_read wraparoundLuca Barbato2017-01-291-1/+1
| | | | | | | | | | | | | | Servers seem to be happy to receive the wrapped-around value as long as they receive a report, otherwise they timeout. Initially reported and analyzed by Thomas Bernhard.
* | Merge commit '3c2717e48dd8c5115f2be35c2afcabd8a1f67aee'Clément Bœsch2017-05-201-1/+1
|\ \ | |/ | | | | | | | | | | * commit '3c2717e48dd8c5115f2be35c2afcabd8a1f67aee': dashenc: increase buffer time hint in the manifest Merged-by: Clément Bœsch <u@pkh.me>
| * dashenc: increase buffer time hint in the manifestAnton Schubert2017-01-271-1/+1
| | | | | | | | | | | | | | to avoid rebuffering on the clientside for difficult network conditions. Signed-off-by: Anton Schubert <ischluff@mailbox.org> Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '95f1004bdfdf2d26c330c1d4b7c4ac9352d60b18'Clément Bœsch2017-05-201-5/+5
|\ \ | |/ | | | | | | | | | | * commit '95f1004bdfdf2d26c330c1d4b7c4ac9352d60b18': dashenc: add mandatory id to AdaptationSet and Period in manifest Merged-by: Clément Bœsch <u@pkh.me>
| * dashenc: add mandatory id to AdaptationSet and Period in manifestPeter Große2017-01-271-5/+5
| | | | | | | | | | Signed-off-by: Peter Große <pegro@friiks.de> Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '1ae6cb7d6e4fee30754a46bc91f40ff75ac4412a'Clément Bœsch2017-05-201-1/+1
|\ \ | |/ | | | | | | | | | | * commit '1ae6cb7d6e4fee30754a46bc91f40ff75ac4412a': dashenc: fix ISO8601 UTC parsing Merged-by: Clément Bœsch <u@pkh.me>
| * dashenc: fix ISO8601 UTC parsingAnton Schubert2017-01-271-1/+1
| | | | | | | | | | | | | | | | | | Appends Z to timestamp to force ISO8601 datetime parsing as UTC. Without Z, some browsers (Chrome) interpret the timestamp as localtime and others (Firefox) interpret it as UTC. Signed-off-by: Anton Schubert <ischluff@mailbox.org> Signed-off-by: Martin Storsjö <martin@martin.st>
| * tak: Convert to the new bitstream readerAlexandra Hájková2017-01-251-6/+7
| |
| * mpc: Convert to the new bitstream readerAlexandra Hájková2017-01-251-13/+13
| |
| * rtp: Convert to the new bitstream readerAlexandra Hájková2017-01-136-65/+73
| |
| * mov: Convert to the new bitstream readerAlexandra Hájková2017-01-132-24/+27
| |
| * matroskadec: make sure not to leave EbmlBin in an inconsistent stateAnton Khirnov2017-01-041-1/+4
| | | | | | | | | | | | | | | | | | | | If a read fails, the current code will free the data but leave the size non-zero. Make sure the size is zeroed in such a case. CC: libav-stable@libav.org Bug-Id: 1001 Found-By: Kamil Frankowicz Signed-off-by: Sean McGovern <gseanmcg@gmail.com>
| * matroskadec: fix SRT subtitle durationJohn Stebbins2016-12-241-2/+2
| | | | | | | | The codec id for SRT was changed and conditionals were not updated.
| * http: Check for negative chunk sizesMartin Storsjö2016-12-231-2/+3
| | | | | | | | | | | | | | | | | | | | | | A negative chunk size is illegal and would end up used as length for memcpy, where it would lead to memory accesses out of bounds. Found-by: Paul Cher <paulcher@icloud.com> CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
| * Use correct printf conversion specifiers for POSIX integer typesDiego Biurrun2016-12-237-8/+8
| |
* | lavf/mov: make invalid m{d,v}hd time_scale default to 1 instead of erroring outMatthieu Bouron2017-05-201-4/+4
| | | | | | | | | | | | | | Some samples have their metadata track time_scale incorrectly set to 0 and the check introduced by a398f054fdb9b0f0b5a91c231fba6ce014143f71 prevents playback of those samples. Setting the time_scale to 1 fixes playback.
* | avformat/id3v2: Use ffio_ensure_seekback() in id3v2_read_internal()Michael Niedermayer2017-05-191-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/aviobuf: Only downscale the buffer once it has been usedMichael Niedermayer2017-05-191-1/+1
| | | | | | | | | | | | The code mistook the first iteration sometimes as the end Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/movenc: remove experimental check for VP9 streamsJames Almer2017-05-171-7/+0
| | | | | | | | The muxer has been updated and is now complaint with the v1.0 of the spec.
* | img2dec: use standard way to probe for svg/svgz filesRostislav Pehlivanov2017-05-161-20/+8
| |
* | img2dec: add support for piped SVG demuxingRostislav Pehlivanov2017-05-163-0/+22
| | | | | | | | | | | | | | Only checks the extension and MIME type, since determining whether a file is SVG is difficult since they're just XML files. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | movenc/isom: update vpcC box to version 1.0 of the specificationHendrik Leppkes2017-05-162-51/+7
| | | | | | | | | | | | | | | | | | This brings our generation of the vpcC box up to date to version 1.0 of the VP Codec ISO Media File Format Binding. Specifically, color/transfer properties are now written with values based on ISO/IEC 23001-8, which is the same reference specification the AVColor* enumerations are based on.
* | avformat/hlsenc: move old_filename free operation earlierSteven Liu2017-05-111-2/+1
| | | | | | | | | | | | Suggested-by: Aaron Levinson <alevinsn@aracnet.com> Reviewed-by: Aaron Levinson <alevinsn@aracnet.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* | avformat/wavdec: Check chunk_size李赞2017-05-101-0/+2
| | | | | | | | | | | | Fixes integer overflow and out of array access Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libavformat/tcp: fix return code for tcp_acceptSimon Thelen2017-05-102-2/+2
| | | | | | | | | | | | | | | | | | ff_accept can return AVERROR(ETIMEDOUT) and errno will be 0 (or undefined), return ret instead and return ff_neterror() in ff_poll_interrupt instead of AVERROR(errno) to parse WSAGetLastError on Windows. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/matroskadec: fix resource leakSteven Liu2017-05-071-0/+1
| | | | | | | | | | | | | | | | Fixes Coverity CID: 1405453 Reviewed-by: wm4 <nfxjfg@googlemail.com> Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* | rtmpproto: send swfverify value as swfurl if latter is unusedRicardo Constantino2017-05-071-2/+5
| | | | | | | | | | | | | | | | | | Replicates lavf/librtmp.c behavior in L149-156 and rtmpdump's behavior with "--swfVfy <url>" passing the url to swfUrl. Fixes trac ticket #5549. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/utils: free AVStream.codec properly in free_stream()Aaron Levinson2017-05-061-3/+1
| | | | | | | | | | | | Fixes memory leaks. Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit '92db5083077a8b0f8e1050507671b456fd155125'James Almer2017-05-041-2/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | * commit '92db5083077a8b0f8e1050507671b456fd155125': build: Generate pkg-config files from Make and not from configure build: Store library version numbers in .version files Includes cherry-picked commits 8a34f3659371680ca523aecfd9098c28f0f809eb and ee164727dd64c199b87118917e674b17c25e0da3 to fix issues. Changes were also made to retain support for raise_major and build_suffix. Reviewed-by: ubitux Merged-by: James Almer <jamrial@gmail.com>
| * build: Generate pkg-config files from Make and not from configureDiego Biurrun2016-12-221-0/+1
| | | | | | | | | | | | | | | | This moves work from the configure to the Make stage where it can be parallelized and ensures that pkgconfig files are updated when library versions change. Bug-Id: 449
* | avformat/concatdec: port to the new bitstream filter APIJames Almer2017-05-031-65/+31
| | | | | | | | | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Reviewed-by: Aaron Levinson <alevinsn@aracnet.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit '11a9320de54759340531177c9f2b1e31e6112cc2'Clément Bœsch2017-05-031-1/+1
|\ \ | |/ | | | | | | | | | | | | | | * commit '11a9320de54759340531177c9f2b1e31e6112cc2': build: Move build-system-related helper files to a separate subdirectory "ffbuild" directory name is used instead of "avbuild". Merged-by: Clément Bœsch <u@pkh.me>
| * unary: Convert to the new bitstream readerAlexandra Hájková2016-12-191-1/+2
| |
OpenPOWER on IntegriCloud