summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
Commit message (Collapse)AuthorAge
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-17
| | | | It's more readable and less prone to breakage.
* Add some missing mathematics.h #includes for av_rescale().Diego Biurrun2011-07-05
|
* Do not include intfloat_readwrite.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove all uses of now deprecated metadata functions.Anton Khirnov2011-06-08
|
* flvdec: clenup debug codeAlex Converse2011-05-17
|
* flvdec: Allow parsing keyframes metadata without seeking in most casesMartin Storsjö2011-04-12
| | | | | | | | | | | | | Stop the avio input at a point where amf_parse_object can continue parsing the end of the object seamlessly, when all data is available. If unsupported data is encountered within the keyframes object, try seeking to the start of the keyframes object - if the seek back was successful, the caller can continue parsing the rest of the AMF data. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: undeprecate av_url_read_fseek/fpause under nicer namesAnton Khirnov2011-04-12
| | | | It seems their replacements won't be ready anytime soon.
* flvdec: Fix support for flvtool2 "keyframes based" generated indexKharkov Alexander2011-04-12
| | | | | | | | | | | Current keyframes data parser unconditionally rewind metadata to the end at the end of function. As result ALL metadata located after keyframes index not parsed, and as metadata object can have ANY placement inside metadata it can lead to unpredictable result (bitrate can not be found, etc.). As result FLV movie will not play at all in such situation. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: fix segfault in amf_parse_object() due to NULL keyJustin Ruggles2011-04-03
| | | | fixes Issue 2674
* avio: introduce an AVIOContext.seekable fieldAnton Khirnov2011-04-03
| | | | Use it instead of url_is_streamed and AVIOContext.is_streamed.
* flvdec: read index stored in the 'keyframes' tag.Kharkov Alexander2011-03-31
| | | | | | | | | | | | | | | | '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>
* avio: make av_url_read_fseek/fpause internal.Anton Khirnov2011-03-21
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes senseAnton Khirnov2011-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_feofAnton Khirnov2011-03-07
| | | | | | AVIOContext.eof_reached should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fsizeAnton Khirnov2011-03-07
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: add avio_tell macro as a replacement for url_ftellAnton Khirnov2011-03-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: replace all uses of url_fskip with avio_seekAnton Khirnov2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fseekAnton Khirnov2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefixes for get_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | | | In the name of consistency: get_byte -> avio_r8 get_<type> -> avio_r<type> get_buffer -> avio_read get_partial_buffer will be made private later get_strz is left out becase I want to change it later to return something useful. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace dprintf with av_dlogLuca Barbato2011-01-29
| | | | dprintf clashes with POSIX.1-2008
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* Fix 16kHz Mono NellyMoser in flv.Thierry Foucu2010-11-03
| | | | | | Patch by Thierry Foucu, tfoucu gmail Originally committed as revision 25667 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use ext sample from mpeg4audio config if set with AAC SBRBaptiste Coudurier2010-07-01
| | | | Originally committed as revision 23947 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark av_metadata_set() as deprecated, and use av_metadata_set2()Stefano Sabatini2010-04-25
| | | | | | | | in its place. av_metadata_set() is going to be dropped at the next major bump. Originally committed as revision 22961 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement librtmp seek support.Howard Chu2010-04-18
| | | | | | | | | | | | | | | | | | | Implement flv_read_seek(), add a missing check on stream_index and fix timestamp rounding in rtmp_read_seek(). Also add the flv_read_seek2() function, which is not enabled but is useful as reference. To actually implement flv_read_seek2() correctly, there would need to be some corresponding av_url_read_fseek2() function to propagate the timestamps down to the ByteIOContext and URLContext. Patch by Howard Chu <hyc <at> highlandsun.com>. See the thread: Subject: [FFmpeg-devel] RTMP seek support Date: 2010-03-28 23:35:02 GMT Originally committed as revision 22904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set audio bit rate.Howard Chu2010-04-11
| | | | | | Patch by Howard Chu, hyc highlandsun com Originally committed as revision 22835 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix flvdec start-of-frame.Howard Chu2010-04-01
| | | | | | Patch by Howard Chu hyc highlandsun com Originally committed as revision 22757 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.Jean-Daniel Dupas2010-03-31
| | | | | | Patch by Jean-Daniel Dupas, devlists shadowlab org Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fetch flv duration from file if it is set to 0 in metadataBaptiste Coudurier2010-01-19
| | | | Originally committed as revision 21329 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert flvdec.c part of r20836Michael Niedermayer2009-12-14
| | | | | | | | | | Log: Use AV_METADATA_DONT_STRDUP* / use av_malloced metadata instead of strduped arrays of fixed length. Code from ffmbc with changes to adapt to our metadata API. Reason: memleak & fix is not trivial Originally committed as revision 20866 to svn://svn.ffmpeg.org/ffmpeg/trunk
* FLV 8-bit PCM is unsigned, not signedDaniel Verkamp2009-12-14
| | | | | | Fixes issue #1569 Originally committed as revision 20853 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use AV_METADATA_DONT_STRDUP* / use av_malloced metadata instead of strdupedMichael Niedermayer2009-12-13
| | | | | | | arrays of fixed length. Code from ffmbc with changes to adapt to our metadata API. Originally committed as revision 20836 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add codec id for Flash screen codec v2 and hook it up in FLV demuxerDaniel Verkamp2009-11-20
| | | | Originally committed as revision 20563 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a channels field to MPEG4AudioConfig.Alex Converse2009-11-11
| | | | Originally committed as revision 20512 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check offset in flv_probe()Michael Niedermayer2009-09-15
| | | | Originally committed as revision 19858 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use all 32 bits of the timestamp when calculating flv duration.Martin Storsjö2009-09-07
| | | | | | | | | At the moment, duration is mainly set from the metadata packet. If that is not available, the fallback is checking the low 24 bits of the last packet. This is not enough for files over 4,6 hours in length, so read all 32 bits instead. patch by Martin Storsjö, martin martin st Originally committed as revision 19791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove fake Speex header creation from FLV demuxer. Having it there was not theJustin Ruggles2009-09-04
| | | | | | | correct solution to the problem. A better solution might be possible later once Speex is supported in muxers. Originally committed as revision 19761 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace WORDS_BIGENDIAN with HAVE_BIGENDIANMåns Rullgård2009-07-26
| | | | Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flvdec: expose metadata through the generic metadata APIAurelien Jacobs2009-07-06
| | | | | | original patch from Art Clarke aclarke _at_ xuggle _dot_ com Originally committed as revision 19364 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flvdec: re-enable metadata parsingAurelien Jacobs2009-07-06
| | | | | | | duration and videodatarate values are actually useful original patch from Art Clarke aclarke _at_ xuggle _dot_ com Originally committed as revision 19363 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flvdec: don't set format and codec context from metadata valuesAurelien Jacobs2009-07-06
| | | | | | | | This has proven to be useless and even harmfull since r18460 (expect for duration and videodatarate). original patch from Art Clarke aclarke _at_ xuggle _dot_ com Originally committed as revision 19362 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flvdec: Build a Speex header during FLV demuxing using required andJustin Ruggles2009-06-24
| | | | | | | default values. This is needed because FLV files with Speex do not contain a Speex header, which is necessary for stream copy. Originally committed as revision 19267 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Downgrade message log level (from AV_LOG_ERROR to AV_LOG_DEBUG) aboutArt Clarke2009-06-16
| | | | | | | | skipped metadata packet in FLV demuxer. Patch by Art Clarke a${surname} At xuggle - com. Originally committed as revision 19210 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unused variable from flv_read_metabody() found by CSA.Michael Niedermayer2009-04-17
| | | | Originally committed as revision 18571 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Disable metadata reading. Yes, I would like to know what this code is good forMichael Niedermayer2009-04-12
| | | | | | | | and this is the easiest way to. It would be a lot of messy code we can drop if it is useless. As a sideeffect this fixes issue977. Originally committed as revision 18460 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not fail on zero packets.Michael Niedermayer2009-04-03
| | | | Originally committed as revision 18328 to svn://svn.ffmpeg.org/ffmpeg/trunk
* skip empty data packets in flv, fix input.flvBaptiste Coudurier2009-04-02
| | | | Originally committed as revision 18306 to svn://svn.ffmpeg.org/ffmpeg/trunk