summaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* avformat: add hxvs demuxerZhao Zhili7 hours4-2/+344
|
* avformat/udp: fix warning about unused varibleBrad Smith14 hours1-4/+2
| | | | | | libavformat/udp.c:283:9: warning: unused variable 'i' [-Wunused-variable] Signed-off-by: Brad Smith <[email protected]>
* avformat/dhav: Fix off by length of read element errorMichael Niedermayer16 hours1-2/+2
| | | | | | | | | Fixes: out of array read Fixes: BIGSLEEP-445383648 Fixes: crash_input_1/2/3.dhav Found-by: Google Big Sleep Signed-off-by: Michael Niedermayer <[email protected]>
* lavf: fix demuxing of FLAC files with id3v2 tagsLynne27 hours1-0/+1
| | | | | | | | | Due to the recent id3v2 refactor, FLAC was left out due to earlier code not checking for id3v2 presence on FLAC. Without the id3v2 data parsed, detection of FLAC and therefore demuxing fails. Fixes 9d037c54f209958d47ac376d2a9561608f98dfae
* lavf/id3v2: report incorrect BOM value on errorLynne27 hours1-2/+3
|
* avformat/mccdec: Constify dataAndreas Rheinhardt42 hours1-1/+1
| | | | | Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccenc: Hardcode codec namesAndreas Rheinhardt42 hours1-3/+1
| | | | | Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccdec: Avoid relocationsAndreas Rheinhardt42 hours1-1/+1
| | | | | Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccenc: Avoid relocationsAndreas Rheinhardt42 hours1-2/+2
| | | | | Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccenc: Add newlines to logmessagesAndreas Rheinhardt42 hours1-6/+6
| | | | | Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccenc: Check version-timecode compatibility earlierAndreas Rheinhardt42 hours1-8/+7
| | | | | Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccenc: Deduplicate stringsAndreas Rheinhardt42 hours1-82/+42
| | | | | Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccenc: Constify read-only dataAndreas Rheinhardt42 hours1-1/+1
| | | | | Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccenc: Remove redundant setting of time baseAndreas Rheinhardt42 hours1-1/+0
| | | | | | | It has already been done in init. Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccenc: Fix assert checkAndreas Rheinhardt42 hours1-1/+1
| | | | | Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/mccenc: Remove redundant checkAndreas Rheinhardt42 hours1-4/+0
| | | | | | | This has already been checked in init. Reviewed-by: Jacob Lifshay <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/urldecode: factorize core url decoding from ff_urldecodeMarton Balint2 days1-12/+21
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/urldecode: fix decoding last char if it was percent encodedMarton Balint2 days1-1/+1
| | | | | | | The length check was too strict and if the end of the string was a percent encoded sequence it did not decode correctly. Signed-off-by: Marton Balint <[email protected]>
* avformat/rtpproto: use proper return error codes in rtp_openMarton Balint2 days1-8/+17
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/rtpproto: add some URL options as AVOption aliasesMarton Balint2 days1-0/+5
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/tls: move AVClass to TLSSharedMarton Balint2 days7-6/+1
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/tls: use AV_OPT_TYPE_BOOL for some AVOptionsMarton Balint2 days1-4/+4
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/tls: add some URL options as AVOption aliasesMarton Balint2 days1-0/+3
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/udp: factorize warning unsupported options for builds without ↵Marton Balint2 days1-13/+11
| | | | | | | | | PTHREAD_CANCEL Also fix 'circular_buffer_size' parameter name in the message and the 'fifo_size' option description. Signed-off-by: Marton Balint <[email protected]>
* avformat/udp: add DSCP as a normal AVOptionMarton Balint2 days1-4/+6
| | | | | | Previously this was an URL-only option. Signed-off-by: Marton Balint <[email protected]>
* avformat/tls_gnutls: add av_assert0() for tls_sharedJack Lau3 days1-0/+3
| | | | Signed-off-by: Jack Lau <[email protected]>
* avformat/tls_gnutls: add initial dtls supportJack Lau3 days1-6/+52
| | | | | | | | | | Set GNUTLS_DATAGRAM flag when is_dtls is true. Set mtu when it's specified. Modify the read/write function could use udp socket. There are more patches to make dtls really work. Signed-off-by: Jack Lau <[email protected]>
* avformat/movenc: add support for fragmented TTML muxingJan Ekström5 days3-14/+152
| | | | | | | | | | | | Attempts to base the fragmentation timing on other streams as most receivers expect media fragments to be more or less aligned. Currently does not support fragmentation on subtitle track only, as the subtitle packet queue timings would have to be checked in addition to the current fragmentation timing logic. Signed-off-by: Jan Ekström <[email protected]>
* avformat/flvenc: fix event_flags checkZhao Zhili6 days1-2/+2
| | | | | | AVFormatContext.event_flags is checked against AVSTREAM_EVENT_FLAG, which belongs to AVStream.event_flags. There is no real issue since these two flags have the same value.
* avformat/takdec: Don't truncate return valueAndreas Rheinhardt6 days1-4/+5
| | | | | | This is unlikely to matter for real files. Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/tta: Avoid seek when reading headerAndreas Rheinhardt6 days1-22/+19
| | | | Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/oggdec: Don't skip over data whose checksum is usedAndreas Rheinhardt6 days1-1/+1
| | | | | | | | | | | | | | | | | | The behavior of the ffio_*_checksum feature is not well defined when using avio_skip(). The code in oggdec.c relied on the skipped data (four bytes) to be checksummed, which is mostly true because short_seek_threshold is 32768 by default, so that avio_seek() will normally read data instead of calling the underlying seek function. Yet this has two problems: a) It relies on implementation details of avio_seek(). b) There is an exception, namely if the AVIO_FLAG_DIRECT is set. In this case the underlying seek function (if set) is always called and the data is skipped, leading to CRC errors. So don't skip the data. Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/aviobuf: Keep checksum_ptr consistent in avio_seek()Andreas Rheinhardt6 days1-1/+1
| | | | | | | | | | | | Otherwise it might be > buf_ptr in which case ffio_get_checksum() could segfault (s->buf_ptr - s->checksum_ptr would be negative which would be converted to something very big when converted to unsigned for the update_checksum callback). Fixes ticket #11233. Reported-by: Du4t Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/whip: enable RTCP NACK for whipJack Lau6 days1-0/+53
| | | | | | | | | | | | | | | | Refer to RFC 4585 4.2, Add SDP "a=rtcp-fb" so the peer can request rtx through sending NACKs. Add basic parsing for NACK packet. Decrypt into a newly allocated buffer (do not overwrite whip->buf) so multiple NACKs in a bundled packet can be parsed in a loop while keeping whip->buf available for sending rtx Broken or wrong NACk are logged and skipped. Signed-off-by: Jack Lau <[email protected]>
* Update libavformat/apvdec.cdariusz-f13 days1-1/+1
| | | | | Increase au_size limit by 4 times to fit more complex videos. Signed-off-by: dariusz-f <[email protected]>
* avformat/apv: fix range of au_sizeDariusz Frankiewicz13 days1-1/+1
| | | | | | Acces unit size is described in documentation as > 0 < 0xFFFFFFFF Signed-off-by: Dariusz Frankiewicz <[email protected]>
* avformat/mov: fix unused variable entry in parse_exif_itemZhao Zhili2025-09-061-1/+0
|
* avformat/img2dec: support arbitrary path lengthsMarton Balint2025-09-052-24/+33
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/img2dec: remove path limits from find_image_rangeMarton Balint2025-09-051-13/+22
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/img2dec: do not use av_get_frame_filename result buffer if the call ↵Marton Balint2025-09-051-13/+13
| | | | | | | | | | | | | | | | | | | fails We have no way of knowing if the string was fully processed or got truncated because of a parse error so it is better to use the original path if finding an image sequence fails. We do this by explicitly falling back to the PT_NONE mode if the provided filename is not a valid pattern but the file exists or if the IO context is already open. This also means that filenames no longer need to be escaped even in sequence mode if an invalid sequence (a sequence without %d) is provided, so a command line such as ffmpeg -f image2 -i "100%.jpg" will just work, but "100%%.jpg" will no longer work. Signed-off-by: Marton Balint <[email protected]>
* avformat/webm_chunk: support for arbitrary path lengthsMarton Balint2025-09-051-12/+10
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/segment: support arbitrary path lengthsMarton Balint2025-09-051-13/+23
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/utils: support arbitrary path lengths for av_filename_number_testMarton Balint2025-09-051-3/+6
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/utils: add AV_FRAME_FILENAME_FLAGS_IGNORE_TRUNCATION flagMarton Balint2025-09-053-4/+5
| | | | Signed-off-by: Marton Balint <[email protected]>
* avformat/tls_gnutls: cleanup the pointer nameJack Lau2025-09-051-29/+29
| | | | | | | | Pure cleanup, no functional changes Unify local pointer names to `TLSContext *c` and `TLSShared *s` to reduce confusion from inconsistent names (e.g. p, s, c) Signed-off-by: Jack Lau <[email protected]>
* avformat/whip: simplify the udp read in whip_write_packetJack Lau2025-09-051-9/+14
| | | | | | | | Reduce nested if statements to make the code structure clearer Add logic to check if EOF is received from UDP socket. Signed-off-by: Jack Lau <[email protected]>
* avformat/whip: fix potential 8bit overflow for profile_idcJack Lau2025-09-051-6/+5
| | | | | | | The profile contains profile_idc and constraint_set*_flag, throws away high 8 bit flags and then we get profile_idc. Signed-off-by: Jack Lau <[email protected]>
* avformat/whip: fix 8 bits overflow and map constraint_set bits for H264Jack Lau2025-09-051-3/+4
| | | | | | | | | | | | profile_iop is an 8 bits field. Previous code copied AVCodecParameters::profile (which can contain bits beyond 8 bits) into profile_iop, producing overflow and wrong values. This patch maps the constrained flags into the proper profile_iop bits (constraint_set1 / 3) Signed-off-by: Jack Lau <[email protected]>
* avformat/whip: make time measure more preciseJack Lau2025-09-051-25/+25
| | | | | | | | | | Use av_gettime_relative() replace av_gettime() to get better measure Changed the display precision from showing only integers to showing two decimal places (in milliseconds) Signed-off-by: Jack Lau <[email protected]>
* avformat/whip: fix SDP ICE candidates parsingJack Lau2025-09-051-5/+5
| | | | | | | | | | | fix issue #20407 Refer to RFC 5245 15.1, the foundation may be any string up to 32 chars. The old code could misread foundations as transport("udp"). This patch fully parse all these attr to avoid parsing error. Signed-off-by: Jack Lau <[email protected]>