summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* rtpenc: Use MB info side data for splitting H263 packets for RFC 2190Martin Storsjö2012-03-01
| | | | | | | This makes the packetization spec compliant for cases where one single GOB doesn't fit into an RTP packet. Signed-off-by: Martin Storsjö <martin@martin.st>
* dxa: set audio stream time base using the sample rateJustin Ruggles2012-02-29
|
* psx-str: do not allow seeking by bytesJustin Ruggles2012-02-29
|
* asfdec: Do not set AVCodecContext.frame_sizeJustin Ruggles2012-02-29
|
* vqf: set packet parameters after av_new_packet()Justin Ruggles2012-02-29
| | | | Otherwise the values are overwritten.
* rtpenc: Fix setting the max packet sizeMartin Storsjö2012-02-29
| | | | | | | This fixes cases where the user had specified one desired MTU via an option, and the protocol indicates another one. Signed-off-by: Martin Storsjö <martin@martin.st>
* Add a minor bump, changelog/APIchanges entry and some documentation for APIC ↵Anton Khirnov2012-02-29
| | | | support.
* mp3enc: write attached pictures (APIC).Anton Khirnov2012-02-29
|
* mp3enc: move mp3_write_xing() further up in the file.Anton Khirnov2012-02-29
| | | | It will be need by new functions called from mp3_write_trailer().
* id3v2enc: add a function for writing attached pictures.Anton Khirnov2012-02-29
| | | | Unused so far.
* id3v2enc: fix writing frame sizes for ID3v2.3Anton Khirnov2012-02-29
| | | | | | | Frame sizes in ID3v2.3 are not synchsafe, they are simply 32be numbers. In practice this bug is not noticeable unless the frame size takes more than 7 bits (which is almost never for text frames).
* id3v2enc: split ff_id3v2_write().Anton Khirnov2012-02-29
| | | | | This will allow writing the tag in several steps, needed for writing attached pictures.
* id3v2enc: make id3v2_put_size take only an AVIOContext.Anton Khirnov2012-02-29
| | | | It has no need of full AVFormatContext.
* id3v2: remove unused ff_id3v2_read().Anton Khirnov2012-02-29
| | | | Rename ff_id3v2_read_all to ff_id3v2_read().
* lavf: export id3v2 attached pictures as streams.Anton Khirnov2012-02-29
|
* lavf: generic code for exporting attached pictures.Anton Khirnov2012-02-29
|
* id3v2: read attached pictures and export them in ID3v2ExtraMeta.Anton Khirnov2012-02-29
|
* lavf: move CodecMime from matroska.h to internal.hAnton Khirnov2012-02-29
| | | | it will be useful for attached pictures in ID3v2
* swfdec: do not set codec timebase.Anton Khirnov2012-02-29
| | | | | | It is not supposed to be set outside of lavc. Fixes a divide by zero when the stored framerate is 0.
* lavc: deprecate AVCodecContext.color_table_id.Anton Khirnov2012-02-29
| | | | | It's currently only used as temporary storage by the mov demuxer. Make it use a local variable instead.
* mpegvideo_enc: add chroma/luma_elim_threshold private options.Anton Khirnov2012-02-29
| | | | Deprecate corresponding AVCodecContext fields.
* asf: don't seek back on EOF.Ronald S. Bultje2012-02-28
| | | | | | | | | Seeking back on EOF will reset the EOF flag, causing us to re-enter the loop to find the next marker in the ASF file, thus potentially causing an infinite loop. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* asf: error out on ridiculously large minpktsize values.Ronald S. Bultje2012-02-28
| | | | | | | They cause various issues further down in demuxing. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* oma: don't read beyond end of leaf_table.Ronald S. Bultje2012-02-28
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* doxygen: Remove documentation for non-existing parameters; misc small fixes.Diego Biurrun2012-02-28
|
* segment: implement wrap aroundLuca Barbato2012-02-28
| | | | | | | | Provide a way to wrap around the segment index so pseudostreaming live through a web server and html5 browser is simpler. Also ensure that 0 (disable) is a valid value across the options providing wrap around.
* avf: reorder AVStream and AVFormatContextLuca Barbato2012-02-28
|
* flvdec: Remove the now redundant check for known broken metadata creatorMichael Niedermayer2012-02-27
| | | | | | The index validation identifies these indexes as broken. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Validate index entries added from metadata while readingMartin Storsjö2012-02-27
| | | | | | | | | | | By validating the index entries while reading, we don't need to seek at startup to validate the entries. If the error in the index entries is not pointing to (our definition of) the start of packets, and there is an index entry pointing at some of the first packets after the metadata, the invalid index can be discarded almost immediately. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Handle requests from server to clientTommy Winther2012-02-27
| | | | | | | | | | | | This returns 200 OK for OPTIONS requests and 501 Not Implemented for all other requests. Even though this doesn't do much actual handling of the requests, it makes the code properly identify server requests as such, instead of interpreting it as a reply to the client's request as it did before. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: use timestamps instead of frame_size for samples-per-packetJustin Ruggles2012-02-27
| | | | | | For encoding, AVCodecContext.frame_size is the number of input samples to send to the encoder and does not necessarily correspond directly to the timestamps of the output packets.
* movenc: use the first cluster duration as the tfhd default durationJustin Ruggles2012-02-27
|
* movenc: factorize calculation of cluster duration into a separate functionJustin Ruggles2012-02-27
|
* lavf: don't guess r_frame_rate from either stream or codec timebase.Anton Khirnov2012-02-26
| | | | | | | Neither of those is guaranteed to be connected to framerate in any way (if it even exists). Fixes bug 56.
* lavf: don't set codec timebase in avformat_find_stream_info().Anton Khirnov2012-02-26
| | | | It's not supposed to be set outside of lavc.
* rawdec: set timebase to 1/fps.Anton Khirnov2012-02-26
|
* matroska: don't overwrite string values until read/alloc was succesful.Ronald S. Bultje2012-02-25
| | | | | | | | | | | | This prevents certain tags with a default value assigned to them (as per the EBML syntax elements) from ever being assigned a NULL value. Other parts of the code rely on these being non-NULL (i.e. they don't check for NULL before e.g. using the string in strcmp() or similar), and thus in effect this prevents crashes when reading of such specific tags fails, either because of low memory or because of targeted file corruption. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lavf: move the packet keyframe setting code.Anton Khirnov2012-02-24
| | | | | | | | | | compute_pkt_fields() is for unreliable estimates or guessing. The keyframe information from the parser is (at least in theory) reliable, so it should be used even when the other guessing is disabled with the AVFMT_FLAG_NOFILLIN flag. Therefore, move setting the packet keyframe flag based on parser information from compute_pkt_fields() to read_frame_internal().
* oggenc: free comment header for all codecsJustin Ruggles2012-02-24
| | | | | | fixes a memleak for Vorbis and Theora, where the comment header from avpriv_split_xiph_headers() is replaced by a buffer that must be freed separately.
* lavf/output-example: use new audio encoding API correctly.Anton Khirnov2012-02-24
|
* lavf/output-example: more proper usage of the new API.Anton Khirnov2012-02-24
| | | | Passing the codec into avformat_new_stream() is preferred.
* apetag: do not leak memory if avio_read() failsPaul B Mahol2012-02-23
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* apetag: propagate errors.Ronald S. Bultje2012-02-23
| | | | | | | Fixes crashes if reading the tag value fails. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* swf: check return values for av_get/new_packet().Ronald S. Bultje2012-02-23
| | | | | | | Prevents crashers when using the packet if allocation failed. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* rtpenc: Expose the max packet size via an avoptionMartin Storsjö2012-02-23
| | | | | | | | | | This allows opting for a lower MTU than what the AVIOContext indicated, and allows writing into outputs that don't indicate an MTU at all (such as plain files, which is useful for testing). This also allows querying for the MTU via the avoption. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Move max_packet_size to a context variableMartin Storsjö2012-02-23
| | | | | | This is in preparation for exposing this via an avoption. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Add an option for not sending RTCP packetsMartin Storsjö2012-02-23
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Add an error messageMartin Storsjö2012-02-23
| | | | | | Also return a proper error code. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Allow packetizing H263 according to the old RFC 2190Martin Storsjö2012-02-23
| | | | | | | | | | | | | | | | | | According to newer RFCs, this packetization scheme should only be used for interfacing with legacy systems. Implementing this packetization mode properly requires parsing the full H263 bitstream to find macroblock boundaries (and knowing their macroblock and gob numbers and motion vector predictors). This implementation tries to look for GOB headers (which can be inserted by using -ps <small number>), but if the GOBs aren't small enough to fit into the MTU, the packetizer blindly splits packets at any offset and claims it to be a GOB boundary (by using Mode A from the RFC). While not correct, this seems to work with some receivers. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc: Move the trailing comma into FF_RTP_FLAG_OPTSMartin Storsjö2012-02-23
| | | | | | This simplifies adding more flags to the macro. Signed-off-by: Martin Storsjö <martin@martin.st>