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
Reimar Döffinger
238ef6dadd
Add a av_fast_malloc function and replace several uses of av_fast_realloc,
...
thus avoiding potential memleaks and pointless memcpys.
Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
c81185a183
Make sure mpeg2 has its height rounded up to 32 as that is needed
...
for interlaced stuff.
This might have been exploitable when emu edge was not set though
note this bug has been introduced just a few days ago.
Originally committed as revision 18405 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Thilo Borgmann
7a00bbad21
Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
...
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames.
Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread
"Google Summer of Code participation" on the mailinglist.
Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Gwenole Beauchesne
41913a35b0
Add 16cif video frame size abbreviation. i.e. -s alias for 1408x1152.
...
Originally committed as revision 18301 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
45bae968a9
Fix indentation after r18047.
...
Originally committed as revision 18048 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
c9d6e84778
Change linesize alignment method to ensure that linesize[0] == 2*linesize[1]
...
for YUV420P and YUV422P always.
Fixes MPEG-2 4:2:2 encoding on PPC and ARM, and should fix mxf_d10 regression.
Originally committed as revision 18047 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
6059f13cad
ff_find_hwaccel()
...
Originally committed as revision 17568 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
414d9d7f2e
av_hwaccel_next() by Gwenole Beauchesne.
...
Originally committed as revision 17567 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
c895618bb0
av_register_hwaccel() from Gwenole Beauchesne.
...
Originally committed as revision 17566 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
f8c96d011e
Check return value of ff_fill_pointer in avcodec_default_get_buffer,
...
if it returns -1 we do not know how to allocate an AVFrame for that format
and must return -1 instead of returning nonsense.
Originally committed as revision 17542 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
c269cf68a0
Approved hunks for VAAPI / our new shiny hwaccel API
...
by Gwenole Beauchesne gbeauchesne splitted desktop com
Originally committed as revision 17539 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Björn Axelsson
505aa6c91d
Check that there are subtitle rects to encode in avcodec_encode_subtitle()
...
Patch by Björn Axelsson ( gecko A acc D umu D se )
Originally committed as revision 17093 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Björn Axelsson
9413db9e04
Check that start_display_time is 0 in avcodec_encode_subtitle()
...
Patch by Björn Axelsson ( gecko A acc D umu D se )
Originally committed as revision 17092 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
8468664bd8
Remove 'const' qualifier from variable in av_parse_video_frame_size().
...
Thus only one warning is printed due to assignment instead of 2 from strtol.
Originally committed as revision 17045 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
8eb027c83c
remove useless cast, it does not remove warning, encode prototype must be changed
...
Originally committed as revision 17044 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
9d385cfec4
Drop the deprecated function register_avcodec() at the next major
...
version bump.
Originally committed as revision 17028 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
85662f4935
Rename register_avcodec() as avcodec_register() and deprecate the old
...
function name.
Originally committed as revision 17026 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
6337178b4f
Ensure that the palette is set in data[1] for all 8bit formats.
...
Also document it.
Originally committed as revision 17018 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
406792e7b0
cosmetics: Remove pointless period after copyright statement non-sentences.
...
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
9ce6c13879
export gcd function as av_gcd()
...
Originally committed as revision 16653 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Kenan Gillet
0ba39dd1a9
Split ff_log_missing_feature into ff_log_missing_feature
...
and ff_log_ask_for_sample.
Patch by Kenan Gillet: gmail_adress(author)
Originally committed as revision 16637 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
49fb20cb8a
replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
...
and remove all ENABLE_ definitions.
Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
c9b3c0c740
Remove hack to print mp2/mp1 with codec_id of CODEC_ID_MP3.
...
Originally committed as revision 16583 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
78acb9e74b
Move the AVCodecContext options definition to a dedicated file, reduce
...
the utils.c clutter.
Originally committed as revision 16514 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Benoit Fouet
5163c0d9a2
s/FFmpeg-devel/ffmpeg-devel/
...
Originally committed as revision 16314 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
0fa5f24c3b
Change mplayerhq.hu references to ffmpeg.org where appropriate.
...
Originally committed as revision 16310 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Måns Rullgård
7eec43289a
ARM: NEON optimised simple_idct
...
Originally committed as revision 16146 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
7a961a46ba
Make register_avcodec() call avcodec_init().
...
This avoids the possibility to use a registered codec without first
initializing libavcodec, which resulted in unexpected behavior.
Originally committed as revision 16131 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
335a761a90
Use a more explicit "codec" rather than "format" as the parameter of
...
register_avcodec().
Originally committed as revision 16130 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
dbbec0c2f2
Make av_log_missing_feature an internal function, and change its name
...
to ff_log_missing_feature.
Originally committed as revision 16037 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
3bff4d8b7a
Implement the fields rc_max_available_vbv_use and
...
rc_min_vbv_overflow_use in AVCodecContext, and use their values in the
ratecontrol code rather than hardcoded ones.
See the thread: "[RFC] ratecontrol buffer size magic".
Patch by Baptiste Coudurier.
Originally committed as revision 15955 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Roman Shaposhnik
3a84713aaa
Making it easier to send arbitrary structures as work orders to MT workers
...
Originally committed as revision 15804 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
7fb9440674
Add missing #include "libavutil/avstring.h", fixes
...
libavcodec/utils.c:1139: warning: implicit declaration of function 'av_strlcat'
Originally committed as revision 15777 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Peter Ross
0d72e7d0ae
Add audio channel layout API to libavcodec.
...
Originally committed as revision 15762 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
37d3e0667a
uses FF_ARRAY_ELEMS() where appropriate
...
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
fc228c9014
allows calling avcodec_find_(en|de)coder_by_name with NULL parameter
...
Originally committed as revision 15586 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Pettenò
e6df765ed3
Mark list heads static. Patch by Diego Pettenò
...
Originally committed as revision 15548 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago