summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* Merge commit 'defe307fb22beca60a632e976ab97e5edd4aee25'James Almer2017-11-11
|\ | | | | | | | | | | | | | | | | | | | | | | * commit 'defe307fb22beca60a632e976ab97e5edd4aee25': mov: move stsd finalization to an appropriate place mov: Do not set stsd_count if mov_read_stsd() fails mov: log and return early on non-positive stsd entry counts See 8b43ee4054af799e388d380b379a13a60849c1b5 656feb641de3cd5b9cb4e33ffd3f0ad4664c36d2 Merged-by: James Almer <jamrial@gmail.com>
| * mov: move stsd finalization to an appropriate placeSean McGovern2017-07-31
| | | | | | | | | | | | | | | | | | | | | | mov_finalize_stsd_codec() parses stream information from the ALAC extradata, so run it after the extradata processing is completed in mov_read_stsd(). Fixes playback of 96kHz ALAC streams muxed by qaac or the reference alac encoder. Adapted from an FFmpeg patch by Hendrik Leppkes <h.leppkes@gmail.com> Bug-Id: 1072
| * mov: Do not set stsd_count if mov_read_stsd() failsSean McGovern2017-07-31
| | | | | | | | Based on an FFmpeg patch by Michael Niedermayer <michael@niedermayer.cc>
| * mov: log and return early on non-positive stsd entry countsSean McGovern2017-07-30
| | | | | | | | Based on an FFmpeg patch by Michael Niedermayer <michael@niedermayer.cc>
| * rmdec: add missing brackets to compound statementSean McGovern2017-07-25
| | | | | | | | Accidentally left out of 95ce02b35d3d1bb16111031df1d82a6e4d894d36.
| * lavf: allow avformat_close_input() with NULLwm42017-07-22
| | | | | | | | | | | | This is consistent with how other destructors behave. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * caf: add an Opus tagAnton Khirnov2017-07-22
| | | | | | | | CC: libav-stable@libav.org
* | aptx: add raw muxer and demuxer for aptXAurelien Jacobs2017-11-10
| |
* | avformat/dashdec: use the current DASHContext for the rep_destSteven Liu2017-11-10
| | | | | | | | | | | | | | fix ticket id: #6820 Signed-off-by: Steven Liu <lq@onvideo.cn> Tested-by: mrskman
* | lavf/dashdec: Fix several memleaks.Carl Eugen Hoyos2017-11-10
| | | | | | | | | | Signed-off-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Tested-by: Steven Liu <lq@chinaffmpeg.org>
* | avformat/ty: fix format specifiers in debug log messagesJames Almer2017-11-08
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat: move priv_pts from AVStream to an internal structJames Almer2017-11-07
| | | | | | | | | | | | | | It has no reason to be in a public header, even if defined as private. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit '95ce02b35d3d1bb16111031df1d82a6e4d894d36'James Almer2017-11-07
|\| | | | | | | | | | | | | | | | | * commit '95ce02b35d3d1bb16111031df1d82a6e4d894d36': rmdec: don't ignore the return value of av_get_packet() See 65b83ce01b94eae944290c11257799a9288f2d4c Merged-by: James Almer <jamrial@gmail.com>
| * rmdec: don't ignore the return value of av_get_packet()Sean McGovern2017-07-17
| |
| * build: Add feature test macros for glibc 2.19+Diego Biurrun2017-07-10
| | | | | | | | | | | | | | glibc introduced _DEFAULT_SOURCE in version 2.19 to replace _BSD_SOURCE and _SVID_SOURCE, which were deprecated in version 2.20. Add _DEFAULT_SOURCE where the latter two are used to be forwards-compatible and avoid warnings about the use of deprecated definitions.
* | Merge commit '4d330da006fe48178a4c8047f06270925eaedf63'James Almer2017-11-07
|\| | | | | | | | | | | | | | | | | | | * commit '4d330da006fe48178a4c8047f06270925eaedf63': os_support: Use HAVE_UWP instead of manually checking WINAPI_FAMILY d3d11va: Check WINAPI_FAMILY instead of HAVE_LOADLIBRARY lavf: Remove codec_tag from dashenc and smoothstreamingenc hevc: Add support for alternative transfer characterics SEI Merged-by: James Almer <jamrial@gmail.com>
| * os_support: Use HAVE_UWP instead of manually checking WINAPI_FAMILYMartin Storsjö2017-07-05
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * lavf: Remove codec_tag from dashenc and smoothstreamingencMartin Storsjö2017-07-02
| | | | | | | | | | | | | | | | | | | | | | Currently, the tags enforced and set on the segmenter muxer level mismatch what the mp4/ismv muxer uses (since 713efb2c0d013). Skip the codec_tag altogether here, to let the user (try to) set whichever codec/tag is preferred; the individual chained muxer will reject invalid codecs anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/ty: do not overread chunkPaul B Mahol2017-11-06
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/ty: try harder to find stream signaturePaul B Mahol2017-11-06
| | | | | | | | | | | | Search all chunks, not just first one. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/rtpdec_asf: free the buffer pointed by the AVIOContextJames Almer2017-11-06
| | | | | | | | | | | | | | | | | | | | | | Don't free the buffer allocated in ff_wms_parse_sdp_a_line() after calling avformat_open_input(), as it may free it and replace it with another one. Should fix ticket #6808 Tested-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat: add TiVo ty demuxerPaul B Mahol2017-11-06
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavf/amr: Do not set codec_tag for raw amr_nb and raw amr_wb.Carl Eugen Hoyos2017-11-06
| |
* | lavf/amr: Add amrnb and amrwb demuxers.Carl Eugen Hoyos2017-11-05
| | | | | | | | Fixes ticket #6678.
* | avformat/mvdec: check for EOFPaul B Mahol2017-11-05
| | | | | | | | | | | | Fixes #6805. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavf/mov.c: Refine edit list start seek, based on PTS computed from CTTS.Sasi Inguva2017-11-04
| | | | | | | | | | | | Partially fixes t/6699. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'eb061ad6fd0e3cea7cf7cfbff0749bc90dd7d888'James Almer2017-11-02
|\| | | | | | | | | | | | | * commit 'eb061ad6fd0e3cea7cf7cfbff0749bc90dd7d888': tls_gnutls: Readd support for nonblocking operation Merged-by: James Almer <jamrial@gmail.com>
| * tls_gnutls: Readd support for nonblocking operationMartin Storsjö2017-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rtmp protocol uses nonblocking reads, to poll for incoming messages from the server while publishing a stream. Prior to 94599a6de3822b13c94096d764868128f388ba28 and d13b124eaf452b267480074b2e6946538ed03a6e, the tls protocol handled the nonblocking flag, mostly as a side effect from not using custom IO callbacks for reading from the socket. When custom IO callbacks were taken into use in d15eec4d6bdfa3bd4c4b5b7dd2dbd699ba253d02, the handling of a nonblocking socket wasn't necessary for the default blocking mode any longer. The code was simplified, since it was overlooked that other code within libavformat actually used the tls protocol in nonblocking mode. This fixes publishing over rtmps, with the gnutls backend. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '0671eb2346c17e8fb13784cf90ce416661fdea1c'James Almer2017-11-02
|\| | | | | | | | | | | | | * commit '0671eb2346c17e8fb13784cf90ce416661fdea1c': tls_openssl: Readd support for nonblocking operation Merged-by: James Almer <jamrial@gmail.com>
| * tls_openssl: Readd support for nonblocking operationMartin Storsjö2017-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rtmp protocol uses nonblocking reads, to poll for incoming messages from the server while publishing a stream. Prior to 94599a6de3822b13c94096d764868128f388ba28 and d13b124eaf452b267480074b2e6946538ed03a6e, the tls protocol handled the nonblocking flag, mostly as a side effect from not using custom IO callbacks for reading from the socket. When custom IO callbacks were taken into use in d15eec4d6bdfa3bd4c4b5b7dd2dbd699ba253d02, the handling of a nonblocking socket wasn't necessary for the default blocking mode any longer. The code was simplified, since it was overlooked that other code within libavformat actually used the tls protocol in nonblocking mode. This fixes publishing over rtmps, with the openssl backend. Signed-off-by: Martin Storsjö <martin@martin.st>
| * movenc: allow alternative hvc1 h.265 codec tagJohn Stebbins2017-06-20
| | | | | | | | | | If AVCodecParameters.codec_tag is 'hvc1' use it instead of 'hev1' for h.265 streams. QuickTime (and other Apple software) requires 'hvc1'.
| * movenc: write correct format hvcc when tag is hvc1John Stebbins2017-06-20
| |
| * movenc: move tags definitions to where they are usedJohn Stebbins2017-06-20
| |
| * movenc: simplify codec_tag lookupJohn Stebbins2017-06-20
| | | | | | | | | | | | | | | | mux.c init_muxer() already sets codec_tag correctly in the cases simplified here. This also adds the capability to support alternative tags for the same codec_id.
| * movenc: use correct tag list for AVOutputFormat.codec_tagJohn Stebbins2017-06-20
| | | | | | | | | | | | | | | | | | | | | | ff_mp4_obj_type contains the wrong type of tags for AVOutputFormat.codec_tag. AVOutputFormat.codec_tag is used to validate AVCodecParameters.codec_tag so needs to be the same type of tag. Creates new tag lists for mp4 and ismv. New tag lists support same list of codecs found in ff_mp4_obj_type. psp uses the same tag list as mp4 since these both use mp4_get_codec_tag to look up tags.
* | avformat/tls_openssl: move some functions up in the fileJames Almer2017-11-02
| | | | | | | | Cosmetic change, reduces differences with libav.
* | avformat/hlsenc: reindent hlsenc codeSteven Liu2017-11-02
| | | | | | | | Signed-off-by: Steven Liu <lq@onvideo.cn>
* | avformat/hlsenc: check hls segment mode for ignore the init filenameSteven Liu2017-11-02
| | | | | | | | | | | | ignore the fmp4_init_filename when in normal hls segment mode Signed-off-by: Steven Liu <lq@onvideo.cn>
* | lavf/img2enc: remove redundant option 'updatefirst'Gyan Doshi2017-11-01
| | | | | | | | 'updatefirst' is an undocumented option redundant to older option 'update'. Since it doesn't serve as a shorthand, this patch removes it.
* | Merge commit '61cec5adaacb358783c18aa07362f15824c1b274'James Almer2017-11-01
|\| | | | | | | | | | | | | | | | | | | * commit '61cec5adaacb358783c18aa07362f15824c1b274': tls: Hide backend implementation details from users Also includes ed434be106a4615e0419b3ac7664220741afda2d Changes were made to support schannel and securetransport. Merged-by: James Almer <jamrial@gmail.com>
| * tls: Hide backend implementation details from usersDiego Biurrun2017-06-02
| | | | | | | | | | | | | | | | TLS is currently implemented over either OpenSSL or GnuTLS, with more backends likely to appear in the future. Currently, those backend libraries are part of the protocol names used during e.g. the configure stage of a build. Hide those details behind a generically-named declaration for the TLS protocol to avoid leaking those details into the configuration stage.
* | Merge commit '2ca759657bcda328acc312e5882a940333a3e268'James Almer2017-11-01
|\| | | | | | | | | | | | | * commit '2ca759657bcda328acc312e5882a940333a3e268': os_support: Remove the dynamic loading of getaddrinfo from the fallback getaddrinfo Merged-by: James Almer <jamrial@gmail.com>
| * os_support: Remove the dynamic loading of getaddrinfo from the fallback ↵Martin Storsjö2017-06-01
| | | | | | | | | | | | | | | | | | | | | | getaddrinfo If we for some unexplicable reason didn't pick up getaddrinfo at configure, the default, IPv4-only, fallback should be good enough. This effectively reverts 6023d84a2b7. Signed-off-by: Martin Storsjö <martin@martin.st>
| * hlsenc: Support recovery from an already present playlistLuca Barbato2017-05-31
| | | | | | | | | | | | | | Parse the playlist to recover the start sequence and previously generated segments and continue muxing from there. Mainly useful for near-seamless recovery in live scenarios.
| * movenc-test: Add tests for negative cts offsetsMartin Storsjö2017-05-15
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * movenc: Don't write any edit list if the start offset is zeroMartin Storsjö2017-05-15
| | | | | | | | | | | | In these cases, the CTTS flag is set, but no edit list is necessary. Signed-off-by: Martin Storsjö <martin@martin.st>
| * movenc: Add an option for enabling negative CTS offsetsMartin Storsjö2017-05-15
| | | | | | | | | | | | | | | | | | | | | | | | This reduces the need for an edit list; streams that start with e.g. dts=-1, pts=0 can be encoded as dts=0, pts=0 (which is valid in mov/mp4) by shifting the dts values of all packets forward. This avoids the need for edit lists for such streams (while they still are needed for audio streams with encoder delay). This eases conformance with the DASH-IF interoperability guidelines. Signed-off-by: Martin Storsjö <martin@martin.st>
| * mpjpeg: Use proper CR/LF in multipart headersMartin Storsjö2017-05-11
| | | | | | | | | | | | This is more correct. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/mux: be less strict with bitstream filter failuresJames Almer2017-11-01
| | | | | | | | | | | | | | | | | | | | | | This makes the autobsf feature behave the same as the manual bitstream filtering in ffmpeg.c Fixes ticket #6794 Reviewed-by: rcombs Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/movenc: let avpriv_ac3_parse_header() allocate the AC3HeaderInfo structJames Almer2017-11-01
| | | | | | | | | | | | | | This removes sizeof(AC3HeaderInfo) from the ABI. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>