summaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* avformat/hlsenc: Added option to add EXT-X-INDEPENDENT-SEGMENTS tagKarthick J2017-11-241-0/+17
|
* avformat/hlsenc: Refactor an inconsistent variable nameKarthick J2017-11-241-9/+9
|
* avformat/hlsenc: Minor fix in setting http options for master playlistKarthick J2017-11-241-2/+1
|
* Revert "udp: fix compilation when HAVE_PTHREAD_CANCEL isnt defined"Derek Buitenhuis2017-11-231-4/+0
| | | | | | | | This was an mplayer-specific hack. This reverts commit a4f94f24b4f153c30bbcaa700bedfb2b3a581e5e. Signed-off-by: Derek Buitenhuis <[email protected]>
* lavf/mov: Read aspect ratio from AVID jpeg2000 mov files.Carl Eugen Hoyos2017-11-231-0/+1
|
* avformat/mov: Increment stsd_count while processing stsd data; avoids leaks.Dale Curtis2017-11-221-3/+4
| | | | | | | | | | In the event of ff_mov_read_stsd_entries() failure, sc->stsd_count is not updated, even if the function allocates extradata memory. Instead update the sc->stsd_count as entries are parsed so that mov_read_close() can do the right thing. Signed-off-by: Dale Curtis <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/dashenc: Added configuration to override HTTP User-AgentKarthick J2017-11-211-3/+19
| | | | | Reviewed-by: Steven Liu <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/mov: Propagate errors in mov_switch_root.Jacob Trimble2017-11-211-2/+5
| | | | | Signed-off-by: Jacob Trimble <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* Close ogg stream upon error when using AV_EF_EXPLODE.Dale Curtis2017-11-211-1/+3
| | | | | | | | Without this there can be multiple memory leaks for unrecognized ogg streams. Signed-off-by: Dale Curtis <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/avio: remove must_flush from AVIOContextMarton Balint2017-11-201-1/+0
| | | | | | It is unused. Signed-off-by: Marton Balint <[email protected]>
* lavf/mov: Do not mix variable declaration and code.Carl Eugen Hoyos2017-11-201-1/+2
| | | | | Fixes a warning: libavformat/mov.c:1195:5: warning: ISO C90 forbids mixed declarations and code
* avformat/hlsenc: use FFABS to instead of absSteven Liu2017-11-201-1/+1
| | | | | Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Steven Liu <[email protected]>
* avformat/swfenc: use FFABS to instead of absSteven Liu2017-11-201-1/+1
| | | | | Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Steven Liu <[email protected]>
* avformat/mxf: use FFABS to instead of absSteven Liu2017-11-201-1/+1
| | | | Signed-off-by: Steven Liu <[email protected]>
* avformat/mp3dec: use FFABS to instead of absSteven Liu2017-11-201-2/+2
| | | | | Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Steven Liu <[email protected]>
* avformat/hlsenc: creation of hls master playlist fileVishwanath Dixit2017-11-202-7/+177
| | | | Reviewed-by: Steven Liu <[email protected]>
* avformat/hlsenc: creation of hls variant streams in a single hlsenc instanceVishwanath Dixit2017-11-202-307/+622
| | | | Reviewed-by: Steven Liu <[email protected]>
* avformat/movenc: write clap atom for uncompressed yuv in movDave Rice2017-11-201-0/+19
| | | | | | fixes 6145 Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/movenc: correct ImageDescription for uncompressed ycbcrDave Rice2017-11-201-3/+17
| | | | | | | Per https://developer.apple.com/library/content/technotes/tn2162/_index.html Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/subfile: allow to extract till EOFGyan Doshi2017-11-191-0/+3
| | | | | Users can set end offset as 0 to extract till end of file. Tested locally and documented.
* avformat/dashenc: fix min_seg_duration option sizeJames Cowgill2017-11-191-1/+1
| | | | | | | | | | In the DASHContext structure, min_seg_duration is declared as an int, but the AVOption list claimed it was an INT64. Change the option list to use the correct size, which should fix some initialization errors seen on big-endian platforms. Signed-off-by: James Cowgill <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat: remove unnecessary AVStreamParseType enum offsetJames Almer2017-11-181-3/+3
| | | | Signed-off-by: James Almer <[email protected]>
* lavf/tcp: Fix the type of the optlen argument to getsockopt().Carl Eugen Hoyos2017-11-181-1/+1
| | | | | Fixes a warning on aix: libavformat/tcp.c:283:58: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
* lavf/mov: don't read outside frag_index boundsJohn Stebbins2017-11-181-0/+4
| | | | | | | | | | | Potentially fixes: https://bugs.chromium.org/p/chromium/issues/detail?id=786269#c1 In theory, the crash can be triggered by an invalid stream that has either tfdt or trun outside of the moof Reviewed-by: Dale Curtis <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* Fix leak of frame_duration_buffer in mov_fix_index().Dale Curtis2017-11-181-0/+1
| | | | | | | | | Should be unconditionally freed at the end of mov_fix_index() in case it hasn't been used during the fix up. Signed-off-by: Dale Curtis <[email protected]> Reviewed-by: Sasi Inguva <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/tcp: add option to enable TCP_NODELAYAman Gupta2017-11-172-0/+6
| | | | | | | | This can reduce latency and increase throughput, particularly on high latency networks. Signed-off-by: Aman Gupta <[email protected]> Reviewed-by: Jeyapal, Karthick <[email protected]>
* lavf/mxf: Support 60fps output.Carl Eugen Hoyos2017-11-161-0/+2
|
* avformat/mov: Check size of STSC allocationFredrik Hubinette2017-11-161-0/+2
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/movenc: allow writing avc3 sample entry typeJohn Stebbins2017-11-161-0/+1
| | | | | | | The avc3 sample entry type is useful for adaptive streaming. It permits parameter sets to be written inline in the video stream. Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/utils: remove usage of AVCodecContext accessorsJames Almer2017-11-151-5/+9
| | | | Signed-off-by: James Almer <[email protected]>
* lavf/mov.c: Don't correct edit list start to zero, when we can't find a ↵Sasi Inguva2017-11-141-3/+1
| | | | | | | | | frame before edit list start. After c2a8f0fcbe57ea9ccaa864130f078af10516c3c1 this can happen on normal edit lists starting on a B-frame. Signed-off-by: Sasi Inguva <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/http: fix chunked response w/ multiple_requests=1Aman Gupta2017-11-141-1/+11
| | | | | | | | | | | | Currently if you use the multiple_requests=1 option and try to receive a chunked-encoded response, http_buf_read() will hang forever. After this patch, EOF is emulated once a 0-byte final chunk is received by setting a new flag. This flag is reset in ff_http_do_new_request(), which is used to make additional requests on the open socket. Reviewed-by: Ronald S. Bultje <[email protected]> Signed-off-by: Aman Gupta <[email protected]>
* avformat/hlsenc: write fmp4 init header after first AV frameSteven Liu2017-11-141-3/+26
| | | | | | | fix ticket id: 6825 Signed-off-by: Steven Liu <[email protected]> Tested-by: Aman Gupta <[email protected]>
* This fixes a deadlock while reading a chunked https response, ifAman Gupta2017-11-131-2/+6
| | | | | | | | | | | | | | multiple_requests=1 is also set. Without an EOF to signal the end of the last chunk, tls_read gets stuck forever trying to read more data than is available. This occurs with the http protocol reproducibly, because http.c always reads 4kb at a time, and the last chunk of an http response is often much smaller. After this commit, tls_read always returns any buffered plaintext first before attempting to read more encrypted data off the underlying tcp socket. Signed-off-by: Rodger Combs <[email protected]>
* lavf/tls_securetransport: handle incomplete reads gracefullyRodger Combs2017-11-131-8/+16
| | | | Signed-off-by: Aman Gupta <aman at tmm1.net>
* movenc-test: fix potential uninitialized readTimo Rothenpieler2017-11-131-0/+1
| | | | Fixes CID #1413023
* avformat/fitsenc: validate input pixel formatTimo Rothenpieler2017-11-131-1/+5
| | | | Fixes CID #1416961 and #1416962
* avformat/http: fix stray quote in trace loggingAman Gupta2017-11-131-1/+1
| | | | | Signed-off-by: Aman Gupta <[email protected]> Reviewed-by: Michael Niedermayer <[email protected]>
* avformat/img2enc: add frame_pts option for make output filenameSteven Liu2017-11-131-0/+7
| | | | | | | | fix ticket id: #1452 when use frame_pts option, the output image name can be set with PTS of current frame. Signed-off-by: Steven Liu <[email protected]>
* avformat/hlsenc: allocate space for terminating nullTimo Rothenpieler2017-11-131-1/+1
| | | | Fixes CID #1420394
* lavf/tls_securetransport: build on iOSAman Gupta2017-11-121-0/+4
| | | | | | | This works as expected on iOS, except for the ca_file feature which is disabled because SecItemImport is not available. Signed-off-by: Aman Gupta <[email protected]>
* avformat/ty: check cur_chunk_pos before using itPaul B Mahol2017-11-121-0/+2
| | | | | | Fixes #6831. Signed-off-by: Paul B Mahol <[email protected]>
* avformat/ty: fix memory leaksPaul B Mahol2017-11-121-0/+11
| | | | Signed-off-by: Paul B Mahol <[email protected]>
* avformat/ty: check if header is correctly parsed and is still presentPaul B Mahol2017-11-121-2/+4
| | | | | | Fixes #6829. Signed-off-by: Paul B Mahol <[email protected]>
* lavf/dashdec: Fix several memleaks.Carl Eugen Hoyos2017-11-121-9/+13
|
* Revert "lavf/dashdec: Fix several memleaks."Steven Liu2017-11-121-13/+9
| | | | This reverts commit e7fe5e511aaeb3b8d949706b7f8620042cdfbd6c.
* Merge commit '55fe72a841ba306370e68e86c88f34b4456aa4dd'James Almer2017-11-121-0/+6
|\ | | | | | | | | | | | | * commit '55fe72a841ba306370e68e86c88f34b4456aa4dd': matroskadec: don't warn about unknown spherical medata when none is present Merged-by: James Almer <[email protected]>
| * matroskadec: don't warn about unknown spherical medata when none is presentJames Almer2017-11-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | track->video.projection.type is set to 0 (a Matroska specific "No spherical metadata present" value, with no related AVSphericalMapping) by default on files without the element. This removes bogus warnings on every single matroska file without Spherical metadata. Signed-off-by: James Almer <[email protected]>
| * dashenc: copy stream frame rate to output streamPeter Große2017-10-271-0/+1
| | | | | | | | | | | | | | | | Leads to setting of DefaultDuration in Matroska muxer based on frame rate instead of timebase. Fixes playback in Chrome. Signed-off-by: Peter Große <[email protected]> Signed-off-by: Luca Barbato <[email protected]>
* | Merge commit '4723c6226aa1ece4099338cc9b38a9cef4fa4846'James Almer2017-11-121-1/+3
|\| | | | | | | | | | | | | * commit '4723c6226aa1ece4099338cc9b38a9cef4fa4846': dashenc: fix bitrate estimation with correct scaling Merged-by: James Almer <[email protected]>