aboutsummaryrefslogtreecommitdiff
path: root/libavformat
AgeCommit message (Collapse)Author
2019-02-10lavf/img2dec: Split img2 and img2pipe options.Carl Eugen Hoyos
2019-02-10avformat/hlsenc: fix fmp4_init_filename file name with %v problemSteven Liu
when set option fmp4_init_filename to init_%v.mp4 before patch: the init file will be init_%v_0.mp4, init_%v_1.mp4 after patch: the init file will be init_0.mp4, init_1.mp4 Reported-By: Gyan Doshi <ffmpeg@gyani.pro> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-02-10lavf/mpegts: add reading of ARIB data coding descriptorJan Ekström
This enables us to read the data coding type utilized for a specific private data stream, of which we currently are interested in ARIB caption streams. The component tag limitations are according to ARIB TR-B14, and the component IDs are defined in ARIB STD-B10.
2019-02-09lavf/mpegts: Convert service_name and service_provider to utf-8.Carl Eugen Hoyos
Fixes ticket #6320.
2019-02-08avformat/mov: validate chunk_count vs stsc_datachcunningham
Bad content may contain stsc boxes with a first_chunk index that exceeds stco.entries (chunk_count). This ammends the existing check to include cases where chunk_count == 0. It also patches up the case when stsc refers to unknown chunks, but stts has no samples (so we can simply ignore stsc). Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-02-08avformat/mov.c: require tfhd to begin parsing trunchcunningham
Detecting missing tfhd avoids re-using tfhd track info from the previous moof. For files with multiple tracks, this may make a mess of the avindex and fragindex, which can later trigger av_assert0 in mov_read_trun(). Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-02-07avformat/movenc: Add more error checking when writing sample entries.Nikolas Bowe
Fixes a problem where a sample entry which cannot be written correctly appears to succeed, but produces an invalid file. For example, this command: ffmpeg -f lavfi -i sine=frequency=1000:duration=5 -codec:a ac3 -movflags +empty_moov -frag_duration 5000000 /tmp/foo.mp4 produced a file with the ac-3 sample entry, but no AC3SpecificBox (dac3) child, which is invalid according to ETSI TS 102 366. Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-02-06libavformat/dashdec: disable seeking only for live streams.Paweł Wegner
Signed-off-by: Paweł Wegner <pawel.wegner95@gmail.com>
2019-02-04avformat/async: fix assertion condition when draining bufferMarton Balint
Fixes some random assertion failures with ffprobe -show_packets async:samples/ffmpeg-bugs/trac/ticket6132/Samsung_HDR_-_Chasing_the_Light.ts > /dev/null Signed-off-by: Marton Balint <cus@passwd.hu>
2019-02-04avformat/mpegts: cache PID discard valuesMarton Balint
discard_pid can be quite expensive, so let's cache it and recalculate it on every packet start. ffmpeg -y -i samples/MPEG-VOB/sdtv/RAI.ts -c copy -map 0:v:0 -map 0:a:0 -f mpegts /dev/null Before: 1685 decicycles in handle_packet, 523483 runs, 805 skips After: 883 decicycles in handle_packet, 523505 runs, 783 skips Signed-off-by: Marton Balint <cus@passwd.hu>
2019-01-31avformat/rtsp: Check number of streams in sdp_parse_line()Michael Niedermayer
Fixes: OOM Found-by: Michael Hanselmann <public@hansmi.ch> Reviewed-by: Michael Hanselmann <public@hansmi.ch> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-01-31avformat/hlsenc: add var_stream_map LANGUAGE field string parameterSteven Liu
use a:0,agroup:aud_low,default:Yes,language:CHN a:1,agroup:aud_low,language:ENG a:2,agroup:aud_high,default:YesYes,language:CHN a:3,agroup:aud_high,language:ENG v:0,agroup:aud_low v:1,agroup:aud_high create master m3u8 list. result: EXTM3U EXT-X-VERSION:3 EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="group_aud_low",NAME="audio_0",DEFAULT=YES,LANGUAGE="CHN",URI="out_0.m3u8" EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="group_aud_low",NAME="audio_1",DEFAULT=NO,LANGUAGE="ENG",URI="out_1.m3u8" EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="group_aud_high",NAME="audio_2",DEFAULT=YES,LANGUAGE="CHN",URI="out_2.m3u8" EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="group_aud_high",NAME="audio_3",DEFAULT=NO,LANGUAGE="ENG",URI="out_3.m3u8" EXT-X-STREAM-INF:BANDWIDTH=1170400,RESOLUTION=640x480,CODECS="avc1.64001e,mp4a.40.2",AUDIO="group_aud_low" out_4.m3u8 EXT-X-STREAM-INF:BANDWIDTH=3440800,RESOLUTION=640x480,CODECS="avc1.64001e,mp4a.40.2",AUDIO="group_aud_high" out_5.m3u8 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-01-31avformat/hlsenc: add var_stream_map DEFAULT field status parameterSteven Liu
use a:0,agroup:aud_low,default:Yes a:1,agroup:aud_low, a:2,agroup:aud_high,default:Yes a:3, agroup:aud_high, v:0,agroup:aud_low v:1,agroup:aud_high create master m3u8 list. result: EXTM3U EXT-X-VERSION:3 EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="group_aud_low",NAME="audio_0",DEFAULT=YES,URI="out_0.m3u8" EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="group_aud_low",NAME="audio_1",DEFAULT=NO,URI="out_1.m3u8" EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="group_aud_high",NAME="audio_2",DEFAULT=YES,URI="out_2.m3u8" EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="group_aud_high",NAME="audio_3",DEFAULT=NO,URI="out_3.m3u8" EXT-X-STREAM-INF:BANDWIDTH=1170400,RESOLUTION=640x480,CODECS="avc1.64001e,mp4a.40.2",AUDIO="group_aud_low" out_4.m3u8 EXT-X-STREAM-INF:BANDWIDTH=3440800,RESOLUTION=640x480,CODECS="avc1.64001e,mp4a.40.2",AUDIO="group_aud_high" out_5.m3u8 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-01-31avformat/hlsenc: make the EXT-X-MEDIA NAME field by stream id.Steven Liu
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-01-31avformat/rtsp: Clear reply in every iteration in ff_rtsp_connect()Michael Niedermayer
Fixes: Infinite loop Found-by: Michael Hanselmann <public@hansmi.ch> Reviewed-by: Michael Hanselmann <public@hansmi.ch> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-01-31avformat/flvdec: Try to support some concatenated flv filesMichael Niedermayer
Fixes: discont.flv Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-01-30lavf/asf: Remove an unneeded forward declaration.Carl Eugen Hoyos
2019-01-30avformat/tee : Pass standards compliance value to slave muxers as wellKarthick J
2019-01-29avformat/http: clarify that ffmpeg will attempt to add missing CRLFGyan Doshi
2019-01-28avformat/dashenc: Skip writing trailer for MP4 output when in streaming modeKarthick J
In streaming mode mp4 trailer is not required for playout.
2019-01-27lavf/subviewerdec: Skip leading BOM.Carl Eugen Hoyos
Fixes ticket #7661.
2019-01-27lavf/cafdec: Do not fail for unknown atoms with negative size.Carl Eugen Hoyos
The specification requires the demuxer to only read the data atom up to its given size, this is necessary as atoms are allowed at the end of the file. This patch duplicates the behaviour of the QuickTime player.
2019-01-27avcodec: add ARBC decoderPaul B Mahol
Thanks Kostya for great help in reversing binary.
2019-01-24lavf/supenc: Remove some unneeded casts.Carl Eugen Hoyos
2019-01-24lavf/movenc: Mention video_track_timescale as option to fix the timescale.Carl Eugen Hoyos
Smarter improvements for this error message were suggested in the past but this is certainly an improvement.
2019-01-23lavf/hlsproto: Replace a wrong eol comma with a semicolon.caohui
2019-01-22avformat/img2enc: mention -frames:v in error messageLou Logan
Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Kieran O Leary <kieran.o.leary@gmail.com>
2019-01-22avformat/concatdec: always re-calculate start time and durationMarton Balint
This allows the underlying files to change their duration on subsequent avformat context opens. An example use case where this matters: ffconcat version 1.0 file dummy.mxf file dummy.mxf ffmpeg -re -stream_loop -1 -i dummy.ffconcat -f sdl2 none The user can seamlessly change the input by atomically replacing dummy.mxf. v2: Set ConcatFile duration in read_header for all segments with known durations because from now on we always recalculate the start time in open_file, and an instant seek could have caused unset ConcatFile durations. Signed-off-by: Marton Balint <cus@passwd.hu>
2019-01-22avformat/concatdec: fix cur_dts based duration calculation with nonzero ↵Marton Balint
stream start_time Signed-off-by: Marton Balint <cus@passwd.hu>
2019-01-22avformat/concatdec: factorize the duration calculating functionMarton Balint
Signed-off-by: Marton Balint <cus@passwd.hu>
2019-01-21avformat/dashenc: Format xs:datetime in millisecond precisionKarthick J
For low latency streaming even milliseconds matter!
2019-01-19lavc/hls: Cosmetics: Fix indentation for free_segment_listJun Zhao
Commit 673d8cfd518 missed the indent Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2019-01-16avformat/hcom: check probe buffer sizePaul B Mahol
2019-01-16lavf/rtpproto: Use the correct patch when including poll.hCarl Eugen Hoyos
Fixes a warning using musl: In file included from libavformat/rtpproto.c:43:0: /usr/local/musl/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
2019-01-15avformat: add HCOM demuxerPaul B Mahol
2019-01-14lavf/mov: Do not fail hard for more invalid atoms.Carl Eugen Hoyos
This is what several other players do and what FFmpeg already does for the sidx atom. Fixes ticket #7679.
2019-01-07avformat/file: Fix file delete for WindowsKarthick Jeyapal
Fixes bug id : 7638
2019-01-04avformat/vapoursynth: properly initialize err variable in read_header_vs()nu774
The variable "err" is not initialized, and set only when something went wrong. When everything is OK, nobody sets it, so using it result in UB. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-01-04avformat/hlsenc: free variant streams after write all variant streams infoSteven Liu
fix ticket: 7631 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-01-02mov: Remove duration-of-last-frame heuristic hackDerek Buitenhuis
This breaks totally valid files that get caught in its heuristic. This, according to the commit message, is my own doing, having asked Michael to implement this check and providing a sample that was "wrong". I am now atoning for my sins, and removing this hack, having seen the light (aka that this was silly to do in the first place). Resotores correct behavior on valid files. This reverts commit 8e5e84c2a2a21a979b48e80c5a8dd44754ab3f21. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2019-01-02avformat/anm: use ff_get_extradata()Paul B Mahol
2019-01-02avformat/yop: use ff_get_extradata()Paul B Mahol
2019-01-02avformat/acm: use ff_get_extradata()Paul B Mahol
2019-01-02aformat/bfi: use ff_get_extradata()Paul B Mahol
2018-12-31avcodec: add HYMT decoderPaul B Mahol
2018-12-31avformat/au: do not use invalid block_align for small bits per samplePaul B Mahol
Fixes #5481.
2018-12-31avformat/libopenmpt: Fix successfull typoMichael Niedermayer
Reviewed-by: Lou Logan <lou@lrcd.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-12-30avformat/concatdec: always allow seeking to startMarton Balint
Signed-off-by: Marton Balint <cus@passwd.hu>
2018-12-28avformat/wvdec: detect and error out on WavPack DSD filesDavid Bryant
Not currently supported.
2018-12-28avcodec/wavpack: fix decoding of files with many channelsPaul B Mahol
Fixes decoding of Run_The_Race_-_3rd_Order_Ambisonic_SN3D.wv