summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* mp3enc: write ISO8859-1 instead of UTF-16 when possibleAnton Khirnov2011-02-05
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* reindent after last commitPeter Ross2011-02-05
| | | | 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-05
| | | | | | | | 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-04
| | | | | | 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-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* rtpenc_chain: Don't copy the time_base back to the callerMartin Storsjö2011-02-04
| | | | | | | | 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-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* libavformat: Add a function for freeing an AVFormatContextMartin Storsjö2011-02-04
| | | | | | | 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-04
| | | | | | | | | | | | | 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-04
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* add ff_index_search_timestamp and ff_add_index_entryPeter Ross2011-02-03
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* TCP: factor the poll() callNicolas George2011-02-03
| | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* wtv: filesystem implementationPeter Ross2011-02-03
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* tty.c: rename PKT_FLAG_KEY to AV_PKT_FLAG_KEY.Anton Khirnov2011-02-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace remaining occurrences of CODEC_TYPE_* with AVMEDIA_TYPE*Anton Khirnov2011-02-03
| | | | | | Tested to compile with lavc major bump. Signed-off-by: Mans Rullgard <mans@mansr.com>
* sapenc: Free AVStream->info on cleanupMartin Storsjö2011-02-03
| | | | | | 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-03
| | | | | | | | | 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-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add AVC-Intra identifiers used by Flip4Mac for mov filesBenjamin Larsson2011-02-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove a few if (p) av_free(p) formsClément Bœsch2011-02-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Free AVStream->info in chained muxersMartin Storsjö2011-02-03
| | | | | | | 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-03
| | | | | | | | | | | | | | | | 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-02
| | | | | | | 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-01
| | | | | | 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-31
| | | | | | | | | 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-31
| | | | | | | 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-31
| | | | | | | | | | | | | | | | | | | | | | | 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-31
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* asf/wtv: use service_provider and service_name metadata tagsRonald S. Bultje2011-01-31
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mpegts: remove get_pts duplicate of ff_parse_pes_pts.Vasyl' Vavrychuk2011-01-30
| | | | | Signed-off-by: Vasyl' Vavrychuk <vvavrychuk@gmail.com> Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace dprintf with av_dlogLuca Barbato2011-01-29
| | | | dprintf clashes with POSIX.1-2008
* Vorbis-in-Ogg: Do not set timebase to invalid valuesReimar Döffinger2011-01-29
| | | | | | | | | | Avoids an assert when the sample rate is invalid and the timebase is thus set to e.g. 1/0. Sample file is http://samples.mplayerhq.hu/ogg/fuzzed-srate-crash.ogg This is a quick fix for a crash, not a final solution. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegtsenc: support CODEC_ID_AAC_LATMPeter Ross2011-01-28
| | | | | | | | | | | | | | | $subject. Have used this for loopback testing with mpegts.c. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) [2. text/x-diff; 0001-mpegtsenc-support-CODEC_ID_AAC_LATM.patch] From 0f7f9db4b7da1793996af6dda84298507703759a Mon Sep 17 00:00:00 2001 From: Peter Ross <pross@xvid.org> Date: Sun, 9 Jan 2011 09:45:50 +1100 Subject: [PATCH] mpegtsenc: support CODEC_ID_AAC_LATM Signed-off-by: Mans Rullgard <mans@mansr.com>
* rtspenc: include os_support.h for system without HAVE_POLL_HDave Yeo2011-01-28
| | | | | | fix compile on OS/2 Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* asfdec: ensure that the whole tag is read.Anton Khirnov2011-01-28
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* os_support: make poll() fallbacks conditional on CONFIG_NETWORKMans Rullgard2011-01-28
| | | | | | | | | | | poll() is only used by networking code, so the fallback should only be built if networking is enabled. Also remove CONFIG_FFSERVER condition from the declarations. This should fix building on systems without poll(), broken by a8475bbdb64e638bd8161df9647876fd23f8a29a. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Make the image2 demuxer log more verboseStefano Sabatini2011-01-28
| | | | | | | Add an error message in case the user requests to write more than one file and the path does not contain a "%d" or "%0Nd" pattern. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* In mpegts "reserved_future_use" field must be set to 1 in SDT tableGeorgi Chorbadzhiyski2011-01-28
| | | | | | | | | | | According to EN 300 468 section 3.1 (Definitions): Unless otherwise specified within the present document all "reserved_future_use" bits is set to "1". This was not the case for SDT generation so this patch fixes it. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* rtsp: make ff_sdp_parse return value forwardedLuca Barbato2011-01-28
| | | | | the sdp demuxer did not forward it at all while the rtsp demuxer assumed a single kind of error
* os: replace select with pollLuca Barbato2011-01-28
| | | | | Select has limitations on the fd values it could accept and silently breaks when it is reached.
* Hide demuxers', muxers' and protocols' objects via the ld version script.Diego Elio Pettenò2011-01-28
| | | | | | This reduces the symbols exported by libavformat from 699 to 451. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mov: add support for little-endian utf16 chapter namesJohn Stebbins2011-01-28
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* movenc: byteswap codec_tag in mov_write_ms_tagJanne Grunau2011-01-28
| | | | based on Alex Converse's "Fix ADPCM MS in mov muxing" patch
* In mov muxer, mux adpcm_ms and adpcm_ima_wav the way quicktime supports itBaptiste Coudurier2011-01-28
| | | | | | In mov demuxer, set adpcm_ms and adpcm_ima_wav frame size to stsd samples per packet. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* 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.
* mov: simplify mov_read_chapters() by using avio_get_str16beAnton Khirnov2011-01-26
| | | | | | It probably also fixes a memleak or two. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Revert "mov: simplify mov_read_chapters() by using avio_get_str16be"Mans Rullgard2011-01-26
| | | | | This reverts commit c34461b35b68ff1f3d04540e0279383c51be8cee. The wrong version of the patch was committed.
* Make ff_cmap_read_palette static to libavcodec/iff.c. Delete iff.h.Diego Elio Pettenò2011-01-26
| | | | | | | | The iff.h header only declared one function that is now static, the libavformat/iff.c source file wasn't using it before. Drop the file entirely. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegtsenc: set reserved bits to 1 in PCR fieldGeorgi Chorbadzhiyski2011-01-26
| | | | | | | The reserved bits between PCR base and extension fields must be set to 1. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Make ff_rtsp_send_cmd_with_content_async static to rtsp.c.Diego Elio Pettenò2011-01-25
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>