summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* rtsp: Don't use av_malloc(0) if there are no streamsMartin Storsjö2012-04-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Don't use uninitialized data if there are no streamsMartin Storsjö2012-04-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Fix indentationMartin Storsjö2012-04-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Don't expose the MS-RTSP RTX data stream to the callerMartin Storsjö2012-04-08
| | | | | | | | This avoids exposing a dummy AVStream which won't get any data and which will make avformat_find_stream_info wait for info about this stream. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_asf: Set the no_resync_search option for the chained asf demuxerMartin Storsjö2012-04-07
| | | | | | | | | | Searching for packet markers doesn't make sense for this use case, where packets are fed one at a time to the demuxer. This fixes playing back streams that have packets not starting with the 0x82, 0x00, 0x00 marker. Signed-off-by: Martin Storsjö <martin@martin.st>
* asfdec: Add an option for not searching for the packet markersMartin Storsjö2012-04-07
| | | | | | Some streams don't contain these. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Only require first packet to be known for audio/video streamsJoakim Plate2012-04-06
| | | | | | | | It can take a long time before subtitles or data streams show up, so we shouldn't wait for those before assuming we have all info for streams. Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Align muxer/demuxer declarationsMartin Storsjö2012-04-06
| | | | | | | Also add missing trailing commas, break long codec_tag lines and add spaces in codec_tag declarations. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: implement bandwidth notificationRaffaele Sena2012-04-03
| | | | | | Improve compatibility with some servers. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtmp: update supported audio codecs valueSamuel Pitoiset2012-04-03
| | | | | | | | The audio codecs property is composed by all values except SUPPORT_SND_INTEL (0x0008) and SUPPORT_SND_UNUSED (0x0010) which are unused. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* id3v2: fix skipping extended header in id3v2.4Anton Khirnov2012-04-01
| | | | In v2.4, the length includes the length field itself.
* oggenc: fix condition when not to flush due to keyframe granule.Reimar Döffinger2012-03-30
| | | | | | | | | | | | | | The previous condition of 0 page size was wrong, that would disable the mechanism for all frames at a start of a page, thus some keyframes still would not get their own granule. The real problem is that header packets must not be flushed, but they have (and must have) 0 granule and thus would be detected as keyframes. Add a separate parameter to mark header packets. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* oggenc: add pagesize option to set preferred page sizeAndres Gonzalez2012-03-30
| | | | | | | | When set, if an Ogg stream buffer has enough data, a page is made instead of filling maximum-size pages. Using smaller pages results smaller seek intervals at the expense of higher container overhead. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* output-example: K&R formatting cosmetics, comment spelling fixesDiego Biurrun2012-03-30
|
* avf: make the example output the proper messageLuca Barbato2012-03-29
| | | | | av_dump_format needs the codecs opened in order to print them.
* avf: fix audio writing in the output-exampleLuca Barbato2012-03-29
| | | | | av_init_packet does not reset data and size fields in AVPacket, avcodec_encode_audio2 can use preallocated AVPacket.
* mov: don't overwrite existing indexes.Ronald S. Bultje2012-03-29
| | | | | | | | Prevents all kind of badness if files contain multiple indexes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* id3v2: add another mimetype for JPEG imageKostya Shishkov2012-03-29
|
* asf: only set index_read if the index contained entries.Ronald S. Bultje2012-03-28
| | | | | This allows falling back to a binary search if the file contains no index, thus fixing seeking in such files (e.g. luckynight.wma).
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-28
| | | | Also remove one pointless zero initialization in rangecoder.c.
* oggdec: calculate correct timestamps in Ogg/FLACJustin Ruggles2012-03-27
| | | | | We need to parse the individual packet durations when there is more than one packet in a page.
* westwood_vqa: fix SND0 chunk handlingPaul B Mahol2012-03-27
| | | | | | | | Version from vqa header does not dictate which sound chunks may appear in file. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* westwood_vqa: set video stream durationPaul B Mahol2012-03-27
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* make av_interleaved_write_frame() flush packets when pkt is NULLJindrich Makovicka2012-03-27
| | | | | | | | This patch allows the user to force flushing of all queued packets by calling av_interleaved_write_frame() with pkt set to NULL. Signed-off-by: Jindrich Makovicka <jindrich.makovicka@nangu.tv> Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegts: Fix dead error checksAlex Converse2012-03-26
|
* build: prettyprinting cosmeticsDiego Biurrun2012-03-26
|
* lavf doxy: expand AVStream.codec doxy.Anton Khirnov2012-03-26
|
* lavf doxy: improve AVStream.time_base doxy.Anton Khirnov2012-03-26
| | | | | Remove confusing sentence that implied the user should set the timebase. Elaborate on how the timebase is set for muxing.
* lavf doxy: add some basic documentation about reading from the demuxer.Anton Khirnov2012-03-26
|
* lavf doxy: document passing options to demuxers.Anton Khirnov2012-03-26
|
* lavf doxy: clarify that an AVPacket contains encoded data.Anton Khirnov2012-03-26
|
* mpegtsenc: allow user triggered PES packet flushingJindrich Makovicka2012-03-26
| | | | | Signed-off-by: Jindrich Makovicka <jindrich.makovicka@nangu.tv> Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Merge if statementsMartin Storsjö2012-03-25
| | | | | | | | This isn't exactly equivalent with the earlier code for codecs other than H264 and VC1, but those are two only codecs supported by this codepath anyway, and it simplifies it a bit. Signed-off-by: Martin Storsjö <martin@martin.st>
* avc: Add a function for converting mp4 style extradata to annex bMartin Storsjö2012-03-24
| | | | | | | Make movenc use this function instead of the current custom conversion function. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Document who sets the AVStream.id fieldMartin Storsjö2012-03-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* xwma: Validate channels and bits_per_coded_sample.Alex Converse2012-03-22
| | | | | | | This prevents a SIGFPE later on. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mov: Do not read past the end of the ctts_data table.Alex Converse2012-03-22
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mov: Add missing terminator to mov_ch_layout_map_1ch.Alex Converse2012-03-22
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: Libav-stable@libav.org
* asf: reset side data elements on packet copy.Ronald S. Bultje2012-03-22
| | | | | | | Prevents crash (double free) when free()ing the original packet. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* oggparseogm: fix order of arguments of avpriv_set_pts_info().Michael Niedermayer2012-03-22
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* aiffdec: set block_duration to 1 for PCM codecs that are supported in AIFF-CJustin Ruggles2012-03-22
|
* aiffdec: factor out handling of integer PCM for AIFF-C and plain AIFFJustin Ruggles2012-03-22
|
* aiffdec: use av_get_audio_frame_duration() to set block_duration for AIFF-CJustin Ruggles2012-03-22
|
* aiffdec: do not set bit rate if block duration is unknownJustin Ruggles2012-03-22
| | | | CC: libav-stable@libav.org
* lavf: make av_interleave_packet_per_dts() private.Anton Khirnov2012-03-20
| | | | | There is no reason for it to be public, it's only meant to be used internally.
* lavf: deprecate av_read_packet().Anton Khirnov2012-03-20
| | | | | | The caller can achieve the same effect (i.e. getting raw unparsed/mangled packets) with av_read_frame() and AVFMT_FLAG_NOPARSE | AVFMT_FLAG_NOFILLIN
* oggdec: output correct timestamps for VorbisJustin Ruggles2012-03-20
| | | | | | | | | Takes encoder delay into account by comparing first the coded page duration with the calculated page duration. Handles last packet duration if needed, also by comparing coded duration with calculated duration. Also does better handling of timestamp generation for packets in the first page for streamed ogg files where the start time is not necessarily zero.
* xa: set correct bit rateJustin Ruggles2012-03-20
| | | | Also fixes stream duration calculation.
* xa: do not set bit_rate, block_align, or bits_per_coded_sampleJustin Ruggles2012-03-20
| | | | The values in the header refer to decoded data, not compressed data.
* xa: fix end-of-file handlingJustin Ruggles2012-03-20
| | | | | Do not output an extra packet when out_size is reached. Also return AVERROR_EOF instead of AVERROR(EIO).