summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
...
* asfdec: add missing #include for av_bswap32()Mans Rullgard2011-05-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: remove duplicate assignment in avformat_alloc_context.Anton Khirnov2011-05-17
| | | | AVClass is already initialized in avformat_get_context_defaults.
* lavf: use designated initializers for AVClasses.Anton Khirnov2011-05-17
|
* flvdec: clenup debug codeAlex Converse2011-05-17
|
* asfdec: fix possible overread on broken files.Uoti Urpala2011-05-17
|
* asfdec: do not fall back to binary/generic searchVladimir Pantelic2011-05-17
| | | | | | | | | | asf_read_seek() inside the asf demuxer already does the right thing, it tries the index and if that fails it uses binary search. If binary search is called from outside of asfdec.c it will fail because the asf code cannot clean up after itself. Therefore introduce AVFMT_NOBINSEARCH that prevents the seek code to fallback to binary search and AVFMT_NOGENSEARCH that prevents the seek code to fallback to generic search.
* asfdec: reindent after previous commit c7bd5edVladimir Pantelic2011-05-17
|
* asfdec: fallback to binary search internallyVladimir Pantelic2011-05-17
| | | | lavf will do that anyway in case seek by index fails
* movenc: always write esds descriptor length using 4 bytes.Baptiste Coudurier2011-05-13
| | | | | | ipod shuffle doesn't support anything else. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtpdec_qdm2: Don't try to parse data packet if no configuration is receivedMartin Storsjö2011-05-13
| | | | | | | | The later parsing of payload data depends on the configuration being present. If it hasn't been configured properly yet, parsing a data packet may lead to a crash. Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskaenc: make sure we don't produce invalid file with no codec IDAurelien Jacobs2011-05-12
| | | | | Signed-off-by: Aurelien Jacobs <aurel@gnuage.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* matroskadec: check that pointers were initialized before accessing themAurelien Jacobs2011-05-12
| | | | | Signed-off-by: Aurelien Jacobs <aurel@gnuage.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: fix function name in compute_pkt_fields2 av_dlog messageStefano Sabatini2011-05-12
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: fix av_find_best_stream when providing a wanted stream.Marton Balint2011-05-12
| | | | | | | | | | | | | In the main loop, stream_number is incremented after checking the stream type, so the search usually will not find the wanted stream. This patch eliminates the useless stream_number variable and introduces a new one, called real_stream_index to store the real stream index of the current stream, no matter if we are looping through all the streams or only the streams of a program. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: fix av_find_best_stream when decoder_ret is given and using a related ↵Marton Balint2011-05-12
| | | | | | | | | stream. Yet another fix for the code originally designed for use without related_stream. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mov: Support edit list atom version 1.Yusuke Nakamura2011-05-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Cosmetics: fix prototypes in oggdecClément Bœsch2011-05-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: fix memleak with continuous streams.Clément Bœsch2011-05-12
| | | | | | | This avoids the creation of a new AVStream instead of replacing it when a stream reset occurs (track change with some webradios for example). Signed-off-by: Diego Biurrun <diego@biurrun.de>
* matroskaenc: add missing new line in av_log() callAurelien Jacobs2011-05-12
| | | | | Signed-off-by: Aurelien Jacobs <aurel@gnuage.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* movenc: fix yuv range in avid atoms used by dnxhd.Baptiste Coudurier2011-05-12
| | | | | | yuv range: full 1 / normal 2 Signed-off-by: Anton Khirnov <anton@khirnov.net>
* movenc: fix adpcm mono muxing.Alex Converse2011-05-12
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegts: do not output known sized packet if an unbounded packet is already ↵Baptiste Coudurier2011-05-12
| | | | | | | | queued. Fix issue #2624. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun2011-05-12
| | | | | | | | | | | | | | | | Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
* nsv: Fix misdetection of MP3 files as NSV.Thierry Foucu2011-05-12
| | | | | | | If an MP3 file contains the string NSVs, the NSV probe will confuse it for an NSV file. Check for 0xBEEF after a Video/Audio chunk to achieve more accuracy. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: use explicit AVInputFormat struct initializersClément Bœsch2011-05-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* oggdec: simplify ogg_probeClément Bœsch2011-05-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Port SMPTE S302M audio decoder from FFmbc 0.3.Baptiste Coudurier2011-05-11
|
* rtsp: Only do keepalive using GET_PARAMETER if the server supports itMartin Storsjö2011-05-11
| | | | | | | | | | | | | | | | This is more like what VLC does. If the server doesn't mention supporting GET_PARAMETER in response to an OPTIONS request, VLC doesn't send any keepalive requests at all. After this patch, libavformat will still send OPTIONS keepalives if GET_PARAMETER isn't explicitly said to be supported. Some RTSP cameras don't support GET_PARAMETER, and will close the connection if this is sent as keepalive request (but support OPTIONS just fine, but probably don't need any keepalive at all). Some other cameras don't support using OPTIONS as keepalive, but require GET_PARAMETER instead. Signed-off-by: Martin Storsjö <martin@martin.st>
* AVOptions: make default_val a union, as proposed in AVOption2.Anton Khirnov2011-05-10
| | | | This breaks API and ABI.
* lavf/utils: fix ff_interleave_compare_dts corner case.Vitor Sessak2011-05-10
| | | | | | | | | | This should fix behavior introduced by commit 96573c0d7605672d69b42ae1dcf18764ce47c71a. Av_rescale_rnd() is not lossless so if two timestamps are equal after being rescaled they are not always actually identical. This patch use av_compare_ts() to get always a correct result. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mpegtsenc: Clear st->priv_data when freeing itMartin Storsjö2011-05-09
| | | | | | If not cleared, the caller might try to free it. Signed-off-by: Martin Storsjö <martin@martin.st>
* udp: Fix receiving RTP data over multicastMartin Storsjö2011-05-09
| | | | | | | | | | | | | | | | Earlier, AVIO_RDWR was handled as READ, and all the checks for the AVIO_WRONLY flag explicitly meant the write-only case. When changed from old AVIO/URL contants to AVIO_FLAG in 59d96941f0285a5, these comparisons were updated incorrectly, by mapping checks for AVIO_WRONLY to checks for AVIO_FLAG_WRITE. When receiving RTP over UDP, the urlcontext is opened with READ_WRITE flags. This patch updates the flag comparisons to check for the same conditions as the code did prior to 59d96941f0285a5. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpproto: Remove an unused variableMartin Storsjö2011-05-09
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: fix composition timestamps on movie fragments.Yusuke Nakamura2011-05-05
| | | | This fixes, for instance, the case that there is a track that has some samples with composition time offset and has a track run without sample-composition-time-offsets-present.
* Fix standalone compilation of pipe protocol.Diego Biurrun2011-05-04
| | | | file_check() is not only used by the file protocol, adjust #ifdef accordingly.
* Fix standalone compilation of WTV demuxer.Diego Biurrun2011-05-04
|
* matroskaenc: fix memory leakMans Rullgard2011-05-04
| | | | | | | This fixes a memory leak occurring when no cue points are defined since commit 91819763. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace strncpy() with av_strlcpy().Alex Converse2011-05-03
|
* asfdec: fix assert failure on invalid filesUoti Urpala2011-05-03
| | | | | | | | Add an extra size validity check in asf_read_frame_header(). Without this asf->packet_size_left may become negative, which triggers an assertion failure later. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* nutenc: check malloc return values.Ronald S. Bultje2011-05-03
|
* nutenc: don't av_malloc(0).Ronald S. Bultje2011-05-03
|
* asfdec: fix parsing of packets that overrun into padding.Ronald S. Bultje2011-05-03
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Make ffmpeg support generic data streamLuca Barbato2011-05-03
| | | | The patch is the first step to support -dcodec copy
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: inspect more frames for fps when container time base is coarseAnssi Hannula2011-04-29
| | | | | | | | | | | | | | | | | | As per issue2629, most 23.976fps matroska H.264 files are incorrectly detected as 24fps, as the matroska timestamps usually have only millisecond precision. Fix that by doubling the amount of timestamps inspected for frame rate for streams that have coarse time base. This also fixes 29.970 detection in matroska. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 78431098f9e306ebe27e7698d0ae539e3df2afe9) Tested with mplayer based on this report http://thread.gmane.org/gmane.comp.video.mplayer.user/66043/focus=66063 Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Remove some disabled printf debug cruft.Diego Biurrun2011-04-29
|
* Replace some commented-out debug printf() / av_log() messages with av_dlog().Diego Biurrun2011-04-29
|
* avio: Fix the deprecated fallback URL-prefixed open flagsMartin Storsjö2011-04-28
| | | | | | | | | | | | | | | | While deprecated, they're totally useless as long as their values are different from the AVIO_FLAG values that are used internally. Currently, this leads to old libav applications still compiling correctly (since we haven't removed the fallback wrappers), but failing since the functions internally compare to the new AVIO_FLAG values. These should be removed at some point, but they aren't removed yet. The intent is to be able to recompile an old application against the new ABI without modifying the code, and this doesn't work currently. Signed-off-by: Martin Storsjö <martin@martin.st>
* network: Check POLLERR and POLLHUP in ff_network_wait_fdGil Pedersen2011-04-28
| | | | | | | | Previously, the function would lead to an infinite wait (by returning AVERROR(EAGAIN)) on sockets indicating an error via either of these poll flags. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegtsenc: make PMT PID really start on pmt_start_pidAnton Khirnov2011-04-28
|