summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* avformat: bump version after mime_type changeVittorio Giovara2014-10-08
|
* avformat: use const char* instead of uint8_t* for AVProbeData.mime_typeAndreas Cadhalpun2014-10-08
| | | | | | | This makes the field consistent with AVInputFormat.mime_type and the argument type of av_match_name. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavf: Set the stream time base hint properly for chained muxersMartin Storsjö2014-10-06
| | | | | | | This avoids warnings about using the codec time base as time base hint. Signed-off-by: Martin Storsjö <martin@martin.st>
* sdp: Simplify parsing/conversion of H264 extradataMartin Storsjö2014-10-06
| | | | | | | | | | | | By using ff_avc_write_annexb_extradata instead of the h264_mp4toannexb BSF, the code for doing the conversion itself is kept much shorter, there's less state to restore at the end, we don't risk leaving the AVCodecContext in an inconsistent state if returning early due to errors, etc. Also add a missing free if the base64 encoding fails. Signed-off-by: Martin Storsjö <martin@martin.st>
* hlsenc: Add parameter -hls_allow_cacheJoakim Roubert2014-10-03
| | | | | | | | | | | | | The -hls_allow_cache parameter enables explicitly setting the EXT-X-ALLOW-CACHE tag in the manifest file. That tag indicates whether the client MAY or MUST NOT cache downloaded media segments for later replay. Valid values are 1 (=YES) or 0 (=NO) and the EXT-X-ALLOW-CACHE will not show in the manifest for other values (or if -hls_allow_cache is not used. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: fix memleaks in avformat_find_stream_info()Justin Ruggles2014-09-29
| | | | | | | | When AVFMT_FLAG_NOBUFFER is set, the packets are not added to the AVFormatContext packet list, so they need to be freed when they are no longer needed. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* sdp: Make opus declaration conform to the specTimothy B. Terriberry2014-09-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* probe: Bump the score for mime type matchingAndreas Cadhalpun2014-09-26
| | | | | | It should be more trustworthy than extension matching. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* caf: Give context structure a consistent nameDiego Biurrun2014-09-26
|
* m4vdec: K&R formatting cosmeticsGabriel Dume2014-09-25
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lmlm4: K&R formatting cosmeticsGabriel Dume2014-09-25
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* concat: K&R formatting cosmeticsGabriel Dume2014-09-25
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rtsp: Clear the session id on redirectsMartin Storsjö2014-09-24
| | | | | | | This fixes handling redirects in case the server provided a session id within the redirect reply. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: HEVC/H.265 supportThomas Volkert2014-09-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Move avc mp4 startcode parsing to a shared fileMartin Storsjö2014-09-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_hevc: Drop a duplicated, nonstandard entryVittorio Giovara2014-09-24
| | | | | | | | | | | | | | | | | | The RFC spec draft only specifies the "H265" name - there is no specification saying how to interpret "HEVC" (if such a packet format is specified it could be an entirely different format). Since this is a very new standard (still a draft), there is little need for compatibility with existing, broken implementations. Therefore remove the extra alias, to avoid the risk of encouraging incorrect usage. Intentionally keeping the ff_hevc_dynamic_handler name for the handler, to use "hevc" consistently as name for the codec instead of "h265" within the library internals as long as there only is one single variant in actual use. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc_chain: Pass the initial time_base hint on to the chained muxerMartin Storsjö2014-09-17
| | | | | | | | | | | | In practice this hint is ignored - the rtp muxer always overwrites the stream time base without taking the hint into account. But as a general practice this is the correct way to pass a time base hint on to a chained muxer. This avoids warnings about using the codec time base as hint being deprecated. Signed-off-by: Martin Storsjö <martin@martin.st>
* apetag: Fix APE tag size checkKaterina Barone-Adesi2014-09-17
| | | | | | | | | | The size variable is (correctly) unsigned, but is passed to several functions which take signed parameters, such as avio_read, sometimes after having numbers added to it. So ensure that size remains within the bounds that these functions can handle. CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de>
* libavformat: Check mkdir return error codesMartin Storsjö2014-09-07
| | | | | | | | | | | | | Previously, the returned error codes were intentionally ignored (see fadd3a68213), to avoid aborting if the directory already existed. If the mkdir actually failed, this was caught when opening files within the directory fails anyway. By handling the error code here (but explicitly ignoring EEXIST), the error messages and return codes in these cases are more appropriate and less confusing. Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1: Split bits used in libavformat into a separate headerDiego Biurrun2014-09-04
| | | | This reduces inter-library dependencies.
* rtpdec: HEVC/H.265 supportThomas Volkert2014-09-03
| | | | | | As specified in draft-ietf-payload-rtp-h265-06. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: Allow custom max resync sizeLuca Barbato2014-09-03
|
* matroskaenc: convert avstream stereo3d side data during encodingVittorio Giovara2014-08-28
| | | | Write the StereoMode Embl to bitstream.
* matroskadec: parse stereo mode on decodingVittorio Giovara2014-08-28
| | | | | | | | | Convert the Matroska stereo format to the Stereo3D format, and add a Stereo3D side data to the stream. Bump the doctype version supported. Bug-Id: 728 / https://bugs.debian.org/757185
* avcodec: add stream-level stereo3d side dataVittorio Giovara2014-08-28
|
* matroska: list supported extensionsVittorio Giovara2014-08-28
|
* mpegenc: limit the maximum muxrateAnton Khirnov2014-08-27
| | | | | | It is written to the file as a 22-bit value. CC: libav-stable@libav.org
* os_support: Adjust an outdated #endif commentDiego Biurrun2014-08-26
|
* mpeg: Write H264 streams at offset 2Luca Barbato2014-08-26
| | | | It hints that the content is H264 according to HD-DVD.
* libavformat: use MSG_NOSIGNAL when applicableRémi Denis-Courmont2014-08-25
| | | | | | | If the remote end of a connection oriented socket hangs up, generating an EPIPE error is preferable over an unhandled SIGPIPE signal. Signed-off-by: Martin Storsjö <martin@martin.st>
* 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>