summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* mov: Fix detecting there is no sync sample.Yusuke Nakamura2012-04-132-1/+5
| | | | | | Stss atom without entries doesn't mean every sample is a sync sample. Signed-off-by: Martin Storsjö <martin@martin.st>
* avf: has_duration does not check the global oneLuca Barbato2012-04-131-0/+2
| | | | | Some container formats report a global duration, but not a per stream one.
* matroska: Fix leaking memory allocated for laces.Dale Curtis2012-04-121-3/+7
| | | | | | | | | | During error conditions matroska_parse_block may exit without freeing the memory allocated for laces. Found via valgrind: http://pastebin.com/E54k8QFU Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* movenc: Remove a dead initializationAlex Converse2012-04-121-1/+1
|
* avpacket, bfi, bgmc, rawenc: K&R prettyprinting cosmeticsDiego Biurrun2012-04-121-36/+36
|
* movenc: small refactor mov_write_packetLuca Barbato2012-04-111-27/+32
| | | | | | | | | | Share the formerly internal write_packet with the hinter and move the fragment flush logic to the user facing one since it is not concerned about movtrack-only streams. Fixes bug #263 Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: remove redundant checkLuca Barbato2012-04-111-3/+0
| | | | | | The proper check is already in mov_write_header. Signed-off-by: Martin Storsjö <martin@martin.st>
* Drop some pointless #ifdefs.Diego Biurrun2012-04-101-2/+0
| | | | The files are only compiled if the #ifdef conditions are met.
* nutdec: K&R formatting cosmeticsAsen Lekov2012-04-101-436/+500
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rtsp: Don't use av_malloc(0) if there are no streamsMartin Storsjö2012-04-081-2/+3
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Don't use uninitialized data if there are no streamsMartin Storsjö2012-04-081-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Fix indentationMartin Storsjö2012-04-081-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Don't expose the MS-RTSP RTX data stream to the callerMartin Storsjö2012-04-088-10/+37
| | | | | | | | 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-071-1/+4
| | | | | | | | | | 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-071-1/+20
| | | | | | 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-061-1/+3
| | | | | | | | 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-0663-156/+174
| | | | | | | 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-031-0/+16
| | | | | | Improve compatibility with some servers. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtmp: update supported audio codecs valueSamuel Pitoiset2012-04-031-1/+5
| | | | | | | | 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-011-2/+11
| | | | 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-301-7/+8
| | | | | | | | | | | | | | 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-301-2/+25
| | | | | | | | 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-301-97/+100
|
* avf: make the example output the proper messageLuca Barbato2012-03-291-2/+2
| | | | | av_dump_format needs the codecs opened in order to print them.
* avf: fix audio writing in the output-exampleLuca Barbato2012-03-291-1/+1
| | | | | 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-291-8/+11
| | | | | | | | 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-291-0/+1
|
* asf: only set index_read if the index contained entries.Ronald S. Bultje2012-03-281-1/+1
| | | | | 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-289-24/+12
| | | | Also remove one pointless zero initialization in rangecoder.c.
* oggdec: calculate correct timestamps in Ogg/FLACJustin Ruggles2012-03-271-0/+1
| | | | | 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-271-63/+71
| | | | | | | | 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-271-0/+2
| | | | | 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-272-12/+20
| | | | | | | | 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-261-6/+12
|
* build: prettyprinting cosmeticsDiego Biurrun2012-03-261-2/+2
|
* lavf doxy: expand AVStream.codec doxy.Anton Khirnov2012-03-261-1/+12
|
* lavf doxy: improve AVStream.time_base doxy.Anton Khirnov2012-03-261-3/+5
| | | | | 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-261-0/+16
|
* lavf doxy: document passing options to demuxers.Anton Khirnov2012-03-261-0/+41
|
* lavf doxy: clarify that an AVPacket contains encoded data.Anton Khirnov2012-03-261-2/+2
|
* mpegtsenc: allow user triggered PES packet flushingJindrich Makovicka2012-03-261-9/+31
| | | | | Signed-off-by: Jindrich Makovicka <jindrich.makovicka@nangu.tv> Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Merge if statementsMartin Storsjö2012-03-251-5/+2
| | | | | | | | 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-243-24/+42
| | | | | | | 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-241-1/+6
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* xwma: Validate channels and bits_per_coded_sample.Alex Converse2012-03-221-0/+11
| | | | | | | 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-221-1/+1
| | | | | 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-221-0/+1
| | | | | 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-221-0/+2
| | | | | | | 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-221-1/+1
| | | | 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-221-0/+7
|