summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* lavf: add AVFormatContext.max_ts_probeAnton Khirnov2014-08-25
| | | | | It allows to configure how long will avformat_find_stream_info() wait to get the first timestamp.
* ogg: Use separate classes for the aliasesLuca Barbato2014-08-23
| | | | Unbreak 051aadeed104ecbe8ee4850ec2d7e5394f5e1ccd
* os_support: Undefine lseek/stat/fstat before defining themDiego Biurrun2014-08-22
| | | | This avoids a number of redefinition warnings on MinGW64.
* ogg: Provide aliases for Speex, Opus and audio-only oggLuca Barbato2014-08-22
| | | | Since they are aliases for ogg enabling any of them enables ogg as well.
* electronicarts: set the framerate for TGQ/TQIAnton Khirnov2014-08-22
| | | | It is hardcoded to 15fps.
* electronicarts: read the framerate for MADAnton Khirnov2014-08-22
|
* electronicarts: do not fail on zero-sized chunksAnton Khirnov2014-08-22
| | | | | | | At least one FATE sample contains such chunks and happens to work simply by accident (due to find_stream_info() swallowing the error). CC: libav-stable@libav.org
* adts: Return more meaningful error codesNidhi Makhijani2014-08-21
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mov: Drop unused parameter from ff_mov_read_esds()Diego Biurrun2014-08-19
| | | | This is cleaner and avoids an uninitialized variable warning with MSVC.
* mxf: Support AACLuca Barbato2014-08-17
| | | | | | | Update mxf_set_audio_pts to use the container-provided information. The UL is marked as "to be changed in the future", but the current samples in the wild do use it.
* mxf: Add the UL for the MPEG2VideoDescriptorLuca Barbato2014-08-17
|
* mxf: Add UID print helpersLuca Barbato2014-08-17
| | | | And use it to print non-parsed ULs.
* cosmetics: Write NULL pointer inequality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* http: Reduce scope of a variable in parse_content_encoding()Diego Biurrun2014-08-15
| | | | Also fixes an unused variable warning with zlib disabled.
* a64: Return correct error code on invalid data streamNidhi Makhijani2014-08-14
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegts: Do not try to write a PMT larger than SECTION_SIZELuca Barbato2014-08-13
| | | | | | | | | | | Prevent out of array writes. Similar to what Michael Niedermayer did to address the same issue. Bug-Id: CVE-2014-2263 CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: eliminate ff_get_audio_frame_size()Anton Khirnov2014-08-13
| | | | | | | | | | | | | | | It is basically a wrapper around av_get_audio_frame_duration(), with a fallback to AVCodecContext.frame_size. However, that field is set only when the stream codec context is actually used for encoding or decoding, which is discouraged. For muxing, it is generally the responsibility of the caller to set the packet duration. For demuxing, if the duration is not stored at the container level, it should be set by the parser. Therefore, removing the frame_size fallback should not break any important case.
* http: Fix authentication, broken since 6a463e7fbMartin Storsjö2014-08-13
| | | | | | | | | | The cur_*auth_type variables were set before the http_connect call prior to 6a463e7fb - their sole purpose is to record the authentication type used to do the latest request, since parsing the http response sets the new type in the auth state. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* ogg: update event_flags with STREAM_/METADATA_UPDATED whenever metadata changes.Andrew Stone2014-08-13
| | | | | | | | | | | | | | Originally, AVFormatContext and a metadata dict were provided to ff_vorbis_comment(), but this presented issues if an AVStream was being updated or the metadata on AVFormatContext wasn't actually being updated. To remedy this, ff_vorbis_stream_comment() explicitly updates a stream's metadata and sets any necessary flags. ff_vorbis_comment() does not modify any flags, and any calls to it that update AVFormatContext's metadata (just a single call) must also update AVFormatContext.event_flags after detecting any metadata changes to the provided dictionary, as signaled by a positive return value. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mov: update AVFormatContext.event_flags with METADATA_UPDATED whenever ↵Andrew Stone2014-08-13
| | | | | | metadata changes. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* nutdec: update AVFormatContext.event_flags with STREAM_/METADATA_UPDATED ↵Andrew Stone2014-08-13
| | | | | | whenever metadata changes. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* flvdec: update AVFormatContext.event_flags with METADATA_UPDATED whenever ↵Andrew Stone2014-08-13
| | | | | | metadata changes. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Expose metadata found in onCuePoint events in .flv files.Andrew Stone2014-08-13
| | | | | | | | | | | | | | | | Currently, only onMetaData is used, but some providers (wrongly) put metadata into onCuePoint events, and it's still nice to be able to use that data. onCuePoint events also present metadata slightly differently than onMetaData events: all metadata is found inside an object called "parameters". In order to extract this metadata, it's easiest to recurse through the object tree and pull out anything found in child objects and put it in the top-level metadata. Reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/2/help.html?content=00001404.html Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Set protocol-level metadata in AVFormatContext any time a packet is read.Andrew Stone2014-08-13
| | | | | | | If any option named "metadata" is set inside the context, it is pulled up to the context and then the option is cleared. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* http: enable icy metadata by default.Andrew Stone2014-08-13
| | | | | | | It won't hurt servers that don't care about the header, and those that do will include it by default. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* http: export icecast metadata as an option with name "metadata".Andrew Stone2014-08-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: add AVFormatContext/AVStream fields for signaling to the user when ↵Andrew Stone2014-08-13
| | | | | | | | | | | events happen. The only flags, for now, indicate if metadata was updated and are set after each call to av_read_frame(). This comes with the caveat that, on stream start, it might not be set properly as packets might be buffered in AVFormatContext.packet_buffer before being given to the user in av_read_frame(). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* http: Stop reading after receiving the whole file for non-chunked transfersMartin Storsjö2014-08-13
| | | | | | | | | | | | | | | | | | | | | | | | Previously this logic was only used if the server didn't respond with Connection: close, but use it even for that case, if the server response is non-chunked. Originally the http code has relied on Connection: close to close the socket when the file/stream is received - the http protocol code just kept reading from the socket until the socket was closed. In f240ed18 we added a check for the file size, because some http servers didn't respond with Connection: close (and wouldn't close the socket) even though we requested it, which meant that the http protocol blocked for a long time at the end of files, waiting for a socket level timeout. When reading over tls, trying to read at the end of the connection, when the peer has closed the connection, can produce spurious (but harmless) warnings. Therefore always voluntarily stop reading when the specified file size has been received, if not using a chunked transfer encoding. (For chunked transfers, we already return 0 as soon as we get the chunk header indicating end of stream.) Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegts: Return proper error code on invalid input dataNidhi Makhijani2014-08-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpeg: Suppress a compiler warning on callback typeLuca Barbato2014-08-09
|
* Remove obsolete FF_API_REFERENCE_DTS cruft.Anton Khirnov2014-08-09
|
* Remove obsolete FF_API_PROBE_MIME cruft.Anton Khirnov2014-08-09
|
* Bump major versions of all libraries.Anton Khirnov2014-08-09
|
* Postpone API-incompatible changes until the next bump.Anton Khirnov2014-08-09
|
* mpeg: K&R formatting cosmeticsLuca Barbato2014-08-08
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegts: Use av_free() to free memory allocated by av_strdup()Diego Biurrun2014-08-08
|
* mpegts: Fix memory leaks and related crashes in mpegs_write_header()Diego Biurrun2014-08-07
|
* mpegts: Avoid unnecessary variable shadowingDiego Biurrun2014-08-07
|
* mpegts: Drop some unnecessary parenthesesDiego Biurrun2014-08-07
|
* mpegts: K&R formatting cosmeticsDiego Biurrun2014-08-07
|
* movenc: fix QT chapter track character encodingJohn Stebbins2014-08-06
| | | | An encoding ("encd") box is required to tell QT that the string is UTF8
* movenc: add track title to tracksJohn Stebbins2014-08-06
|
* movenc: remove pointless loop around BITEXACT testJohn Stebbins2014-08-06
|
* movenc: Add option to disable nero chaptersJohn Stebbins2014-08-05
| | | | | | | And add flag to muxer documentation. Nero chapters break some taggers (mp3tag and iTunes). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Add HEVC definitionsFemi Adeyemi-Ejeye2014-08-05
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Define the section length with a constantLuca Barbato2014-08-04
| | | | | The specification says the value is expressed in 10 bits including the 4-byte CRC.
* Add Icecast protocolMarvin Scholz2014-08-04
| | | | | | Icecast is basically a convenience wrapper around the HTTP protocol. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Refactor http_open_cnxLuca Barbato2014-08-03
| | | | | | | | | Split return value handling from the actual opening. Incidentally fixes the https -> http redirect issue reported by Compn on behalf of rcombs. CC: libav-stable@libav.org
* flv: Index the audio streamLuca Barbato2014-08-01
| | | | | And leverage the video index if the video is just disabled as wm4 did in an initial patch.