aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * lavc: replace AVCodecContext.encode with subtitle-specific callbackAnton Khirnov2012-09-171-2/+2
| | | | | | | | | | AVCodecContext.encode is currently used only for subtitles, encode2 is used for audio and video.
| * lavc: add const to private codec class initialization.Anton Khirnov2012-09-171-1/+1
| | | | | | | | Silences a warning about discarding const.
* | lavc: set AVSubtitle.pts if possible.Nicolas George2012-09-151-0/+3
| | | | | | | | | | | | | | If the packet has a PTS and the corresponding time base is known, set the pts field of the decoded subtitle structure before the call to the decoder. The decoder is still allowed to change the PTS if necessary.
* | lavc: protect calls to frame_thread_encoder by HAVE_THREADSMichael Niedermayer2012-08-291-7/+9
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | frame_thread_encoder: pass private optionsMichael Niedermayer2012-08-291-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: avcodec_get_name: return "none" for AV_CODEC_ID_NONE.Nicolas George2012-08-191-0/+2
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-08-181-5/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mpegvideo_enc: don't use deprecated avcodec_encode_video(). cmdutils: refactor -codecs option. avconv: make -shortest a per-output file option. lavc: add avcodec_descriptor_get_by_name(). lavc: add const to AVCodec* function parameters. swf(dec): replace CODEC_ID with AV_CODEC_ID dvenc: don't use deprecated AVCODEC_MAX_AUDIO_FRAME_SIZE rtmpdh: Do not generate the same private key every time when using libnettle rtp: remove ff_rtp_get_rtcp_file_handle(). rtsp.c: use ffurl_get_multi_file_handle() instead of ff_rtp_get_rtcp_file_handle() avio: add (ff)url_get_multi_file_handle() for getting more than one fd h264: vdpau: fix crash with unsupported colorspace amrwbdec: Decode the fr_quality bit properly Conflicts: Changelog cmdutils.c cmdutils_common_opts.h doc/ffmpeg.texi ffmpeg.c ffmpeg.h ffmpeg_opt.c libavcodec/h264.c libavcodec/options.c libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: add const to AVCodec* function parameters.Anton Khirnov2012-08-181-5/+6
| |
* | av_get_audio_frame_duration: fix ra144Michael Niedermayer2012-08-161-1/+2
| | | | | | | | | | | | Fixes Ticket1612 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: add const to AVCodecContext.codec_descriptor.Nicolas George2012-08-141-1/+1
| |
* | lavc: reimplement avcodec_get_name with descriptors.Nicolas George2012-08-141-5/+4
| |
* | lavc: add codec_descriptor field to AVCodecContext.Michael Niedermayer2012-08-121-0/+2
| | | | | | | | | | | | | | This can be used to avoid a time consuming lookup of the descriptor Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '36ef5369ee9b336febc2c270f8718cec4476cb85'Michael Niedermayer2012-08-071-119/+119
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '36ef5369ee9b336febc2c270f8718cec4476cb85': Replace all CODEC_ID_* with AV_CODEC_ID_* lavc: add AV prefix to codec ids. Conflicts: doc/APIchanges doc/examples/decoding_encoding.c doc/examples/muxing.c ffmpeg.c ffprobe.c ffserver.c libavcodec/8svx.c libavcodec/avcodec.h libavcodec/dnxhd_parser.c libavcodec/dvdsubdec.c libavcodec/error_resilience.c libavcodec/h263dec.c libavcodec/libvorbisenc.c libavcodec/mjpeg_parser.c libavcodec/mjpegenc.c libavcodec/mpeg12.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/pcm.c libavcodec/r210dec.c libavcodec/utils.c libavcodec/v210dec.c libavcodec/version.h libavdevice/alsa-audio-dec.c libavdevice/bktr.c libavdevice/v4l2.c libavformat/asfdec.c libavformat/asfenc.c libavformat/avformat.h libavformat/avidec.c libavformat/caf.c libavformat/electronicarts.c libavformat/flacdec.c libavformat/flvdec.c libavformat/flvenc.c libavformat/framecrcenc.c libavformat/img2.c libavformat/img2dec.c libavformat/img2enc.c libavformat/ipmovie.c libavformat/isom.c libavformat/matroska.c libavformat/matroskadec.c libavformat/matroskaenc.c libavformat/mov.c libavformat/movenc.c libavformat/mp3dec.c libavformat/mpeg.c libavformat/mpegts.c libavformat/mxf.c libavformat/mxfdec.c libavformat/mxfenc.c libavformat/nsvdec.c libavformat/nut.c libavformat/oggenc.c libavformat/pmpdec.c libavformat/rawdec.c libavformat/rawenc.c libavformat/riff.c libavformat/sdp.c libavformat/utils.c libavformat/vocenc.c libavformat/wtv.c libavformat/xmv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-96/+96
| |
* | lavc/utils: rename ff_init_buffer_info() pic parameter to frameStefano Sabatini2012-08-031-16/+16
| | | | | | | | | | The new name is more expressive, given that the frame is not necessarily a picture but may be an audio frame.
* | lavc/utils: generalize ff_init_buffer_info() and use it when seems feasibleStefano Sabatini2012-08-031-36/+17
| | | | | | | | | | | | | | Extend ff_init_buffer_info() to init audio frames as well as video frames. Avoid code duplication.
* | lavc: add channels field to AVFrameStefano Sabatini2012-07-311-0/+4
| | | | | | | | | | | | This is required otherwise it is not always possible to guess the number of channels from the layout, for example if the channel layout is unknown.
* | avcodec: add decode_error_flags field to AVFrameMarton Balint2012-07-211-0/+1
| | | | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: set best_effort_timestamp for audio too.Nicolas George2012-07-201-0/+3
| |
* | lavc: update pkt_duration for skipped samples.Nicolas George2012-07-191-2/+7
| | | | | | | | Also: factor the the computation of the timestamp difference.
* | lavc: warn when impossible to adjust timestamps for skipped samples.Nicolas George2012-07-191-0/+2
| | | | | | | | It is likely to happen if pkt_timebase was not set.
* | lavc: add debug info about skipped samples.Nicolas George2012-07-191-0/+6
| |
* | cosmetics: reindent after d3abbb1d1Paul B Mahol2012-07-151-7/+7
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavc: add metadata to AVFrameThomas Kühnel2012-07-141-0/+1
| | | | | | | | | | | | See thread: Subject: [libav-devel] [PATCH 1/3] avcodec: add metadata to AVFrame Date: Tue, 4 Oct 2011 00:19:51 +0200
* | lavc: adjust timestamp in case of skiping initial samplesMichael Niedermayer2012-07-141-0/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: skip initial silence when requestedMichael Niedermayer2012-07-141-0/+18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: add pkt_timebase to allow avcodec to adjust pkt_dts/pts when neededMichael Niedermayer2012-07-131-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: fix ff_alloc_packet()Paul B Mahol2012-07-131-0/+2
| | | | | | | | | | | | Regression introduced in 740b9ff44. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavc: add av_fast_padded_malloczPaul B Mahol2012-07-101-0/+12
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Show hyphen in codec tag.Carl Eugen Hoyos2012-07-091-1/+1
| |
* | video_get_buffer: return ENOMEM instead of -1 on malloc failureMichael Niedermayer2012-07-041-1/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/utils: print error message on get_buffer related errorsMichael Niedermayer2012-07-041-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec_align_dimensions2: support 12 & 14 bit planar colorspacesMichael Niedermayer2012-07-031-0/+16
| | | | | | | | | | Reviewed-by: Jean First <jeanfirst@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec_encode_audio2: print error messages for errorsMichael Niedermayer2012-06-301-2/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cosmetics: minor libavcodec spelling errorsLou Logan2012-06-291-1/+1
| | | | | | | | | | | | Also update some common misspelled words in patcheck Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: add frame multithreading capability (currently intra only)Michael Niedermayer2012-06-231-2/+18
| | | | | | | | | | | | | | | | | | Compared to the decoder side, this code is able to change both the delay and the number of threads seamlessly during encoding. Also any idle thread can pick up tasks, the strict round robin in order limit is gone too. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-06-191-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (24 commits) flvdec: remove incomplete, disabled seeking code mem: add support for _aligned_malloc() as found on Windows lavc: Extend the documentation for avcodec_init_packet flvdec: remove incomplete, disabled seeking code http: replace atoll() with strtoll() mpegts: remove unused/incomplete/broken seeking code af_amix: allow float planar sample format as input af_amix: use AVFloatDSPContext.vector_fmac_scalar() float_dsp: add x86-optimized functions for vector_fmac_scalar() float_dsp: Move vector_fmac_scalar() from libavcodec to libavutil lavr: Add x86-optimized function for flt to s32 conversion lavr: Add x86-optimized function for flt to s16 conversion lavr: Add x86-optimized functions for s32 to flt conversion lavr: Add x86-optimized functions for s32 to s16 conversion lavr: Add x86-optimized functions for s16 to flt conversion lavr: Add x86-optimized function for s16 to s32 conversion rtpenc: Support packetizing iLBC rtpdec: Add a depacketizer for iLBC Implement the iLBC storage file format mov: Support muxing/demuxing iLBC ... Conflicts: Changelog configure libavcodec/avcodec.h libavcodec/dsputil.c libavcodec/version.h libavformat/movenc.c libavformat/mpegts.c libavformat/version.h libavutil/mem.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add support for iLBC decoding/encoding via the external library libilbcMartin Storsjö2012-06-181-0/+5
| | | | | | | | | | | | The library is 3-clause BSD licensed. Signed-off-by: Martin Storsjö <martin@martin.st>
* | lavc/utils: in avcodec_decode_video2() return proper error code instead of -1Stefano Sabatini2012-06-161-1/+1
| | | | | | | | Return AVERROR(EINVAL) in case of invalid coded size.
* | lavc: fix support of unofficial pix_fmt extensions of jpegMichael Niedermayer2012-06-131-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: add pkt_duration field to AVFrameStefano Sabatini2012-06-051-0/+8
| |
* | av_get_audio_frame_duration: fix FPEMichael Niedermayer2012-06-031-0/+4
| | | | | | | | | | | | | | Fixes ticket1392 Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: clarify experimental codec messageLou Logan2012-05-301-1/+1
| | | | | | | | | | | | Should be easier for new users to get a working output. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc: prettify printing of some codec tags which contains non alphanumeric ↵Stefano Sabatini2012-05-291-1/+6
| | | | | | | | | | | | | | | | | | | | | | characters Make av_get_codec_tag_string() show codec tag string characters in a more intelligible ways. For example the ascii char "@" is used as a number, so should be displayed like "[64]" rather than as a printable character. Apart alphanumeric chars, only the characters ' ' and '.' are used literally in codec tags, all the other characters represent numbers.
* | libavcodec: correct consumed bytes for decodersMichael Niedermayer2012-05-211-2/+8
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-201-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: indeo: Make ivi_calc_band_checksum() static, it is only used in one file. indeo: Drop unused debug function ivi_check_band(). avcodec/utils: cast a function argument to shut up a compiler warning truemotion1: remove disabled code fix typo in comment fate: fix dependencies for non-SAMPLES avconv tests indeo: check for invalid motion vectors indeo: check that band output buffer exists indeo: clear allocated band buffers indeo: track tile macroblock size indeo: check custom Huffman tables for errors factor out common decoding code for Indeo 4 and Indeo 5 mp3: fix start band index for block type 2 in 8kHz audio lavf: change some (de)muxer names to lowercase lavf: make output format matching case insensitive Conflicts: libavcodec/indeo4.c libavcodec/indeo5.c libavcodec/ivi_common.c libavcodec/utils.c tests/fate/video.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avcodec/utils: cast a function argument to shut up a compiler warningDiego Biurrun2012-05-201-1/+2
| | | | | | | | libavcodec/utils.c:251: note: expected ‘const uint8_t *’ but argument is of type ‘const short int *’
* | lavc/utils: fix division by 0Michael Niedermayer2012-05-101-2/+2
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-101-0/+81
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (27 commits) libxvid: Give more suitable names to libxvid-related files. libxvid: Separate libxvid encoder from libxvid rate control code. jpeglsdec: Remove write-only variable in ff_jpegls_decode_lse(). fate: cosmetics: lowercase some comments fate: Give more consistent names to some RealVideo/RealAudio tests. lavfi: add avfilter_get_audio_buffer_ref_from_arrays(). lavfi: add extended_data to AVFilterBuffer. lavc: check that extended_data is properly set in avcodec_encode_audio2(). lavc: pad last audio frame with silence when needed. samplefmt: add a function for filling a buffer with silence. samplefmt: add a function for copying audio samples. lavr: do not try to copy to uninitialized output audio data. lavr: make avresample_read() with NULL output discard samples. fate: split idroq audio and video into separate tests fate: improve dependencies fate: add convenient shorthands for ea-vp6, libavcodec, libavutil tests fate: split some combined tests into separate audio and video tests fate: fix dependencies for probe tests mips: intreadwrite: fix inline asm for gcc 4.8 mips: intreadwrite: remove unnecessary inline asm ... Conflicts: cmdutils.h configure doc/APIchanges doc/filters.texi ffmpeg.c ffplay.c libavcodec/internal.h libavcodec/jpeglsdec.c libavcodec/libschroedingerdec.c libavcodec/libxvid.c libavcodec/libxvid_rc.c libavcodec/utils.c libavcodec/version.h libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/buffersink.h tests/Makefile tests/fate/aac.mak tests/fate/audio.mak tests/fate/demux.mak tests/fate/ea.mak tests/fate/image.mak tests/fate/libavutil.mak tests/fate/lossless-audio.mak tests/fate/lossless-video.mak tests/fate/microsoft.mak tests/fate/qt.mak tests/fate/real.mak tests/fate/screen.mak tests/fate/video.mak tests/fate/voice.mak tests/fate/vqf.mak tests/ref/fate/ea-mad tests/ref/fate/ea-tqi Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: check that extended_data is properly set in avcodec_encode_audio2().Anton Khirnov2012-05-091-0/+17
| |