Stefano Sabatini
6ce9b4310c
Remove use of the deprecated function avcodec_check_dimensions(), use
...
av_check_image_size() instead.
Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
bf176f58b7
Deprecate avcodec_check_dimensions() in favor of the new function
...
av_check_image_size() declared in libavcore/imgutils.h.
Originally committed as revision 24709 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
05236ed735
Use av_fill_image_pointers/linesizes in place of ff_fill_pointer/linesize,
...
and drop the the ff_ variants at the next major bump.
Originally committed as revision 24620 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
126b638ea0
Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
...
in favor of the newly added corresponding functions
av_parse_video_size() and av_parse_video_rate() defined in
libavcore/parseutils.h.
This change also adds a linking-time dependency of libavcodec and of
libavfilter on libavcore.
Originally committed as revision 24518 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
8b834ac5d9
100l, change avsubtitle_free to the actually tested and working version.
...
Originally committed as revision 24188 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
e1d7c8831c
Add avsubtitle_free function.
...
Originally committed as revision 24185 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
0fd0ef7947
Add new decoder property max_lowres and do not init decoder if requested value is higher.
...
Originally committed as revision 24098 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
25cbc8b46e
Move av_tempfile() to libxvidff.c as only the xvid wrapper needs it
...
Originally committed as revision 24074 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
ab0b53786b
Make avcodec_string() use av_get_codec_tag_string().
...
Originally committed as revision 23422 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
7e566bbe6c
Implement av_get_codec_tag_string() and use it in ffprobe.
...
Originally committed as revision 23421 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
3491a9b266
Cosmetics : Fix typo.
...
Originally committed as revision 23345 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Janne Grunau
93ebfeea90
Add CODEC_CAP_EXPERIMENTAL and prefer encoders without it.
...
Patch by Janne Grunau, janne-ffmpeg jannau net
Originally committed as revision 23334 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Francesco Lavra
603a5f04b2
Factorize some code into the new function ff_toupper4().
...
Patch by Francesco Lavra, francescolavra interfree it
Originally committed as revision 23158 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
b3ab319944
Set coded_frame to NULL when closing a codec, since it might
...
be invalid after the codec is "gone".
Originally committed as revision 23101 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
4cf1ba0445
Make avcodec_check_dimensions() return AVERROR(EINVAL) rather than -1
...
in case of invalid picture size.
Originally committed as revision 22962 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
4563cf247d
Factorize code in get_bit_rate().
...
Originally committed as revision 22879 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Craig Thomasson
77a670e796
Fix segfault when encoder initialization fails.
...
Patch by Craig Thomasson $(name) dot $(surname) ripcode com
Originally committed as revision 22811 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Bobby Bingham
0fb49b597b
Add function to export EDGE_WIDTH from libavcodec.
...
Originally committed as revision 22753 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
406aa93fd0
Make av_get_bit_rate() static and remove av_, the function is only used
...
inside libavcodec/utils.c.
Originally committed as revision 22117 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
88f83607b6
Include libxvid_internal.h: It contains the prototype for av_tempfile().
...
Originally committed as revision 22116 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
eb285cfe8e
Fix avcodec_align_dimensions to return values suitably aligned for FLV decoding
...
with SSE and add a avcodec_align_dimensions2 taht returns the stride alignment
requirements independently from doing the width/height padding.
Originally committed as revision 22095 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Vitor Sessak
c4f267ab75
Free encoder extradata in avcodec_close(). Should fix several small memory
...
leaks when encoding (at least for asv, wma and aac).
Fix also issue 1577.
Originally committed as revision 21923 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
b7098cc153
Special case VP5/6 chroma alignment on x86 as well
...
Originally committed as revision 21782 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Zuxy Meng
0752cd39d2
More av_cold for infrequently called functions.
...
Originally committed as revision 21179 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
c46eeae2a8
Add a function to match a 2 element vector of uint16_t and use it in h263 and svq1
...
instead of custom and bloated code to find an index into a w/h array.
Originally committed as revision 21113 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
07f2a575c5
100l: Fix compilation after r21037.
...
Originally committed as revision 21039 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
9df9b810c5
Handle more ADPCM codecs in av_get_bits_per_sample().
...
This removes some special-case code from riff.c.
CODEC_ID_ADPCM_G726 is still handled in riff.c as before because it is
not guaranteed to be fixed 4 bits per sample.
Originally committed as revision 21037 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
4160069067
Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for XXX_configuration() and
...
XXX_license() functions, consistent with the rest of FFmpeg.
Originally committed as revision 21005 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
b8af4fe9a5
Set reordered_opaque in default_reget_buffer() with internal buffers.
...
From ffmbc0.3, this one appears to be a bugfix.
Originally committed as revision 20862 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Robert Krüger
ce34ff6b45
Factorize av_get_bit_rate (for future use outside of libavcodec).
...
Patch by Robert Krüger, krueger signal7 de
Originally committed as revision 20569 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
98c82d6910
Allocate pictures with enough padding for jpeg.
...
Ensure that jpeg does not use mbs that could require larger padding.
This might have been exploitable.
Originally committed as revision 20566 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
c173693698
Add functions to return library license and library configuration.
...
Originally committed as revision 20547 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
dccda293a0
Add a NULL pointer check to avcodec_close() this should prevent a segfault
...
when closing without open.
Originally committed as revision 20495 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Francesco Lavra
91cc5d3767
Move ff_reverse in libavcodec to av_reverse in libavutil.
...
Patch by Francesco Lavra, francescolavra interfree it
Originally committed as revision 20484 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
ea09f69194
Print a warning message when avcodec_default_free_buffers finds unreleased
...
buffers, this hopefully should help detect codecs that do not release all
buffers e.g. in the decode_end function.
Originally committed as revision 20230 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
8d23a86f33
Add an execute2 function that is more flexible and allows to use parallel
...
processing with jobs > threads without wasting too much memory.
It also avoids needing a separate int array when the only additional data
the jobs needs is a single int running from 0 to count-1.
Originally committed as revision 20210 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
681c180dc4
Make avcodec_open set codec_id and codec_type if they haven't been set.
...
This fixes the API breakage introduced by the check that avctx codec id and type
match the opened codec and should make (almost?) all applications work again.
Originally committed as revision 20125 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
2a9b5c9b42
Make sure priv_data is freed and codec is set to NULL in case of failure of avcodec_open().
...
Originally committed as revision 20002 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
4c0dda2b3f
Check codec_id and codec_type in avcodec_open(), based on 43_codec_type_mismatch.patch from chrome
...
This is said to be able to lead to a stack based buffer overflow.
Originally committed as revision 19973 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
40461e54ce
Add parentheses to logical expression to avoid the warning:
...
libavcodec/utils.c:476: warning: suggest parentheses around && within ||
Originally committed as revision 19933 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Peter Ross
fa77dd639d
perform sanity check on number of audio channels in avcodec_open()
...
Originally committed as revision 19877 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
ce863d7f36
Rename ff_log_missing_feature() to av_log_missing_feature().
...
Originally committed as revision 19294 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
10f9ff9bf6
Set AV_PKT_FLAG_KEY in avcodec_decode_video.
...
This fixes decoding of MPNG, which currently is incorrectly decoded as
CorePNG delta frames.
CorePNG can not be correctly decoded via this old API either way.
Originally committed as revision 19079 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Andreas Öman
f988ce6cad
Add a lock manager API to libavcodec.
...
Allows an application to register a callback that manages mutexes
on behalf of FFmpeg.
With this callback registered FFmpeg is fully thread safe.
Originally committed as revision 19025 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
ef516f7377
Move ALIGN macro to libavutil/common.h and use it in various places
...
Originally committed as revision 18898 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
2e418f5ed8
Make avcodec_thread_init() set the thread count, even in the case when
...
threads support is not enabled. This should avoid the need for
thread_count explicit setting in applications.
Originally committed as revision 18670 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
445f0a8b66
Update safety check as the maximum pixel size is no longer 4.
...
New max size is 16bit * 4 samples (RGBA).
Originally committed as revision 18655 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago