aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
Commit message (Collapse)AuthorAgeFilesLines
...
* | avstring: fix return discards qualifiers from pointer target type.Michael Niedermayer2011-10-171-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_tempfile: dont try the current directory with mkstemp() unless we are on ↵Michael Niedermayer2011-10-161-0/+2
| | | | | | | | | | | | windows Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_tempfile: change mode for fallback to 0600 to match mkstemp()Michael Niedermayer2011-10-161-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_tempfile: Pass int log_offset, void *log_ctxMichael Niedermayer2011-10-162-4/+5
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_tempfile: fix error codesMichael Niedermayer2011-10-161-2/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_tempfile: use O_EXCLMichael Niedermayer2011-10-161-1/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_tempfile: try tempnam(NULL) firstMichael Niedermayer2011-10-161-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_tempfile: handle missing O_BINARYMichael Niedermayer2011-10-161-0/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | av_tempfile: fix alloc type for !HAVE_MKSTEMPMichael Niedermayer2011-10-161-1/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Move av_tempfile() into libavutil, it is a generically usefull thing and its ↵Michael Niedermayer2011-10-162-0/+40
| | | | | | | | | | | | small. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | opt: handle AV_OPT_TYPE_CONST tooMichael Niedermayer2011-10-141-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | eval: add mathematical constants (PI, E, PHI).Nicolas George2011-10-131-0/+18
| | | | | | | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-10-134-137/+489
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (31 commits) tiffenc: initialize forgotten avctx. avplay: free the active audio packet at exit. avplay: free rdft data used for spectrogram analysis. log.h: make AVClass a named struct fix ac3 encoder documentation vc1: more prettyprinting cosmetics vc1: prettyprint some tables vc1: K&R formatting cosmetics AVOptions: bump minor and add APIchanges entry. cmdutils/avtools: simplify show_help() by using av_opt_child_class_next() AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_* Remove all uses of deprecated AVOptions API. AVOptions: add av_opt_next, deprecate av_next_option. AVOptions: add functions for evaluating option strings. AVOptions: split get_number(). AVOptions: add av_opt_get*, deprecate av_get*. AVOptions: add av_opt_set*(). AVOptions: add new API for enumerating children. rv34: move inverse transform functions to DSP context flvenc: Write the right metadata entry count ... Conflicts: avconv.c cmdutils.c doc/APIchanges ffplay.c ffprobe.c libavcodec/ac3dec.c libavcodec/h264.c libavcodec/libvpxenc.c libavcodec/libx264.c libavcodec/mpeg12enc.c libavcodec/options.c libavdevice/libdc1394.c libavdevice/v4l2.c libavfilter/vf_drawtext.c libavformat/flvdec.c libavformat/mpegtsenc.c libavformat/options.c libavutil/avutil.h libavutil/opt.c libswscale/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * log.h: make AVClass a named structJindrich Makovicka2011-10-121-1/+1
| | | | | | | | | | | | | | | | 'struct AVClass' is used in the code since 641c7afe3c17334b81e3e2eef88f1751eb68f89f, but AVClass is typedeffed as an anonymous struct. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * AVOptions: bump minor and add APIchanges entry.Anton Khirnov2011-10-121-1/+1
| |
| * AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-122-80/+91
| |
| * Remove all uses of deprecated AVOptions API.Anton Khirnov2011-10-121-16/+18
| |
| * AVOptions: add av_opt_next, deprecate av_next_option.Anton Khirnov2011-10-122-1/+19
| | | | | | | | Just for naming consistency, no functional changes.
| * AVOptions: add functions for evaluating option strings.Anton Khirnov2011-10-122-0/+39
| |
| * AVOptions: split get_number().Anton Khirnov2011-10-121-16/+26
| | | | | | | | | | Split actual writing to read_number() in the same way as write_number(). Allows set_string_number() to write to a caller-provided destination.
| * AVOptions: add av_opt_get*, deprecate av_get*.Anton Khirnov2011-10-122-13/+127
| | | | | | | | | | New functions can get values from child objects, properly report error codes and have consistent naming and signatures.
| * AVOptions: add av_opt_set*().Anton Khirnov2011-10-122-19/+90
| | | | | | | | | | | | | | Deprecate av_set_* New functions support setting values on children, return error codes instead of options and have consistent naming and signatures.
| * AVOptions: add new API for enumerating children.Anton Khirnov2011-10-123-9/+96
| | | | | | | | | | | | | | | | | | This will allow the caller to enumerate child contexts in a generic way and since the API is recursive, it also allows for deeper nesting (e.g. AVFormatContext->AVIOContext->URLContext) This will also allow the new setting/reading API to transparently apply to children contexts.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-10-121-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (23 commits) fix AC3ENC_OPT_MODE_ON/OFF h264: fix HRD parameters parsing prores: implement multithreading. prores: idct sse2/sse4 optimizations. swscale: use aligned move for storage into temporary buffer. prores: extract idct into its own dspcontext and merge with put_pixels. h264: fix invalid shifts in init_cavlc_level_tab() intfloat_readwrite: fix signed addition overflows mov: do not misreport empty stts mov: cosmetics, fix for and if spacing id3v2: fix NULL pointer dereference mov: read album_artist atom mov: fix disc/track numbers and totals doc: fix references to obsolete presets directories for avconv/ffmpeg flashsv: return more meaningful error value flashsv: fix typo in av_log() message smacker: validate channels and sample format. smacker: check buffer size before reading output size smacker: validate number of channels smacker: Separate audio flags from sample rates in smacker demuxer. ... Conflicts: cmdutils.h doc/ffmpeg.texi libavcodec/Makefile libavcodec/motion_est_template.c libavformat/id3v2.c libavformat/mov.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * intfloat_readwrite: fix signed addition overflowsMans Rullgard2011-10-111-2/+2
| | | | | | | | | | | | | | | | | | | | These additions might overflow the signed range for large input values. Converting to unsigned before the addition rather than after avoids such undefined behaviour. The result under normal two's complement wraparound remains unchanged. Signed-off-by: Mans Rullgard <mans@mansr.com>
* | mem: fix memalign hack av_realloc()Michael Niedermayer2011-10-111-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | arm: fix av_clipl_int32() asmMichael Niedermayer2011-10-111-1/+1
| | | | | | | | | | | | Note, the other arm asm code is likely affected too and should be changed as well. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-10-112-102/+120
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (34 commits) h264: reset h->ref_count in case of errors in ff_h264_decode_ref_pic_list_reordering() error_resilience: fix the check for missing references in ff_er_frame_end() for H264 4xm: prevent NULL dereference with invalid huffman table 4xmdemux: prevent use of uninitialized memory 4xm: clear FF_INPUT_BUFFER_PADDING_SIZE bytes in temporary buffers ptx: check for out of bound reads tiffdec: fix out of bound reads/writes eacmv: check for out of bound reads eacmv: fix potential pointer arithmetic overflows adpcm: fix out of bound reads due to integer overflow anm: prevent infinite loop avsdemux: check for out of bound writes avs: check for out of bound reads avsdemux: check for corrupted data AVOptions: refactor set_number/write_number AVOptions: cosmetics, rename static av_set_number2() to write_number(). AVOptions: cosmetics, move and rename static av_set_number(). AVOptions: split av_set_string3 into opt type-specific functions avidec: fix signed overflow in avi_sync() mxfdec: Fix some buffer overreads caused by the misuse of AVPacket related functions. ... Conflicts: Changelog configure libavcodec/ptx.c libavcodec/ra144.c libavcodec/vaapi_vc1.c libavcodec/vc1.c libavcodec/version.h libavformat/4xm.c libavformat/avidec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * AVOptions: refactor set_number/write_numberAnton Khirnov2011-10-101-14/+11
| | | | | | | | | | | | write_number() does the actual writing of the supplied number to destination. Move finding the option and choosing destination address out of it.
| * AVOptions: cosmetics, rename static av_set_number2() to write_number().Anton Khirnov2011-10-101-3/+3
| |
| * AVOptions: cosmetics, move and rename static av_set_number().Anton Khirnov2011-10-101-12/+12
| |
| * AVOptions: split av_set_string3 into opt type-specific functionsAnton Khirnov2011-10-102-81/+102
| | | | | | | | | | | | Also stop attempting to honor the alloc parameter, as things break horribly in that case. It will be removed in upcoming successor to av_set_string3.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-10-101-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mpeg4dec: use unsigned type for startcode in ff_mpeg4_decode_picture_header mpeg124: use sign_extend() function ac3dec: use get_sbits() instead of manually sign-extending 4xm: fix signed overflow wmavoice: fix a signed overflow mpegvideo_enc: fix a signed overflow crc: fix signed overflow fate: run avconv with -nostats flag avtools: add -v as alias for -loglevel avconv: always print stats with AV_LOG_INFO doc/avconv: add forgotten output/per-stream info to -filter avconv: add -stats option to enable/disable printing encoding progress avconv: in output_packet() don't set decoded_data_size for video. avconv: remove pointless always true condition avconv: factorize common code in transcode_init() zmbv: remove memcpy() of decoded frame mpeg12enc: use sign_extend() function h264pred: use unsigned types for pixel values, fix signed overflows h264: fix signed overflows in x*0x01010101 expressions h264pred: remove unused variables Conflicts: avconv.c tests/fate-run.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * crc: fix signed overflowMans Rullgard2011-10-091-1/+1
| | | | | | | | | | | | | | | | This fixes a signed overflow from i << 24 when i == 255 by making i unsigned. The result of the shift is already assigned to an variable of unsigned type. Signed-off-by: Mans Rullgard <mans@mansr.com>
* | lavu: bump micro after gcd(), random(), and hypot() additions in evalStefano Sabatini2011-10-091-1/+1
| |
* | pixdesc: fix gbr24pMichael Niedermayer2011-10-091-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | eval: fix () bug in not.Michael Niedermayer2011-10-091-1/+1
| | | | | | | | | | Found-by: Oded Shimon Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Start adding pixel definitions for planar rgb.Themaister2011-10-082-0/+10
| |
* | eval: add gcd()Michael Niedermayer2011-10-081-1/+3
| | | | | | | | | | | | example: -vf 'scale=256:256,mp=geq=gcd(X\,Y)-2:128:128' Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | eval:add hypot()Michael Niedermayer2011-10-081-1/+3
| | | | | | | | | | | | useage example: -vf 'scale=256:256,mp=geq=random(1)/hypot(X-cos(N*0.07)*W/2-W/2\,Y-sin(N*0.09)*H/2-H/2)^2*1000000*sin(N*0.02):128:128' Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | eval: add random()Michael Niedermayer2011-10-081-1/+10
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | eval: make variables persistent so they can be used between evaluations.Michael Niedermayer2011-10-081-1/+5
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: bump minor version because of av_get_default_channel_layout type fixMarton Balint2011-10-071-1/+1
| | | | | | | | | | | | | | | | Well, probably an ABI breakage at least for 32bit, but hopefully it will go unnoticed because the fix happened realtively soon. Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | audioconvert: fix type of av_get_default_channel_layoutMarton Balint2011-10-072-2/+2
| | | | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | audioconvert: make 7POINT1 channel layout the default for 8 channelsMarton Balint2011-10-071-1/+1
| | | | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: bump for av_get_default_channel_layout()Michael Niedermayer2011-10-031-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | audioconvert: add av_get_default_channel_layout public functionMarton Balint2011-10-022-0/+13
| |
* | Introduce av_realloc_f.Nicolas George2011-09-282-0/+25
| | | | | | | | | | | | | | av_realloc_f helps avoiding memory-leaks in typical uses of realloc. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Introduce av_size_mult.Nicolas George2011-09-281-0/+16
| | | | | | | | | | | | | | | | av_size_mult helps checking for overflow when computing the size of a memory area. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-274-1/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (21 commits) fate: allow testing with libavfilter disabled x86: XOP/FMA4 CPU detection support ws_snd: misc cosmetic clean-ups ws_snd: remove the 2-bit ADPCM table and just subtract 2 instead. ws_snd: use memcpy() and memset() instead of loops ws_snd: use samples pointer for loop termination instead of a separate iterator variable. ws_snd: make sure number of channels is 1 ws_snd: add some checks to prevent buffer overread or overwrite. ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16. flacdec: fix buffer size checking in get_metadata_size() rtp: Simplify ff_rtp_get_payload_type rtpenc: Add a payload type private option rtp: Correct ff_rtp_get_payload_type documentation avconv: replace all fprintf() by av_log(). avconv: change av_log verbosity from ERROR to FATAL for fatal errors. cmdutils: replace fprintf() by av_log() avtools: parse loglevel before all the other options. oggdec: add support for Xiph's CELT codec sol: return error if av_get_packet() fails. cosmetics: reindent and pretty-print ... Conflicts: avconv.c cmdutils.c libavcodec/avcodec.h libavcodec/version.h libavformat/oggparsecelt.c libavformat/utils.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>