aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * lavc: remove the locking code in avcodec_close()Anton Khirnov2014-05-181-18/+0
| | | | | | | | | | This function should not modify any global state, so there should be no reason for any locking.
* | avcodec/utils: Fix undefined behavior in avpriv_toupper4Michael Niedermayer2014-05-161-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'dd2d3b766b20196d0b65a82e3d897ccecbf7adb8'Michael Niedermayer2014-05-121-4/+30
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'dd2d3b766b20196d0b65a82e3d897ccecbf7adb8': lavc: Add hwaccel private data and init/uninit callbacks Conflicts: libavcodec/avcodec.h libavcodec/internal.h libavcodec/pthread_frame.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: Add hwaccel private data and init/uninit callbacksAnton Khirnov2014-05-111-4/+30
| |
* | Merge commit 'ebc29519d1634bfeb386c20a5d8a52837aae2436'Michael Niedermayer2014-05-121-2/+9
|\| | | | | | | | | | | | | | | | | | | * commit 'ebc29519d1634bfeb386c20a5d8a52837aae2436': hwaccel: Support specific frame allocators Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hwaccel: Support specific frame allocatorsLuca Barbato2014-05-111-0/+7
| | | | | | | | It would reduce the boilerplate code users have to write.
* | Merge commit '5c1d7246cd65dc4db1b6dc36e29ce39fc1068f3f'Michael Niedermayer2014-05-111-15/+33
|\| | | | | | | | | | | | | | | | | | | * commit '5c1d7246cd65dc4db1b6dc36e29ce39fc1068f3f': lavc: set AVCodecContext.hwaccel in ff_get_format() Conflicts: libavcodec/mpeg12dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: set AVCodecContext.hwaccel in ff_get_format()Anton Khirnov2014-05-111-15/+33
| | | | | | | | This way each decoder does not have to do the same thing manually.
* | Merge commit '632ad2248e2e5d8cd4b51e6c87c943a38c3da425'Michael Niedermayer2014-05-111-1/+6
|\| | | | | | | | | | | | | | | | | | | | | * commit '632ad2248e2e5d8cd4b51e6c87c943a38c3da425': lavc: Add an internal wrapper around get_format() Conflicts: libavcodec/h264_slice.c libavcodec/mpeg12dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: Add an internal wrapper around get_format()Anton Khirnov2014-05-111-0/+5
| | | | | | | | It will be useful in the following commits.
| * lavc: do not use AVCodecContext.codec_name in avcodec_string()Anton Khirnov2014-05-011-2/+0
| | | | | | | | That field will be deprecated.
* | avcodec/utils/ff_init_buffer_info factor avctx->internal->pkt; outMichael Niedermayer2014-05-011-6/+8
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: merge ff_decode_frame_props() and ff_init_buffer_info()Michael Niedermayer2014-05-011-26/+14
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: ff_decode_frame_props: set pkt_sizeMichael Niedermayer2014-05-011-1/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: use av_malloc(z)_array()Michael Niedermayer2014-04-251-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '86a0432688216562926d4aee36118f01be6d5e1b'Michael Niedermayer2014-04-191-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '86a0432688216562926d4aee36118f01be6d5e1b': Silicon Graphics Motion Video Compressor 1 & 2 decoder Conflicts: Changelog libavcodec/avcodec.h libavcodec/mvcdec.c libavcodec/version.h See: 746b1dcc98b466e4abd301f304127583722ad80b Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '07761294fc3f08e139e8a406ef7d5b63aaf1ecee'Michael Niedermayer2014-04-191-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '07761294fc3f08e139e8a406ef7d5b63aaf1ecee': Silicon Graphics RLE 8-bit video decoder Conflicts: Changelog doc/general.texi libavcodec/avcodec.h libavcodec/sgirledec.c libavcodec/version.h See: afa1617b937f3675f74c6351a46c45f8c24d67f2 Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '6ef96292d99302a59f824713fc763f6abd3754df'Michael Niedermayer2014-04-191-0/+1
|\| | | | | | | | | | | | | * commit '6ef96292d99302a59f824713fc763f6abd3754df': utils: add yvyu422 to avcodec_align_dimensions2 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * utils: add yvyu422 to avcodec_align_dimensions2Vittorio Giovara2014-04-191-0/+1
| |
* | Direct Stream Digital (DSD) decoderPeter Ross2014-04-151-0/+4
| | | | | | | | | | Signed-off-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: prettify remap_deprecated_codec_id()Michael Niedermayer2014-04-131-16/+16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-04-091-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mpegvideo: operate with pointers to AVFrames instead of whole structs Conflicts: libavcodec/h261dec.c libavcodec/h263dec.c libavcodec/intrax8.c libavcodec/mpeg12enc.c libavcodec/mpegvideo.c libavcodec/mpegvideo.h libavcodec/mpegvideo_enc.c libavcodec/mpegvideo_motion.c libavcodec/mpegvideo_xvmc.c libavcodec/msmpeg4.c libavcodec/ratecontrol.c libavcodec/vaapi.c libavcodec/vc1dec.c libavcodec/vdpau_vc1.c See: fc567ac49e17151f00f31b59030cd10f952612ef Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: operate with pointers to AVFrames instead of whole structswm42014-04-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The most interesting parts are initialization in ff_MPV_common_init() and uninitialization in ff_MPV_common_end(). ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL checks for Picture.f, because these functions can be called on uninitialized or partially initialized Pictures. NULL pointer checks are added to ff_thread_release_buffer() stub function. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '6f273093e54cba130f3ffde3d6433e74baa4ad89'Michael Niedermayer2014-04-061-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6f273093e54cba130f3ffde3d6433e74baa4ad89': LucasArts SMUSH VIMA audio decoder Conflicts: Changelog libavcodec/avcodec.h libavcodec/codec_desc.c libavcodec/version.h libavcodec/vima.c This commit adds a AV_CODEC_ID_ADPCM_VIMA alias in addition to the previously used AV_CODEC_ID_VIMA, as well as a AVCodec with name "adpcm_vima" in addition to the previously used name "vima" These changes are needed for compatibility with the renamed codec in libav See: b18357326ca1522d7fb7f4276ddebfccc29ce72c and others Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'a420ccd4f2a011887451a7d5e1bebba4fd7c40e2'Michael Niedermayer2014-04-061-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a420ccd4f2a011887451a7d5e1bebba4fd7c40e2': LucasArts SMUSH SANM video decoder Conflicts: Changelog doc/general.texi libavcodec/Makefile libavcodec/allcodecs.c libavcodec/avcodec.h libavcodec/sanm.c libavcodec/version.h See: 69254f46286099588514454f60fad12f6e51b2cd and others Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'ac4b32df71bd932838043a4838b86d11e169707f'Michael Niedermayer2014-04-041-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ac4b32df71bd932838043a4838b86d11e169707f': On2 VP7 decoder Conflicts: Changelog libavcodec/arm/h264pred_init_arm.c libavcodec/arm/vp8dsp.h libavcodec/arm/vp8dsp_init_arm.c libavcodec/arm/vp8dsp_init_armv6.c libavcodec/arm/vp8dsp_init_neon.c libavcodec/avcodec.h libavcodec/h264pred.c libavcodec/version.h libavcodec/vp8.c libavcodec/vp8.h libavcodec/vp8data.h libavcodec/vp8dsp.c libavcodec/vp8dsp.h libavcodec/x86/h264_intrapred_init.c libavcodec/x86/vp8dsp_init.c See: 89f2f5dbd7a23e7ec1073d3c08d46093a01a4135 and others Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '38389058c3308758c6365abd0f6b45c5e62bb90b'Michael Niedermayer2014-04-011-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '38389058c3308758c6365abd0f6b45c5e62bb90b': OpenEXR decoder Conflicts: Changelog configure libavcodec/Makefile libavcodec/avcodec.h libavcodec/exr.c libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '70daeacd6ef8b354dd7d2d77ad393831a5bbf033'Michael Niedermayer2014-03-281-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '70daeacd6ef8b354dd7d2d77ad393831a5bbf033': PAF demuxer and decoder Conflicts: Changelog doc/general.texi libavcodec/avcodec.h libavcodec/codec_desc.c libavcodec/paf.c libavcodec/version.h libavformat/Makefile libavformat/allformats.c libavformat/paf.c libavformat/version.h See: 7de4a16508cb9bd2d40855f7114dea14329ef62a, and others Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'ae17878fb2ab100264226c84c58f5b95a703312f'Michael Niedermayer2014-03-271-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ae17878fb2ab100264226c84c58f5b95a703312f': BRender PIX image decoder Conflicts: doc/general.texi libavcodec/Makefile libavcodec/version.h See: 492a5f835c59ab7c2e347d3579d8bf6148ae0a0, and others Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '4a0f6651434c6f213d830140f575b4ec7858519f'Michael Niedermayer2014-03-241-5/+34
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '4a0f6651434c6f213d830140f575b4ec7858519f': libavcodec: when decoding, copy replaygain side data to decoded frames Conflicts: libavcodec/internal.h libavcodec/rawdec.c libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavcodec: when decoding, copy replaygain side data to decoded framesAnton Khirnov2014-03-241-7/+34
| |
* | Move avpriv_find_pix_fmt() to utils.cMichael Niedermayer2014-03-231-0/+12
| | | | | | | | | | | | Fixes build with --disable-everything Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: Add padding after the remaining AVFramesMichael Niedermayer2014-03-231-0/+1
| | | | | | | | | | | | | | | | | | | | This limits ABI issues in case libavcodec is linked to a libavutil with larger AVFrame Which can happen if they are shiped in seperate binary packages and libavutil is upgraded A cleaner alternative would be to replace them by pointers but this would likely cause a small speedloss Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: fix sizeof(AVFrame) dependence in avcodec_encode_audio2()Michael Niedermayer2014-03-181-6/+12
| | | | | | | | | | | | | | | | | | | | This is a bit tricky, we allocate a correctly sized AVFrame but then only copy the compile time AVFrame size, this is to ensure that user applications which do not use the correct av frame API dont end with out of array reads. Note, applications using the correct API have set extended_data and the changed code will never be executed for them. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: Move STRIDE_ALIGN to internal.hMichael Niedermayer2014-03-151-6/+0
| | | | | | | | | | | | The next commit/bugfix will need it Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '8feac29cc46270cc89d6016340e7bac780877131'Michael Niedermayer2014-02-241-7/+9
|\| | | | | | | | | | | | | * commit '8feac29cc46270cc89d6016340e7bac780877131': lavc: use AVFrame API properly in ff_reget_buffer() Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: use AVFrame API properly in ff_reget_buffer()Anton Khirnov2014-02-241-7/+9
| |
* | avcodec: support setting the chroma intra matrixMichael Niedermayer2014-02-181-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: set AVFrame format unconditionalMichael Niedermayer2014-02-161-2/+1
| | | | | | | | | | | | | | Fixes inconsistency and out of array accesses Fixes: 10cdd7e63e7f66e3e66273939e0863dd-asan_heap-oob_1a4ff32_7078_cov_4056274555_mov_h264_aac__mp4box_frag.mp4 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/utils: improve guess_correct_pts() by considerng mixed dts/pts use ↵Michael Niedermayer2014-02-141-2/+6
| | | | | | | | | | | | | | | | caused by NOPTSs No testcase known, this is a theoretical improvment Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-02-111-1/+4
|\| | | | | | | | | | | | | * qatar/master: lavc: set AVFrame pkt_pts and reordered_opaque in reget_buffer Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: set AVFrame pkt_pts and reordered_opaque in reget_bufferJohn Stebbins2014-02-111-1/+4
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * avcodec: Suppress deprecation warnings from avcodec_alloc_frame()Diego Biurrun2014-02-041-0/+2
| | | | | | | | The function is itself obsolete and slated for removal.
* | Merge commit 'e0ab5078a7d865f8f6fd6a6d3cbe0f380ead4a3d'Michael Niedermayer2014-01-211-5/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e0ab5078a7d865f8f6fd6a6d3cbe0f380ead4a3d': lavc: do not force the emu edge flag Conflicts: libavcodec/utils.c There should be no such bugs in ffmpeg, but merging it anyway as its safer. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: do not force the emu edge flagAnton Khirnov2014-01-211-5/+0
| | | | | | | | | | | | | | The default get_buffer2() implementation (and possibly some user ones) does not allocate edges when this flag is set, which may expose bugs in some decoders. Until the 10 release is out, it is safer to remove this part.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-01-201-0/+7
|\| | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavc: deprecate CODEC_FLAG_EMU_EDGE and avcodec_get_edge_width(). Conflicts: doc/APIchanges libavcodec/utils.c libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: deprecate CODEC_FLAG_EMU_EDGE and avcodec_get_edge_width().Anton Khirnov2014-01-201-0/+7
| |
* | Merge commit 'f7e85ee996b3886c2b13e928b83277382311af96'Michael Niedermayer2014-01-201-3/+9
|\| | | | | | | | | | | | | | | | | | | * commit 'f7e85ee996b3886c2b13e928b83277382311af96': lavc: allow the caller to override dimensions in ff_get_buffer() Conflicts: libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: allow the caller to override dimensions in ff_get_buffer()Anton Khirnov2014-01-201-3/+7
| | | | | | | | This will be useful for allocating edges in the encoders.
* | Merge commit '50079a6aa93291e6dc9d9fb8d33da83f79e9311d'Michael Niedermayer2014-01-061-1/+1
|\| | | | | | | | | | | | | | | | | | | | | * commit '50079a6aa93291e6dc9d9fb8d33da83f79e9311d': lavc: do not leak the internal frame if opening the codec fails Conflicts: libavcodec/utils.c See: 8b285f03f70e884312c6c4e00a1377cfd85a3a7a Merged-by: Michael Niedermayer <michaelni@gmx.at>