summaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* udp: Enable address reuse by default for multicastDavid Fries2011-02-091-2/+15
| | | | | | | | Keep the original corner case behaviour, where reuse is enabled for the case where no argument is given to the reuse url option. Signed-off-by: Martin Storsjö <martin@martin.st> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asfdec: remove some write-only values from the contextAnton Khirnov2011-02-091-4/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* asf: split ASFContext into muxer and demuxer parts.Anton Khirnov2011-02-093-58/+66
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mpegts: remove unused macro MAX_SCAN_PACKETSVladimir Pantelic2011-02-091-3/+0
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Frame-based multithreading framework using pthreadsAlexander Strange2011-02-091-0/+6
| | | | | | See doc/multithreading.txt for details on use in codecs. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asf: make ff_guidcmp inline and move it to asf.hAnton Khirnov2011-02-092-6/+6
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: rename ff_probe_input_buffer to make it publicAnssi Hannula2011-02-084-22/+22
| | | | | | | It is useful for applications that hand input data directly to lavf via a ByteIOContext. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: simplify pb parameter of ff_probe_input_bufferAnssi Hannula2011-02-082-5/+5
| | | | | | | There is no need to pass the ByteIOContext via a pointer to a pointer anymore. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: update ff_probe_input_buffer documentationAnssi Hannula2011-02-081-1/+1
| | | | | | It never reopens the bytestream anymore. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* oggdec: Fix incorrect assumption about header/data interleavingReimar Döffinger2011-02-081-7/+7
| | | | | | | | | | | | Currently (since the data_offset fix) the ogg demuxer assumes that after the first non-header packets in any stream no more header packets will follow. This is not guaranteed, so change the code back again to wait until it has finished the headers for all streams before returning from ogg_get_headers. This fixes issue 2428. Signed-off-by: Mans Rullgard <mans@mansr.com>
* matroskadec: add generic element length validation.Reimar Döffinger2011-02-061-0/+17
| | | | | | | | | | | | This validate the length of a mkv element directly after reading it. This has the advantage that it is easy to add new limits and makes it less likely to forget to add checks and also avoids issues like bits of the length value above the first 32 being ignored because the parsing functions only takes an int. Previously discussed in the "mkv 0-byte integer parsing" thread. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Fix compile warning.Ronald S. Bultje2011-02-061-1/+1
| | | | | Change int64_t into a int, which caused this compiler warning: libavformat/oggparseskeleton.c:64: warning: passing argument 2 of ‘av_reduce’ from incompatible pointer type
* avidec: simplify read_gab2_subAnton Khirnov2011-02-061-22/+16
| | | | | | | | | | Use avio functions instead of bytestream ones (also drops dependency on lavc and removes a bunch of warnings). Drop custom version of avio_get_str16 and use that instead. Tested on mewmew-ssa.avi sample. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: move internal functions from avformat.h to internal.hAnton Khirnov2011-02-065-25/+24
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Make av_set_pts_info keep previous time base if new one is invalid.Reimar Döffinger2011-02-062-8/+12
| | | | | | Fixes issue 2475. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Always use av_set_pts_info to set the stream time base.Reimar Döffinger2011-02-068-16/+12
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* pass QDMC extradata to the decoderSascha Sommer2011-02-062-2/+3
| | | | | | | Makes playing QDMC files in MPlayer work when using the libavformat demuxer. Problem was that the extradata was not passed from demuxer to decoder. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Update MINOR and set git rev for non-blocking flag API addition.Ronald S. Bultje2011-02-061-1/+1
|
* Replace remaining occurrences of deprecated CH_* with AV_CH_*Anton Khirnov2011-02-063-3/+6
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Non-blocking protocol: TCPNicolas George2011-02-051-36/+11
| | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Non-blocking protocol: core wrapper functionsNicolas George2011-02-052-14/+19
| | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Non-blocking protocols: flag and documentationNicolas George2011-02-051-3/+26
| | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mp3enc: write ISO8859-1 instead of UTF-16 when possibleAnton Khirnov2011-02-051-0/+12
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* reindent after last commitPeter Ross2011-02-051-8/+8
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* wtv: do not use flag in stream_guid chunk to determine if stream is valid, ↵Peter Ross2011-02-051-6/+2
| | | | | | | | as this method is unreliable This fixes roundup issue 2556. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* applehttp: Handle absolute paths relative to the current serverMartin Storsjö2011-02-041-0/+14
| | | | | | This fixes roundup issue 2583. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* movenchint: Use rtpenc_chain for setting up the chained RTP muxerMartin Storsjö2011-02-042-33/+5
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* rtpenc_chain: Don't copy the time_base back to the callerMartin Storsjö2011-02-041-2/+0
| | | | | | | | If required, the caller can do this itself. ff_write_chained rescales timestamps as necessary, and all current callers of rtpenc_chain use ff_write_chained, making this timebase copy unnecessary. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Use avformat_free_context for cleaning up muxersMartin Storsjö2011-02-044-36/+6
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* libavformat: Add a function for freeing an AVFormatContextMartin Storsjö2011-02-043-6/+17
| | | | | | | This function is useful for freeing data structures allocated by muxers, which currently have to be freed manually by the caller. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* libavformat: Use avcodec_copy_context for chained muxersMartin Storsjö2011-02-044-9/+12
| | | | | | | | | | | | | This avoids having the chained AVStream->codec point to the same AVCodecContext owned by the outer AVStream. The downside is that changes to the AVCodecContext made after calling av_write_header cannot be detected automatically within the chained muxer. This avoids having to manually unlink the chained AVStream->codec by setting it to null before freeing the chained muxer via generic freeing functions. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Remove forgotten if (p) av_free(p) formsClément Bœsch2011-02-041-2/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* add ff_index_search_timestamp and ff_add_index_entryPeter Ross2011-02-033-15/+45
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* TCP: factor the poll() callNicolas George2011-02-031-10/+18
| | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* wtv: filesystem implementationPeter Ross2011-02-031-78/+564
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* tty.c: rename PKT_FLAG_KEY to AV_PKT_FLAG_KEY.Anton Khirnov2011-02-031-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace remaining occurrences of CODEC_TYPE_* with AVMEDIA_TYPE*Anton Khirnov2011-02-032-7/+7
| | | | | | Tested to compile with lavc major bump. Signed-off-by: Mans Rullgard <mans@mansr.com>
* sapenc: Free AVStream->info on cleanupMartin Storsjö2011-02-031-0/+1
| | | | | | This fixes yet another memory leak, present since SVN rev 25418. Signed-off-by: Mans Rullgard <mans@mansr.com>
* rtmpproto: rename URLContext* argument in rtmp_write()Anton Khirnov2011-02-031-2/+2
| | | | | | | | | Now the first argument is URLContext *h. However, the function logs to LOG_CONTEXT, which is #defined as 's' for new lavf major versions. Therefore, rename h -> s. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ProRes FOURCCs to isom.cTomas Härdin2011-02-031-0/+6
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add AVC-Intra identifiers used by Flip4Mac for mov filesBenjamin Larsson2011-02-031-0/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove a few if (p) av_free(p) formsClément Bœsch2011-02-032-8/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Free AVStream->info in chained muxersMartin Storsjö2011-02-033-0/+4
| | | | | | | This fixes memory leaks in the RTSP muxer and RTP hinting in the mov muxer present since SVN rev 25418. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtsp: Don't store RTSPStream in AVStream->priv_dataMartin Storsjö2011-02-032-12/+6
| | | | | | | | | | | | | | | | For mpegts in RTP, there isn't a direct mapping between RTSPStreams and AVStreams, and the RTSPStream isn't ever stored in AVStream->priv_data, which was earlier leaked. The fix for this leak, in ea7f080749d68a431226ce196014da38761a0d82, lead to double frees for other, normal RTP streams. This patch avoids storing RTSPStreams in AVStream->priv_data, thus avoiding the double free. The RTSPStreams are always available via RTSPState->rtsp_streams anyway. Tested with MS-RTSP, RealRTSP, DSS and mpegts/RTP. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Add forgotten minor API bumps and APIChanges entriesAnton Khirnov2011-02-021-1/+1
| | | | | | | The bumps are for adding version.h and avio_{get/put}_str functions in lavf and making av_dlog public in lavu. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Free the RTSPStreams in ff_rtsp_close_streamsLuca Barbato2011-02-011-0/+1
| | | | | | This plugs a small memory leak Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Ogg: discard non-essential metadata from Vorbis header when creating extradataReimar Döffinger2011-01-311-2/+10
| | | | | | | | | The first part of the metadata, the "vendor" string, is required by libvorbis, it will refuse to play when it is not available. Also we do not currently parse that part into metadata so it would also be lost if we removed it as well. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegtsenc: fix PMT PID calculationMans Rullgard2011-01-311-1/+1
| | | | | | | 445996aa51f4f1d9a26456a8511988291a720ba0 caused the PMT PID to be off by one. This corrects it. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace defines in libavformat/mpegtsenc.c with AVOptionsGeorgi Chorbadzhiyski2011-01-311-12/+35
| | | | | | | | | | | | | | | | | | | | | | | Around 01/28/11 18:56, Ronald S. Bultje scribbled: > That patch is now merged, can you submit the update to muxers.texi? > Then we'll apply the whole thing. See attached. I hope the documentation is enough. -- Georgi Chorbadzhiyski http://georgi.unixsol.org/ From c236024b8254f5c2c45934c30fff390cb0e55a5e Mon Sep 17 00:00:00 2001 From: Georgi Chorbadzhiyski <gf@unixsol.org> Date: Tue, 25 Jan 2011 13:09:17 +0200 Subject: [PATCH] mpegts: Replace defines in with AVOptions This patch adds support for setting transport_stream_id, original_network_id, service_id, pmt_start_pid and start_pid in mpegts muxer. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* VC1testenc: convert pts values to correct time-base.Reimar Döffinger2011-01-311-0/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
OpenPOWER on IntegriCloud