summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* lavf/rpl: Don't be case-sensitive detecting codecs.Carl Eugen Hoyos2019-05-05
| | | | | Fixes ticket #7859 Reported and tested by Steffen Ohrendorf, steffen d ohrendorf a gmx d de
* avisynth: adapt 239d02eff3ffe9f7d40caa21dde50fb4a0e94c24 to dlsymStephen Hutchinson2019-05-04
| | | | | | | | This commit was merged in a couple years ago as a no-op because we had already switched from GetProcAddress to dlsym some time before that. However, not applying the actual cast causes warnings about FARPROC and when attempting to build FFmpeg in MSVC with AviSynth-GCC 32-bit compatibility, those FARPROC warnings turn into FARPROC errors.
* libavformat/avisynth: enable additional pix_fmtsStephen Hutchinson2019-05-04
| | | | | | | These pix_fmts have been added to FFmpeg in the 31 months since commit 92916e8542e425ca20daddb490261a5818643206 added support for the larger number of pix_fmts that AviSynth+ can use. They were present in AviSynth+ even then, just not in libavutil.
* avformat/mov: set AVFMT_SEEK_TO_PTS flagGyan Doshi2019-05-03
| | | | | Ever since 59ad504696, the demuxer expects its seek arg to be PTS and adjusts internally to search index by DTS.
* lavf/webm_chunk: Respect buffer sizeAndreas Rheinhardt2019-05-02
| | | | | | | | | The last argument of av_strlcpy is supposed to contain the size of the destination buffer, but it was filled with the size of the source string, effectively negating its very purpose. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '1e56173515826aa4d680d3b216d80a3879ed1c68'James Almer2019-05-02
|\ | | | | | | | | | | | | * commit '1e56173515826aa4d680d3b216d80a3879ed1c68': rtsp: add pkt_size option Merged-by: James Almer <jamrial@gmail.com>
| * rtsp: add pkt_size optionTristan Matthews2019-04-15
| | | | | | | | | | | | | | This allows users to specify an upper limit on the size of outgoing packets when publishing via RTSP. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/mxfdec: fix and enhance RIP KLV length checksMarton Balint2019-04-28
| | | | | | | | | | | | | | | | | | KLV length is BER encoded (variable size), but the code assumed the encoding to always use 4 bytes. Fixes parsing Random Index Pack in samples/MXF/issue2160/PW0805A0V01.4C5B5636.EFA330.mxf. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/mxfdec: take into account run-in in find_partition_by_offsetMarton Balint2019-04-28
| | | | | | | | | | | | | | Also rename the function to find_partition_by_absolute_offset to make it clear offset is absolute. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/mxfdec: guess wrapping of tracks by other tracks with the same body sidMarton Balint2019-04-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This affects the following samples: samples/ffmpeg-bugs/roundup/issue1775/av_seek_frame_failure.mxf samples/ffmpeg-bugs/trac/ticket1957/16ch.mxf samples/ffmpeg-bugs/trac/ticket5016/r0.mxf samples/ffmpeg-bugs/trac/ticket5016/r1.mxf samples/ffmpeg-bugs/trac/ticket5316/hq.MXF samples/ffmpeg-bugs/trac/ticket5316/hqx.MXF Some AVPacket->pos values are changed because for frame wrapped tracks we point to the KLV offset and not the data. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/mxfdec: rework mxf_essence_container_endMarton Balint2019-04-28
| | | | | | | | | | | | | | We find the last essence container much faster if we go through the partitions backwards... Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/microdvddec: skip empty linesPaul B Mahol2019-04-27
| |
* | avformat/subtitles: ignore extra '\r' at line endingsPaul B Mahol2019-04-27
| |
* | lavf/hls: Remove HLSContext.strict_std_compliance fieldJun Zhao2019-04-27
| | | | | | | | | | | | | | After the commit 9f61abc8111, we can use AVFormatContext.strict_std_compliance instead of HLSContext.strict_std_compliance to avoid the code redundancy. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* | avformat/mov: Skip stsd adjustment without chunksMichael Niedermayer2019-04-24
| | | | | | | | | | | | | | | | | | Fixes: Assertion failure Fixes: clusterfuzz-testcase-minimized-media_pipeline_integration_fuzzer-5683096400822272 Found-by: Clusterfuzz Reported-by: Dan Sanders <sandersd@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/aadec: Check for scanf() failureMichael Niedermayer2019-04-24
| | | | | | | | | | | | | | | | Fixes: use of uninitialized variables Fixes: blank.aa Found-by: Chamal De Silva <chamal.desilva@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libavformat/mov: limit nb_frames_for_fps to INT_MAXDan Sanders2019-04-23
| | | | | | | | | | | | It's this or add overflow detection in mov_read_header(). Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/mpegenc - reject unsupported audio streamsGyan Doshi2019-04-22
| | | | | | | | | | Only MP1, MP2, MP3, 16-bit PCM_DVD, PCM S16BE, AC3 and DTS audio codecs are supported by the muxer.
* | lavf/oggparsevorbis: Fix change the case of metadata keys issueJun Zhao2019-04-22
| | | | | | | | | | | | | | | | | | | | | | The spec in https://xiph.org/vorbis/doc/v-comment.html states that the metadata keys are case-insensitive, so don't change the case and update the fate test case. Fix #7784 Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* | avformat/dashenc: Fix a bug with writing "final" manifestKarthick J2019-04-22
| | | | | | | | This bug was introduced in the commit 951561b64ee6c11f01daedd9dcf73276cc1e765b
* | avformat/dashdec: add ProgramInformation parserSteven Liu2019-04-22
| | | | | | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* | lavf: bump version/add APIchanges entry when cleanup applehttpJun Zhao2019-04-20
| | | | | | | | | | | | | | commit abfeba9 "lavf/hls: Cleanup the applehttp" missed the version bump and APIchanges entry. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* | avformat/apetag: tag values are unsignedDan Sanders2019-04-19
| | | | | | | | | | | | | | Fixes: UBSan runtime error Found-by: Clusterfuzz Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | libavformat: improve logs with cur_dtsAndreas Hakon2019-04-19
| | | | | | | | | | | | | | | | | | | | | | This patch improves the logs when the message "cur_dts is invalid" appears. If helps to identify which stream generates the trouble, and the status of the stream. A lot of users suffers with the message, and the origin varies. The improved message can help to discover the cause. Signed-off-by: Andreas Hakon <andreas.hakon@protonmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavf/vc1dec: Reduce probe score for streams with invalid frames.Carl Eugen Hoyos2019-04-19
| | | | | | | | Fixes ticket #7853.
* | lavf/utils: Allow url credentials to contain a slash.Carl Eugen Hoyos2019-04-19
| | | | | | | | Fixes ticket #7816.
* | avformat/dashenc: Disable streaming for webm outputKarthick J2019-04-16
| | | | | | | | | | Currently streaming for webm output doesn't work. Disabling explicitly will make sure that the manifest will get generated correctly.
* | lavf/hls: Cleanup the applehttpJun Zhao2019-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup the applehttp as demuxer name, when use the command : ffmpeg -formats, get the confused information like: " E hls Apple HTTP Live Streaming D hls,applehttp Apple HTTP Live Streaming " we don't use applehttp as the demuxer/muxer name usually, so cleanup the applehttp and update the documents. After the change, get the information from "ffmpeg -formats": " DE hls Apple HTTP Live Streaming " Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* | lavf/rtsp.c: Fix stimeout option not applied on http tunnelJun Li2019-04-15
| | | | | | | | | | | | | | | | | | stimeout option is already used in tcp transport, since http is based on tcp, pass the option to http for tunneling case. Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Jun Li <junli1026@gmail.com>
* | Revert "lavf/rtsp.c: Fix stimeout option not applied on http tunnel"Steven Liu2019-04-15
| | | | | | | | This reverts commit 1ae8a1073ba8a3ceb9f51d9350785c27530aa469.
* | lavf/rtsp.c: Fix stimeout option not applied on http tunnelSigned-off-by: Jun Li2019-04-15
| | | | | | | | | | | | | | | | | | stimeout option is already used in tcp transport, since http is based on tcp, pass the option to http for tunneling case. Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Jun Li <junli1026@gmail.com>
* | Revert "lavf/rtsp.c: Fix stimeout option not applied on http tunnel"Steven Liu2019-04-15
| | | | | | | | This reverts commit f502bd5432c9d7a34392ec3147bc5b5e3a868d9c.
* | lavf/rtsp.c: Fix stimeout option not applied on http tunnelSteven Liu2019-04-15
| | | | | | | | | | | | | | | | | | stimeout option is already used in tcp transport, since http is based on tcp, pass the option to http for tunneling case. Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Jun Li <junli1026@gmail.com>
* | avformat/mxfdec: use operational_pattern_ul instead of operational_pattern ↵Marton Balint2019-04-14
| | | | | | | | | | | | | | | | for metadata This makes it more consistent with other metadata keys. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/hlsenc: flush packets before update split messageSteven Liu2019-04-14
| | | | | | | | | | | | fix ticket: 7831 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* | avcodec: add LSCR decoderPaul B Mahol2019-04-13
| | | | | | | | Fixes #4711.
* | avformat/file: add seekable option to disallow seekingMarton Balint2019-04-11
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/mxfdec: export operational pattern UL as file metadataMarton Balint2019-04-11
| | | | | | | | | | | | | | Can be useful for API users as ffmpeg/libavformat can't properly support some operational patterns. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avcodec: add ADPCM AGM decoderPaul B Mahol2019-04-11
| |
* | avcodec/agm: add support for non-dct codingPaul B Mahol2019-04-11
| |
* | avcodec/agm: add support for higher compressionPaul B Mahol2019-04-11
| |
* | libavformat/dashenc : Prevent writing manifest files multiple timesjoepadmiraal2019-04-10
| |
* | avformat/matroskaenc: fix leak on errorTristan Matthews2019-04-09
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | lavf/movenc: Pass correct pointer to av_log().Carl Eugen Hoyos2019-04-09
| |
* | lavf/matroskaenc: Fix memory leak after write trailerJun Zhao2019-04-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix memory leak after write trailer for #7827, only store a audio packet whose buffer has size greater than zero in cur_audio_pkt. Audio packets with size zero, but with side-data currently lead to memleaks, in the Matroska muxer, because they are not properly freed: They are currently put into an AVPacket in the MatroskaMuxContext to ensure that the necessary audio is always available for a new cluster, but are only written and freed when their size is > 0. As the only use we have for such packets consists in updating the CodecPrivate it makes no sense to store these packets at all and this is how this commit solves the memleak. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* | avformat/av1: Initialize padding in ff_isom_write_av1cJeremy Dorfman via ffmpeg-devel2019-04-08
| | | | | | | | | | | | | | | | Otherwise, AV1 encodes with FFmpeg trigger use-of-uninitialized-value warnings under MemorySanitizer, and the output buffer potentially changes from run to run. Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/riffdec: pass correct pointer to av_logPaul B Mahol2019-04-07
| |
* | lavf/Makefile: Fix kux demuxer standalone compilation.Carl Eugen Hoyos2019-04-07
| |
* | lavf/flvdec: added support for KUX containerSwaraj Hota2019-04-06
| | | | | | | | | | | | | | | | Fixes ticket #4519. The metadata starting at 0xe00004 is encrypted with the password "meta" but zlib does not support decryption, so no kux metadata is read.
* | avformat/matroskadec: Improve length checkAndreas Rheinhardt via ffmpeg-devel2019-04-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The earlier code had three flaws: 1. The case of an unknown-sized element inside a finite-sized element (which is against the specifications) was not caught. 2. The error message wasn't helpful: It compared the length of the child with the offset of the end of the parent and claimed that the first exceeds the latter, although that is not necessarily true. 3. Unknown-sized elements that are not parsed can't be skipped. Given that according to the Matroska specifications only the segment and the clusters can be of unknown-size, this is handled by not allowing any other units to have infinite size whereas the earlier code would seek back by 1 byte upon encountering an infinite-size element that ought to be skipped. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>