aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* ape: check that number of seektable entries is equal to number of framesKostya Shishkov2011-04-011-0/+5
| | | | | | fixes issue2480 Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegts: propagate avio EOF in read_packet()Jindrich Makovicka2011-03-311-1/+1
| | | | | | | Allows distinguishing between EOF and IO error in read_packet return code. Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* flvdec: read index stored in the 'keyframes' tag.Kharkov Alexander2011-03-311-0/+66
| | | | | | | | | | | | | | | | 'keyframes' metatag is not part of the standard, it is just convention to use such kind of metatag information for indexing. Structure is following, it allows to have it inconsistent: keyframes: times (array): time0 (num) time1 (num) time2 (num) filepositions (array) position0 (num) position1 (num) Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mov: Add support for zero-sized stsc runs.Alex Converse2011-03-311-1/+1
| | | | | | | A zero sized stsc run doesn't make a lot of sense but the spec does not prohibit them and MPlayer VLC demuxers support them. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtsp: Use GET_PARAMETER for keep-alive for generic RTSP serversMartin Storsjö2011-03-301-1/+1
| | | | | | | | | According to the RFC, GET_PARAMETER should be used for this, and according to a report from Tim Ouellette, OPTIONS doesn't work for keeping the connection alive for some servers. Also, live555 uses GET_PARAMETER for this purpose. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avio: make get_checksum() internal.Anton Khirnov2011-03-306-14/+18
|
* avio: move ff_crc04C11DB7_update() from avio.h -> avio_internal.hAnton Khirnov2011-03-302-2/+2
|
* avio: make init_checksum() internal.Anton Khirnov2011-03-306-10/+21
|
* id3v1: change filesize to int64_t.Carl Eugen Hoyos2011-03-281-2/+2
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* id3v1: Seek back to old position after reading.Carl Eugen Hoyos2011-03-281-1/+2
| | | | | | | | FFmpeg did not seek back to the original position, but to "0", making reading a VBR tag impossible. (issue 2645) Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Chronomaster DFA decoderKostya Shishkov2011-03-284-1/+122
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* http: header field names are case insensitiveTyler2011-03-281-7/+7
| | | | | | | | | Amazon S3 sends header field names all lowercase. This is actually acceptable according to the HTTP standard. http://tools.ietf.org/html/rfc2616#section-4.2 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: set audio service type for AC-3 from bitstream mode in the 'dac3' atom.Justin Ruggles2011-03-251-1/+5
|
* Use audio_service_type to set stream disposition.Justin Ruggles2011-03-251-0/+13
|
* matroskadec: set default duration for simple blockJohn Stebbins2011-03-251-0/+2
| | | | | | | | | | | When a normal Block is parsed, duration is initialized to AV_NOPTS_VALUE. If it is not changed, then the track's default duration is used. But for SimpleBlock, duration is initialized to 0 instead of AV_NOPTS_VALUE. This is due to the difference in how EBML_NEST vs EBML_PASS are processed. Setting duration to 0 leads eventually to wrongly estimate the frame duration in util.c Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* ffmetadec.c: fix compiler warnings.Ronald S. Bultje2011-03-241-2/+2
|
* avio: make udp_set_remote_url/get_local_port internal.Anton Khirnov2011-03-234-11/+17
|
* asfdec: also subtract preroll when reading simple index objectVladimir Pantelic2011-03-231-2/+2
| | | | | | | This was missed when ASF was changed to return timestamps without preroll. Signed-off-by: Mans Rullgard <mans@mansr.com>
* matroskaenc: remove a variable that's unused after bc17bd9.Anton Khirnov2011-03-231-1/+0
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: cosmetics - nicer vertical alignment.Anton Khirnov2011-03-232-2/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* rtsp: Don't use a locale dependent format stringMartin Storsjö2011-03-231-2/+1
| | | | | | | In this particular case, we aren't ever printing anything else than 0.000 anyway. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Add xd55 codec tag for XDCAM HD422 720p25 CBR files.Tomas Härdin2011-03-231-0/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* matroskaenc: simplify get_aac_sample_rates by using ff_mpeg4audio_get_configAnton Khirnov2011-03-221-18/+5
| | | | | | | This also fixes broken SBR detection, which produced files with double sample rate since 8ae0fa2. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Do not use format string "%0.3f" for RTSP Range field.Carl Eugen Hoyos2011-03-221-2/+3
| | | | | | The format string was locale-depending. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* id3v2: skip broken tags with invalid sizeAnton Khirnov2011-03-221-4/+4
| | | | fixes issue2649.
* id3v2: don't explicitly skip paddingAnton Khirnov2011-03-221-4/+0
| | | | It's pointless, since there's a seek to the end of tag later.
* amr: Set the AVFMT_GENERIC_INDEX flagMartin Storsjö2011-03-211-0/+1
| | | | | This makes the amr demuxer support seeking, closing roundup issue 2593.
* amr: Set the pkt->pos field properly to the start of the packetMartin Storsjö2011-03-211-1/+2
| | | | | Previously, the field pointed to the second byte of the packet (which is the first byte of the actual AMR payload).
* amr: Set the codec->bit_rate field based on the last packetMartin Storsjö2011-03-211-0/+3
| | | | | | | | This allows libavformat to guess an estimated duration for amr files. For streams with varying bit rates (or with silence descriptors or "no frame" blocks) the guess is, of course, inaccurate.
* rtsp: Specify unicast for TCP interleaved streams, tooMartin Storsjö2011-03-211-1/+1
| | | | | | | | | | According to the RFC, the default is multicast if nothing is specified, which doesn't make sense for TCP. According to a bug report, some Axis camera models give a "400 Bad Request" error if this is omitted. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* applehttp: Change the variable for stream position in seconds into int64_tMartin Storsjö2011-03-211-1/+2
| | | | | | | | A similar variable for the total stream duration was changed to int64_t in b79c3df08807c96a945, due to overflows in some odd streams. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* id3v2: simplify error handling.Anton Khirnov2011-03-211-6/+4
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* id3v2: explicitly seek to the end of the tag after readingAnton Khirnov2011-03-211-2/+3
| | | | | | | | Current code might stop in the middle of an invalid tag. fixes issue2650 Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: make av_url_read_fseek/fpause internal.Anton Khirnov2011-03-216-12/+27
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_filenoAnton Khirnov2011-03-202-1/+4
| | | | | | | | It's an evil hack that assumes an AVIOContext is always based on top of an URLContext. It's also not used anywhere. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* rmenc: replace avio_seek(0) with avio_tell()Anton Khirnov2011-03-201-1/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: replace some more avio_seek(SEEK_CUR) with avio_skipAnton Khirnov2011-03-202-3/+3
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19296-1193/+1193
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* nutenc: fix a memleakAnton Khirnov2011-03-171-0/+1
| | | | | | This fixes a minor memory leak introduced in 073f8b1. Signed-off-by: Mans Rullgard <mans@mansr.com>
* asfdec: subtract the preroll value and thus output 0 based timestampsVladimir Pantelic2011-03-172-3/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: Make make_absolute_url a lavf internal functionMartin Storsjö2011-03-174-106/+66
| | | | | | This is shared by both applehttp demuxer and protocol. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* applehttp: Fix a typo in a commentMartin Storsjö2011-03-171-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: make av_interleave_packet() return meaningful error codesStefano Sabatini2011-03-171-3/+4
| | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit c5dcb3d493a6bb73efeb8bfae24f5cc31908201f) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* lavf: enable av_dlog message in av_interleaved_write_frame()Stefano Sabatini2011-03-171-1/+2
| | | | | | | | | Help debugging timestamp issues. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit d541c8b468c12892fe7b7e655e1ed45e11e2166d) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* lavf: enable av_dlog() in compute_pkt_fields2()Stefano Sabatini2011-03-171-1/+5
| | | | | | | | | | Turns a comment into an av_dlog() instruction, also add a commented issues. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 77f21ce4641b53f3277ba30ca3d009b6250fd9ea) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* avio: rename put_flush_packet -> avio_flushAnton Khirnov2011-03-1647-99/+104
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_close_bufAnton Khirnov2011-03-162-3/+3
| | | | | | It's not used anywhere and its return value looks broken. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_open_bufAnton Khirnov2011-03-162-2/+4
| | | | | | | It's only used in one place and does the same thing as avio_alloc_context. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: always compile avio_printf, rather than on CONFIG_MUXERSAnton Khirnov2011-03-161-2/+0
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fprintfAnton Khirnov2011-03-163-6/+23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>