summaryrefslogtreecommitdiff
path: root/libavfilter/asrc_abuffer.c
Commit message (Collapse)AuthorAge
* lavfi/abuffer: init the data planes with NULL pointers.Clément Bœsch2012-02-21
| | | | | | | | | | | Samples buffer ref is allocated and loaded with the uninitialized data pointers: av_asrc_buffer_add_buffer() -> av_asrc_buffer_add_samples() -> avfilter_get_audio_buffer_ref_from_arrays(data, ...) ...which leads to a crash with at least lavfi/ashowinfo in case of !NULL (see the for loop while samplesref->data[plane]).
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: libavutil: add utility functions to simplify allocation of audio buffers. libavutil: add planar sample formats and av_sample_fmt_is_planar() avconv: fix segfault at EOF with delayed pictures pcmdec: remove unneeded resetting of samples pointer avconv: remove a now unused parameter from output_packet(). avconv: formatting fixes in output_packet() avconv: declare some variables in blocks where they are used avconv: use the same behavior when decoding audio/video/subs bethsoftvideo: return proper consumed size for palette packets. cdg: skip packets that don't contain a cdg command. crcenc: add flags avconv: use vsync 0 for AVFMT_NOTIMESTAMPS formats. tiffenc: add a private option for selecting compression algorithm md5enc: add flags ARM: remove needless .text/.align directives Conflicts: doc/APIchanges libavcodec/tiffenc.c libavutil/avutil.h libavutil/samplefmt.c libavutil/samplefmt.h tests/ref/fate/bethsoft-vid tests/ref/fate/cdgraphics tests/ref/fate/film-cvid-pcm-stereo-8bit tests/ref/fate/mpeg2-field-enc tests/ref/fate/nuv tests/ref/fate/tiertex-seq tests/ref/fate/tscc-32bit tests/ref/fate/vmnc-32bit Merged-by: Michael Niedermayer <michaelni@gmx.at>
* Mark AVFilterPad[] compound literals as const.Reimar Döffinger2011-11-06
| | | | | | | GCC 4.6.2 at least still seems to fail to put them in .rodata though, see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37303 Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* lavu: add av_strtok()Stefano Sabatini2011-10-18
| | | | | | The function strtok_r() is part of the POSIX.1 specification, but is not available on some platforms. We provide an internal implementation, so we do not need to rely on a platform implementation.
* lavfi: consistently use int for sample_rate in AVFilterLink and ↵Stefano Sabatini2011-09-12
| | | | | | | | | AVFilterBufferRefAudioProps Also consistent with AVCodecContext.sample_rate. Simplify/avoid pointless type checks and conversions. Breaks audio API/ABI.
* asrc_abuffer: pass non-const string to strtok_r in init()Stefano Sabatini2011-08-21
| | | | | | Fix GCC warning: asrc_abuffer.c: In function ‘init’: asrc_abuffer.c:258: warning: passing argument 1 of ‘strtok_r’ discards qualifiers from pointer target type
* lavfi: add asrc_abuffer - audio buffer sourceMina Nagy Zaki2011-08-21
Originally based on code by Stefano Sabatini and S. N. Hemanth. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>