summaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* Bump minor version for master after 4.1 branchpointn4.2-devMichael Niedermayer2018-11-021-1/+1
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* Bump minor versions for branching 4.1Michael Niedermayer2018-11-021-2/+2
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/ftp: return AVERROR_EOF for EOFMarton Balint2018-11-011-2/+2
| | | | | | Without this FTP just hangs on eof... Signed-off-by: Marton Balint <[email protected]>
* 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 <[email protected]> Signed-off-by: Steven Liu <[email protected]>
* 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 <[email protected]> Signed-off-by: Steven Liu <[email protected]>
* avformat/hlsenc.c: remove the useless variable fmp4_init_mode.Charles Liu2018-10-301-4/+0
| | | | | Signed-off-by: Charles Liu <[email protected]> Signed-off-by: Steven Liu <[email protected]>
* avformat/hlsenc.c: fix memory leak in fmp4 mode.Charles Liu2018-10-301-0/+1
| | | | | Signed-off-by: Charles Liu <[email protected]> Signed-off-by: Steven Liu <[email protected]>
* 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 <[email protected]> Signed-off-by: Steven Liu <[email protected]>
* avformat/rpl: Support files containing 8 bit PCM or VIDC audioCameron Cawley2018-10-261-1/+16
| | | | Signed-off-by: Cameron Cawley <[email protected]>
* avcodec: Implement Archimedes VIDC encoder/decoderCameron Cawley2018-10-264-0/+10
| | | | Signed-off-by: Cameron Cawley <[email protected]>
* avformat/dashenc: Support HTTP persistent for init segments as well[email protected]2018-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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]> Reviewed-by: Jerome Borsboom <[email protected]> Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Jun Zhao <[email protected]> Signed-off-by: Yan, FengX <[email protected]>
* avformat/dashenc: URL close unconditionally after DELETE segments[email protected]2018-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 well[email protected]2018-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 <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* 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 <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* avformat/utils: Fix potential integer overflow in extract_extradata()Michael Niedermayer2018-10-071-1/+3
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* avformat/movenc: Remove unneeded variable from mov_find_codec_tag()Michael Niedermayer2018-10-071-8/+5
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* avformat/udp: specify the local address for some source filtered multicast joinsMarton Balint2018-10-031-4/+11
| | | | | | | | | | | | | We already use localaddr for the multicast joins without source filters, so we should use them for source filters as well. This patch only fixes the IP_ADD_SOURCE_MEMBERSHIP and the IP_BLOCK_SOURCE case. Unless we do this, the kernel automatically selects an interface based on the source address, and that interface might be different from the one set in localaddr. For blocked sources this even casues EINVAL because we joined the multicast group on a different interface. Signed-off-by: Marton Balint <[email protected]>
* avformat/udp: add support for generic source filteringMarton Balint2018-10-031-4/+13
| | | | | | | | This allows getting data only from a specific source IP. This is useful not only for unicast but for multicast as well because multicast source subscriptions do not act as source filters for the incoming packets. Signed-off-by: Marton Balint <[email protected]>
* avformat/rtpproto: use factorized ip functionsMarton Balint2018-10-032-117/+11
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/udp: use factorized ip functionsMarton Balint2018-10-032-104/+23
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/ip: factorize some IP filtering and resolving functions to a new fileMarton Balint2018-10-032-0/+231
| | | | | | These are based on the very similar UDP and RTP protocol functions. Signed-off-by: Marton Balint <[email protected]>
* avformat/matroskaenc: reserve free space for metadata on requestSigga Regina2018-10-012-1/+8
| | | | Signed-off-by: James Almer <[email protected]>
* lavf/mpeg: Support demuxing HEVC in mpeg-ps.Carl Eugen Hoyos2018-09-272-0/+4
|
* avformat/matroskaenc: reindent after the previous commitJames Almer2018-09-261-13/+13
| | | | Signed-off-by: James Almer <[email protected]>
* avformat/matroskaenc: refactor checks for allowed codecs in WebMJames Almer2018-09-261-12/+18
| | | | | | Use the new ff_webm_codec_tags[] array for this purpose. Signed-off-by: James Almer <[email protected]>