Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-18avformat/aviobuf/ff_get_line: also accept \r as end of line characterMichael Niedermayer
Fixes Ticket3108 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-18Merge commit '32d05934abc7427bb90380a4c1ab20a15fd7d821'Michael Niedermayer
* commit '32d05934abc7427bb90380a4c1ab20a15fd7d821': mp3dec: decode more data from Info header Conflicts: libavformat/mp3dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-17mp3dec: decode more data from Info headerAlessandro Ghedini
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2014-03-27libavformat/aviobuf: keep track of the original buffer-size and restore it ↵Michael Niedermayer
after probe/ensure-seekback Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-27avformat/aviobuf: ffio_ensure_seekback: only copy the initialized part of ↵Michael Niedermayer
the buffer Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-02avformat/aviobuf: optimize sequential backward seekingMichael Niedermayer
This reduces the number of protocol seeks Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-02avformat/aviobuf: factorize buffer_size outMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-12-11avformat/aviobuf: fix null dereference in avio_close_dyn_buf()Michael Niedermayer
Fixes CID1135769 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-13avformat/aviobuf: return error from avio_put_str16le() for invalid inputMichael Niedermayer
Found-by: Stefano Sabatini Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-13avio_put_str16le: Print error message in case of invalid UTF8 inputMichael Niedermayer
Found-by: Stefano Sabatini Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-01Merge commit 'd07b51bf0733fe58bbfa13c448775dc325463cb4'Michael Niedermayer
* commit 'd07b51bf0733fe58bbfa13c448775dc325463cb4': aviobuf: Handle a NULL buffer in avio_close_dyn_buf Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-01aviobuf: Handle a NULL buffer in avio_close_dyn_bufMartin Storsjö
This simplifies proper error handling in rtsp.c/rtspdec.c. When broadcasting over RTSP in TCP mode, the AVIOContext is closed and recreated for each sent packet, and if the recreation fails, we might try to close a NULL buffer when freeing things at the end. Previously, if recreating the buffer in rtspdec.c failed, this would crash later due to trying to close a NULL buffer. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-09-27Merge commit 'd872fb0f7ff2ff0ba87f5ccf6a1a55ca2be472c9'Michael Niedermayer
* commit 'd872fb0f7ff2ff0ba87f5ccf6a1a55ca2be472c9': lavf: Reset the entry count and allocation size variables on av_reallocp failures Conflicts: libavformat/avienc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-27lavf: Reset the entry count and allocation size variables on av_reallocp ↵Martin Storsjö
failures When av_reallocp fails, the associated variables that keep track of the number of elements in the array (and in some cases, the separate number of allocated elements) need to be reset. Not all of these might technically be needed, but it's better to reset them if in doubt, to make sure variables don't end up conflicting. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-09-20Merge commit '3627ce2f1dab1d33b7f99d78907a3e4d86b7d847'Michael Niedermayer
* commit '3627ce2f1dab1d33b7f99d78907a3e4d86b7d847': aviobuf: Add functions for null buffers Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-19aviobuf: Add functions for null buffersMartin Storsjö
Null buffers are useful for simulating writing to a real buffer for the sake of measuring how many bytes are written. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-09-19Merge commit '5626f994f273af80fb100d4743b963304de9e05c'Michael Niedermayer
* commit '5626f994f273af80fb100d4743b963304de9e05c': avformat: Use av_reallocp() where suitable Conflicts: libavformat/avidec.c libavformat/avienc.c libavformat/aviobuf.c libavformat/oggparsevorbis.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-09-18avformat: Use av_reallocp() where suitableAlexandra Khirnova
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2013-08-08Merge commit '5afe1d27912be9b643ffb4ddc21f6d920260dbb0'Michael Niedermayer
* commit '5afe1d27912be9b643ffb4ddc21f6d920260dbb0': avio: Add const qualifiers to ffio_read_indirect Conflicts: libavformat/mpegts.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-08avio: Add const qualifiers to ffio_read_indirectBen Avison
This provides at least some protection against potential accidental corruption of AVIO buffer workspace. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-06Merge commit 'daf1e0d3de03bd424016e2a7520e4e94ece5c0ac'Michael Niedermayer
* commit 'daf1e0d3de03bd424016e2a7520e4e94ece5c0ac': avio: Add an internal function for reading without copying Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-05avio: Add an internal function for reading without copyingBen Avison
As long as there is enough contiguous data in the avio buffer, just return a pointer to it instead of copying it to the caller provided buffer. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-07-26avio: Don't set the seekable flag if no seek function is providedHendrik Schreiber
Signed-off-by: Martin Storsjö <martin@martin.st>
2013-07-23avformat/aviobuf/ffio_init_context: set seekable automaticallyHendrik Schreiber
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-04avformat/aviobuf: Add ffio_ensure_seekback()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-04avformat: Append data in fill_buffer() when possibleMichael Niedermayer
Data is appended in fill_buffer() when there is sufficient space left and the data pointer only reset when needed. Previously the data pointer was more often reset, loosing more seekback space than otherwise needed. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-04-08avformat: add writeout_count statisticMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-01-04Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: lavr: fix missing " in header documentation aviobuf: Discard old buffered, previously read data in ffio_read_partial Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-01-04Merge commit 'a0b7e289075dccf223b7f407790d8a86fc5d77e8'Michael Niedermayer
* commit 'a0b7e289075dccf223b7f407790d8a86fc5d77e8': aviobuf: Partial support for reading in read/write contexts build: Avoid detecting bogus components named 'x' Conflicts: libavcodec/allcodecs.c libavdevice/alldevices.c libavformat/allformats.c libavformat/aviobuf.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-01-03aviobuf: Discard old buffered, previously read data in ffio_read_partialMartin Storsjö
This makes RTP custom IO work properly with pure read-only AVIOContexts as well. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-01-03aviobuf: Partial support for reading in read/write contextsMartin Storsjö
So far, aviocontexts are used either in pure-read or pure-write mode - full read/write mode doesn't work well (and implementing it is a much larger, not totally trivial change). This patch allows using avio_read and ffio_read_partial on read/write aviocontexts, where the read operations are passed through directly unbuffered, while writes are buffered as usual. This is enough to support the operations needed by packet based data transfer like in udp/rtp, where aviocontext is the only public API for hooking up custom IO. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-12-21miscellaneous typo fixesDiego Biurrun
2012-12-09Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: avio: K&R cosmetic formatting Conflicts: libavformat/aviobuf.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-12-09avio: K&R cosmetic formattingLuca Barbato
2012-10-24avio: detect implicit truncation by assert in avio_w*Michael Niedermayer
This check is somewhat more lenient as would be ideal because we dont know if the input is signed or unsigned Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-24avio: avoid implicit truncation in avio_w*Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-19Merge commit 'c0329748b04e1f175dad8c9c2ebf22a5e2dc5b72'Michael Niedermayer
* commit 'c0329748b04e1f175dad8c9c2ebf22a5e2dc5b72': fate: add a dependency helper macro Add support for building shared libraries with MSVC avcodec: Rename avpriv_frame_rate_tab to ff_mpeg12_frame_rate_tab gxf: Add a local copy of the relevant parts of the frame rate table configure: Split out msvc as a separate target OS aviobuf: Remove a senseless ifdef in avio_seek Conflicts: configure libavcodec/dirac.c libavcodec/mpeg12data.h libavcodec/mpeg12enc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-18aviobuf: Remove a senseless ifdef in avio_seekMartin Storsjö
This seemed to assume that one never used writing avio unless muxers or networking was enabled. This ifdef is a remnant since 8fa641f8. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-10-13avio: redesign ffio_rewind_with_probe_data()Michael Niedermayer
This prevents a double free Fixes CID718285 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-11Merge commit 'b522000e9b2ca36fe5b2751096b9a5f5ed8f87e6'Michael Niedermayer
* commit 'b522000e9b2ca36fe5b2751096b9a5f5ed8f87e6': avio: introduce avio_closep mpegtsenc: set muxing type notification to verbose vc1dec: Use correct spelling of "opposite" a64multienc: change mc_frame_counter to unsigned arm: call arm-specific rv34dsp init functions under if (ARCH_ARM) svq1: Drop a bunch of useless parentheses parseutils-test: do not print numerical error codes svq1: K&R formatting cosmetics Conflicts: doc/APIchanges libavcodec/svq1dec.c libavcodec/svq1enc.c libavformat/version.h libavutil/parseutils.c tests/ref/fate/parseutils Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-10avio: introduce avio_closepLuca Barbato
2012-09-15avio: flush the internal buffer in avio_close()Stefano Sabatini
This is consistent with stdio, and thus what people would naturally expect.
2012-09-04Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: configure: add support for bdver1 and bdver2 CPU types. avio: make avio_close NULL the freed buffer pixdesc: cosmetics proresenc: Don't free a buffer not owned by the codec proresenc: Write the full value in one put_bits call adpcmenc: Calculate the IMA_QT predictor without overflow x86: Add convenience macros to check for CPU extensions and flags x86: h264dsp: drop some unnecessary ifdefs around prototype declarations mss12: merge decode_pixel() and decode_top_left_pixel() mss12: reduce SliceContext size from 1067 to 164 KB mss12: move SliceContexts out of the common context into the codec contexts Conflicts: libavformat/aviobuf.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-09-04avio: make avio_close NULL the freed bufferLuca Barbato
2012-08-26lavf: fix avio statistics for packets directly read without the buffer.Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-08-18lavf/avio: flush internal buffer when calling avio_close()Stefano Sabatini
This seems the expected behavior.
2012-07-27aviobuf: Fix warning about discarded qualifierjamal
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-07-06cosmetics: various spelling fixesLou Logan
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-06-15lavf/aviobuf: use av_assert()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-06-15avio: Collect and print statistics of bytes read & seeksMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>