aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* lavf/hlsenc: Do not mix declarations and code.Carl Eugen Hoyos2018-11-161-5/+5
| | | | | | | | | | | | | | Fixes the following warnings: libavformat/hlsenc.c: In function 'hls_write_trailer': libavformat/hlsenc.c:2364:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] uint8_t *buffer = NULL; ^~~~~~~ libavformat/hlsenc.c:2372:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] int byterange_mode = (hls->flags & HLS_SINGLE_FILE) || (hls->max_seg_size > 0); ^~~ libavformat/hlsenc.c:2379:13: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] int range_length = 0; ^~~
* lavf/dashenc: set FLAC manifest codec string to "flac"Jan Ekström2018-11-141-0/+1
| | | | | | | | | | | | | | Internally in ISOBMFF the FLAC-in-ISOBMFF draft uses "fLaC" as the identifier for FLACSampleEntry, and there seems to be no MPEG-DASH specification for the in-manifest identifier for FLAC. After testing the browsers' implementations, it seems like all of the major browser vendors have decided to utilize the MIME type for FLAC ("audio/flac") as the identifier. This change set leads to that string being utilized for FLAC streams instead of the sample entry identifier ("fLaC"), which is the default behavior. Verified by auri_ on IRC to play with the major browsers.
* avformat/hlsenc: check dirname and fix vtt problemSteven Liu2018-11-121-5/+14
| | | | | | | | | fix ticket: 7527 check dirname before use it refine webvtt code in the hls_delete_old_segments Reported-by: caspy Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* lavf/apngdec: Return EOF for incomplete files.Carl Eugen Hoyos2018-11-081-0/+4
| | | | Fixes ticket #7536.
* flvdec: Export unknown metadata packets as opaque dataMartin Storsjö2018-11-053-5/+16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Rename FLV_STREAM_TYPE_DATA into FLV_STREAM_TYPE_SUBTITLEMartin Storsjö2018-11-052-5/+5
| | | | | | This is always treated as a subtitle at the moment anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat/ftp: allow nonstandard 202 reply to OPTS UTF8Marton Balint2018-11-041-2/+3
| | | | | | Fixes ticket #7481. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/dashenc: Disable writing CODECS tag for HEVC streamskjeyapal@akamai.com2018-11-021-1/+5
| | | | | | For HEVC streams, only the FourCC tag is written without profile, level etc., This is breaking playout support in native Safari. Native Safari playout expects the full info in CODECS tag or None at all.
* avformat/ivfenc: use the av1_metadata bsf to insert Temporal Delimiter OBUs ↵James Almer2018-11-011-0/+2
| | | | | | | if needed Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* Bump minor version for master after 4.1 branchpointn4.2-devMichael Niedermayer2018-11-021-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Bump minor versions for branching 4.1Michael Niedermayer2018-11-021-2/+2
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/ftp: return AVERROR_EOF for EOFMarton Balint2018-11-011-2/+2
| | | | | | Without this FTP just hangs on eof... Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/hlsenc.c: fix the output's duration smaller than input's in ↵Charles Liu2018-10-301-2/+1
| | | | | | | | | | sub-range mode. In fmp4 & sub-range mode, the output's duration always smaller than expected, because the size of the last #EXT-X-BYTERANGE is too small. Signed-off-by: Charles Liu <liuchh83@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc.c: the size of init.mp4 is zero.Charles Liu2018-10-301-0/+19
| | | | | | | | | | The size of init.mp4 is zero in fmp4 mode, when the input duraton smaller than the expected segment time. fix ticket: 7166 Signed-off-by: Charles Liu <liuchh83@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc.c: remove the useless variable fmp4_init_mode.Charles Liu2018-10-301-4/+0
| | | | | Signed-off-by: Charles Liu <liuchh83@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc.c: fix memory leak in fmp4 mode.Charles Liu2018-10-301-0/+1
| | | | | Signed-off-by: Charles Liu <liuchh83@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: fix the duration of m4s segment is unusually smaller than ↵Charles Liu2018-10-301-4/+0
| | | | | | | | | | expected. In fmp4 mode, the duration of the second m4s segment is unusually smaller than the expected segment time. Signed-off-by: Charles Liu <liuchh83@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/rpl: Support files containing 8 bit PCM or VIDC audioCameron Cawley2018-10-261-1/+16
| | | | Signed-off-by: Cameron Cawley <ccawley2011@gmail.com>
* avcodec: Implement Archimedes VIDC encoder/decoderCameron Cawley2018-10-264-0/+10
| | | | Signed-off-by: Cameron Cawley <ccawley2011@gmail.com>
* avformat/dashenc: Support HTTP persistent for init segments as wellkjeyapal@akamai.com2018-10-261-2/+5
|
* avformat/mxfenc: simplify dnxhd handling and add more flavorsBaptiste Coudurier2018-10-241-155/+63
|
* avformat/libsrt: add several options supported in srt 1.3.0Matsuzawa Tomohiro2018-10-232-1/+59
| | | | | | | | | | Several SRT options are missing. Since pkg_config requires libsrt v1.3.0 and above, it should be able to support options added in libsrt v1.3.0 and below. This commit adds 8 SRT options. sndbuf, rcvbuf, lossmaxttl, minversion, streamid, smoother, messageapi and transtype The keys of option are equivalent to stransmit. https://github.com/Haivision/srt/blob/v1.3.0/apps/socketoptions.hpp#L196-L223 Signed-off-by: Marton Balint <cus@passwd.hu>
* lavf/vc1test: add rcv to vc1test demuxer extensionsJun Zhao2018-10-221-0/+1
| | | | | | rcv is commonly used as extension for vc1 test stream files. Signed-off-by: Jun Zhao <jun.zhao@intel.com>
* lavf/vc1test: fix vc1test can't probe some RCV file.Jun Zhao2018-10-221-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | case 1: use the hexdump -C SMM0005.rcv get: size skip (size - 4) | | V V 00000000 18 00 00 c5 05 00 00 00 4d f1 0a 11 00 e0 01 00 00000010 00 d0 02 00 00 0c 00 00 00 88 13 00 00 c0 65 52 ^ | size + 16 case 2: same the command for SMM0015.rcv get: size | V 00000000 19 00 00 c5 04 00 00 00 41 f3 80 01 40 02 00 00 00000010 d0 02 00 00 0c 00 00 00 00 00 00 10 00 00 00 00 ^ | size + 16 There are different the RCV file format for VC-1, vc1test just handle the case 2 now, this fix will support the case 1. (Both of test clips come from: SMPTE Recommended Practice - VC-1 Decoder and Bitstream Conformance). And I think I got a older VC-1 test clip in the case 1. Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Reviewed-by: Jerome Borsboom <jerome.borsboom@carpalis.nl> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Yan, FengX <fengx.yan@intel.com>
* avformat/dashenc: URL close unconditionally after DELETE segmentskjeyapal@akamai.com2018-10-211-1/+1
| | | | | | Fixes bug with HTTP DELETE when HTTP Persistent is ON. Right now, HTTP Persistent connections is supported only for POSTs and PUTs. HTTP DELETE will still open a new connection every time.
* avformat/dashenc: Support HTTP Persistent for master.m3u8 as wellkjeyapal@akamai.com2018-10-211-5/+6
|
* lavf/matroskadec: Simplify string length calculation.Carl Eugen Hoyos2018-10-191-3/+3
| | | | FFmpeg relies on sizeof(char) == 1.
* lavf/dump: Fix a typo: comentary -> commentary.Carl Eugen Hoyos2018-10-192-2/+2
| | | | Fixes ticket #7499.
* avformat/dashenc: Dont ignore the codec tag from codec parametersKarthick Jeyapal2018-10-181-1/+3
|
* avformat/utils: Never store negative values in last_IP_durationMichael Niedermayer2018-10-181-2/+3
| | | | | | | | Fixes: integer overflow compute_pkt_fields() Fixes: compute_pkt_usan Reported-by: Thomas Guilbert <tguilbert@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: Fix integer overflow in discontinuity checkMichael Niedermayer2018-10-181-1/+1
| | | | | | | | Fixes: signed integer overflow: 7738135736989908991 - -7954308516317364223 cannot be represented in type 'long' Fixes: find_stream_info_usan Reported-by: Thomas Guilbert <tguilbert@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mxfenc: Remove a write-only variable.Carl Eugen Hoyos2018-10-171-6/+1
| | | | | Fixes the following warning: libavformat/mxfenc.c:2125:22: warning: variable 'frame_size' set but not used
* avformat/xwma: fix WMAv2 with incorrect bit ratebnnm2018-10-171-7/+31
| | | | | | | | | | Fixes trac issue #7215 Output for files created by xWMAEncode and various videogames is correct now. 1ch 32000hz files are still broken, would need fixes in WMA decoder. Signed-off-by: bnnm <bananaman255@gmail.com>
* avformat: add SER demuxerPaul B Mahol2018-10-134-2/+150
|
* lavf/mxfenc: Remove two unused variables.Carl Eugen Hoyos2018-10-131-2/+2
| | | | | | Fixes the following warnings: libavformat/mxfenc.c:2036:9: warning: unused variable 'i' libavformat/mxfenc.c:2125:9: warning: unused variable 'i'
* lavf/mxfdec: demux s436m as eia608 subtitle trackBaptiste Coudurier2018-10-121-0/+106
|
* lavf/mxfenc: support creating s436m data tracksBaptiste Coudurier2018-10-123-5/+49
|
* avformat/mxfenc: correctly set content package rate in system elementBaptiste Coudurier2018-10-123-1/+22
|
* avformat/mxfenc: update body partition with footer offsetBaptiste Coudurier2018-10-121-2/+7
|
* avformat/mxfenc: add mpeg-2 specific metadata, fix compatibility with sony ↵Baptiste Coudurier2018-10-121-4/+42
| | | | content browser
* avformat/mxfenc: write index delta entry array needed by sony vegas pro 11Baptiste Coudurier2018-10-121-115/+93
|
* avformat/dashenc: only write video streams into HLS master playlistJian Yang2018-10-111-1/+3
| | | | | | | Tool mediastreamvalidator reports error "Variant media_[N].m3u8 is missing audio group" for audio streams in HLS master playlist. As audio streams are already listed in audio group, skip them as variant media streams in master playlist.
* lavf/ftp: Remove an unneeded forward declaration.Carl Eugen Hoyos2018-10-091-2/+0
|
* avformat/segment: fix segment_time_delta option min/max valueMarton Balint2018-10-071-1/+1
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/utils: Fix potential integer overflow in extract_extradata()Michael Niedermayer2018-10-071-1/+3
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: Do not use "i" as a context pointer, "i" is normally the ↵Michael Niedermayer2018-10-071-21/+21
| | | | | | | | | integer counter in loops This avoids surprising developers. Its bad to surprise developers with such unexpected things. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: Do not ignore failure in extract_extradata_init()Michael Niedermayer2018-10-071-6/+2
| | | | | | We check for the documented explanation of the "Ignore code" in extract_extradata_check() already Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/movenc: Remove unneeded variable from mov_find_codec_tag()Michael Niedermayer2018-10-071-8/+5
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/ty: use decimal constant for shiftMichael Niedermayer2018-10-071-1/+1
| | | | | | | This was the only case in the source that uses a hexadecimal shift value. The change removed a special case in respect to greping Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/udp: always use IP_ADD_SOURCE_MEMBERSHIP for subscribing to an UDP ↵Marton Balint2018-10-031-24/+28
| | | | | | | | | | | | | | multicast source group in IPv4 That alone supports specifying the interface based on its address. Getting the interface index from the local address seems quite a bit of work in a platform independent way... Obviously for IPv6 we still always use MCAST_JOIN_SOURCE_GROUP. As a side effect this also fixes ticket #7459. Signed-off-by: Marton Balint <cus@passwd.hu>