summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* Eliminate pointless '#if 1' statements without matching '#else'.Diego Biurrun2011-04-26
|
* read AVI palette from the end of extradataKostya Shishkov2011-04-24
| | | | | | | | | | | | | | | | | | Official AVI specification says that stream header in case of video contains BITMAPINFO, which is equal to BITMAPINFOHEADER and optional palette. Currently lavf AVI demuxer thinks otherwise which produces garbage on codecs that have both palette and extradata (luckily, there are not so many such codecs). An example of such file is: http://samples.multimedia.cx/V-codecs/KMVC/baseball1.avi (IIRC, MSS1 or MSS2 also had such situation but they are still not supported by lavc). As a side note, passing palette in extradata as it's been done previously is not quite correct since proper _extra_ data is surplus bytes in BITMAPINFOHEADER, not including palette. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* applehttp: Don't export variant_bitrate if it isn't knownMartin Storsjö2011-04-24
| | | | | | | | If there are no variants, the total bitrate of the single stream isn't known, and exporting variant_bitrate = 0 does look weird, since there really aren't any variants. Signed-off-by: Martin Storsjö <martin@martin.st>
* crypto: Use av_freep instead of av_freeMartin Storsjö2011-04-24
| | | | | | Using av_freep is generally good practice. Signed-off-by: Martin Storsjö <martin@martin.st>
* oggdec: reindent after 8f3eebd6Clément Bœsch2011-04-24
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Handle unicode file names on windowsKirill Gavrilov2011-04-24
| | | | | | | | | | | | | All file names should be in UTF-8 within libavformat. This is handled by mapping the open() function to an internal one in os_support.h for windows. fopen() could be overridden in the same way, but if that would be used from ffmpeg.c, it would add a dependency on an ff prefixed internal lavf function. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtp: Rename the open/close functions to alloc/freeMartin Storsjö2011-04-24
| | | | | | | This avoids clashes if we internally want to override the global open function. Signed-off-by: Martin Storsjö <martin@martin.st>
* Fix mov debug (u)int64_t format strings.Alex Converse2011-04-22
|
* applehttp: Handle AES-128 encrypted streamsMartin Storsjö2011-04-23
| | | | | | | | | | This should hopefully fix roundup issue 2586. This commit only implements it in the demuxer, not in the protocol handler. If desired, some of the code could be refactored to be shared by both implementations. Signed-off-by: Martin Storsjö <martin@martin.st>
* Add a protocol handler for AES CBC decryption with PKCS7 paddingMartin Storsjö2011-04-23
| | | | | | | | | | | | This can later be extended to support other AES bit sizes, encryption, other crypto algorithms, reading the key from a URL, etc. In order to use it, the key and initialization vector has to be passed via AVOptions. Since such options can't be passed to protocols from the command line, the protocol is currently only for libavformat internal use. Signed-off-by: Martin Storsjö <martin@martin.st>
* Use av_log_ask_for_sample() to request samples from users.Diego Biurrun2011-04-22
|
* applehttp: Expose the stream bitrate via metadataMartin Storsjö2011-04-21
| | | | | | | This helps callers to intelligently switch between bitrate variants. Signed-off-by: Martin Storsjö <martin@martin.st>
* error: remove AVERROR_NUMEXPECTEDStefano Sabatini2011-04-21
| | | | | | | | | | | AVERROR_NUMEXPECTED is used only in the image muxer and demuxer, and has a too much specific meaning, which is better explained through a log message. Thus it can be replaced by AVERROR(EINVAL). This breaks API. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* oggdec: use av_freep() instead of av_free()Michael Niedermayer2011-04-20
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: Fix sanity checks in ffurl_read*Martin Storsjö2011-04-20
| | | | | | | This fixes e.g. reading data over HTTP, where the underlying socket is set to read/write. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libavformat: Free AVFormatContext->streamsMartin Storsjö2011-04-20
| | | | | | | | After switching this from a statically allocated array to a dynamically allocated one in the major bump, this needs explicit freeing. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Make protocols pass URLContext as log context where availableMartin Storsjö2011-04-20
| | | | | | | Since the libavformat major bump, URLContext contains an AVClass, making it a usable log context. Signed-off-by: Martin Storsjö <martin@martin.st>
* asf: remove commented out code in asf_read_seekVladimir Pantelic2011-04-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* prefer avio_check() over url_exist()Stefano Sabatini2011-04-19
| | | | | | | | | | | | | | The problem with url_exist() is that it tries to open a resource in RDONLY mode. If the file is a FIFO and there is already a reading client, the open() call will hang. By using avio_check() with access mode of 0, the second reading process will check if the file exists without attempting to open it, thus avoiding the lock. Fix issue #1663. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbolsStefano Sabatini2011-04-19
| | | | | | | | Make AVIO_FLAG_ access constants work as flags, and in particular fix the behavior of functions (such as avio_check()) which expect them to be flags rather than modes. This breaks API.
* lavf: remove misc disabled cruft.Anton Khirnov2011-04-19
|
* lavf: remove FF_API_INDEX_BUILT cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_URL_CLASS cruft.Anton Khirnov2011-04-19
|
* lavf: remove FF_API_SYMVER cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_FIRST_FORMAT cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_PARAMETERS_CODEC_ID cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_LAVF_UNUSED cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_PARSE_FRAME_PARAM cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_ALLOC_FORMAT_CONTEXT cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_URL_SPLIT cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_UDP_GET_FILE cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_GUESS_FORMAT cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_REGISTER_PROTOCOL cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_URL_RESETBUF cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_OLD_METADATA cruftAnton Khirnov2011-04-19
|
* lavf: remove FF_API_MAX_STREAMS cruftAnton Khirnov2011-04-19
|
* Bump major versions of all libraries.Anton Khirnov2011-04-18
| | | | | | They've accumulated enough new APIs and corresponding deprecated cruft. This breaks API and ABI.
* Replace mplayerhq.hu URLs by libav.org.Diego Biurrun2011-04-18
|
* asfdec: Remove dead code from asf_read_close().Diego Biurrun2011-04-18
|
* Replace more FFmpeg references by Libav.Diego Biurrun2011-04-17
|
* make containers pass palette change in AVPacketKostya Shishkov2011-04-15
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* xwma: Fix wrong printf format expression.Diego Biurrun2011-04-15
| | | | | | | | Also add inttypes.h #include for PRId64 macros. This fixes the following warnings: libavformat/xwma.c:147: warning: too many arguments for format libavformat/xwma.c:151: warning: too many arguments for format
* xwma demuxer: typosMax Horn2011-04-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: simplify audio chained ogg streams supportClément Bœsch2011-04-15
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* handle malloc failures in ff_get_wav_headerMax Horn2011-04-14
| | | | | | | | | | | ff_get_wav_header is reading data from a WAVE file and then uses it (without validation) to malloc a buffer. It then proceeded to read data into the buffer, without verifying that the allocation succeeded. To address this, change ff_get_wav_header to return an error if allocation failed, and adapted all calling code to handle that error. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* add xWMA demuxerMax Horn2011-04-14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegts: force the default timebaseRudolf Polzer2011-04-14
| | | | | | | The mpegts muxer does not set the stream time base using av_set_pts_info, but expects it to have the default value of 1/90000. If the calling code changes stream pts before writing the header, other muxers override the time base at that point (like mpegenc.c).
* lavf: postpone removal of public metadata conversion APIAnton Khirnov2011-04-13
| | | | It's been deprecated only a few months ago, long after 0.6.
* lavf: postpone removal of deprecated avio functionsAnton Khirnov2011-04-13
| | | | They've been deprecated very recently.
* applehttp: Only check the discard flags if v->ctx actually is initializedMartin Storsjö2011-04-13
| | | | | | | This code could be executed if the demuxer reads more than one segment before returning from av_open_input_stream. Signed-off-by: Martin Storsjö <martin@martin.st>