Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
ec0965be36
cavsdec: ensure the tables have been allocated before using them
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
71e78e1f51
cavsdec: check stc in decode_slice_header()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
25715064c2
cavsdec: check for changing w/h.
...
Our decoder does not support changing w/h.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
83f15a1228
avs: fix infinite loop on end-of-stream.
...
The codec would keep returning the last decoded frame if the stream
contains B-frames, since it wouldn't clear that frame from the list of
frames to be returned to the user.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Diego Biurrun
324deaa268
Replace AVFrame pointer type punning by proper struct member assignments.
13 years ago
Diego Biurrun
47c0ac96aa
Replace AVFrame pointer casts by proper struct member accesses.
13 years ago
Martin Storsjö
efd29844eb
mpegvideo: Add ff_ prefix to nonstatic functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
3dc99a18d4
cosmetics: drop some pointless parentheses
13 years ago
Anton Khirnov
9138a130cd
lavc: use avpriv_ prefix for ff_frame_rate_tab.
...
It's used in lavf.
13 years ago
Anton Khirnov
773375c3d0
lavc: rename ff_find_start_code to avpriv_mpv_find_start_code
...
It's used in lavf.
13 years ago
Michael Niedermayer
961a1a81d8
cavsdec: check run value validity
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
4a71da0f3a
cavs: fix some crashes with invalid bitstreams
...
This removes all valgrind-reported invalid writes with one
specific test file.
Fixes http://www.ocert.org/advisories/ocert-2011-002.html
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
9f06c1c61e
cavsdec: avoid possible crash with crafted input
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6481a36010
cavs: fix oCERT #2011-002 FFmpeg/libavcodec insufficient boundary check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
13 years ago
Diego Biurrun
657ccb5ac7
Eliminate FF_COMMON_FRAME macro.
...
FF_COMMON_FRAME holds the contents of the AVFrame structure and is also copied
to struct Picture. Replace by an embedded AVFrame structure in struct Picture.
14 years ago
Stefano Sabatini
ce5e49b0c2
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
14 years ago
Stefano Sabatini
975a1447f7
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
e7e2df27f8
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d36beb3f69
)
14 years ago
Diego Elio Pettenò
d36beb3f69
Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.
...
None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Måns Rullgård
f079a64aea
Move cavs dsp functions to their own struct
...
Originally committed as revision 24685 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 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
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
Stefan Gehrer
35122bd93e
add heuristic to discern the old sample clips from streams encoded
...
with rm52j encoder, a marker_bit has been added in the I-Frame syntax
Originally committed as revision 21836 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefan Gehrer
470de55aa1
fix slice header checking
...
Originally committed as revision 19303 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
9106a698e7
Rename bitstream.h to get_bits.h.
...
Originally committed as revision 18494 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
Stefan Gehrer
cd3356ff73
check for a stuffing byte at the end of a slice
...
Originally committed as revision 17559 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
88db5551cf
change macroblock loop in inter frames so that after a
...
slice header the skip count is always parsed first
Originally committed as revision 17558 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
6847ab4375
introduce a macroblock index to avoid a few x*width+y calculations
...
Originally committed as revision 17138 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
b9fce05205
fix multiple slices per frame
...
Originally committed as revision 17137 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
4ca6f4b29c
fix parsing of pic_structure
...
Originally committed as revision 17136 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
e090c70f2f
avoid duplicating dsputil's clear_block
...
Originally committed as revision 17135 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
ae2d3e3b25
time_code has 24 bits, not 16
...
Originally committed as revision 17134 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
d934de5c5d
do not check for minimum slice start code, 0x00000100 is valid
...
Originally committed as revision 17133 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
Stefan Gehrer
620b8a2ed7
fix doxygen file reference
...
Originally committed as revision 16816 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
74a4371d74
use assignment of structure instead of memcpy
...
Originally committed as revision 16644 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
bef01ca08f
rename XXX_t enums to cavs_XXX to fix POSIX namespace issue
...
Originally committed as revision 16642 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefan Gehrer
e685e8eada
rename vector_t to cavs_vector
...
Originally committed as revision 16641 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
9506090df9
Avoid POSIX-reserved _t in identifier names.
...
Originally committed as revision 16142 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Stefano Sabatini
fe4bf37455
Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
...
Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
6138ed777d
Arrays where one element too small, fixes CID114.
...
this was possibly exploitable
Originally committed as revision 13475 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Stefano Sabatini
d5202e4fda
Add long names to many AVCodec declarations.
...
patch by Stefano Sabatini, stefano.sabatini-lala poste it
Originally committed as revision 13005 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
1a2c94cb69
const
...
Originally committed as revision 11719 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Luca Abeni
e02f7490da
Initialize the "stc" variable before using it in ff_find_start_code()
...
Originally committed as revision 10193 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alex Beregszaszi
3a5729eae1
use skip_bits where appropriate
...
Originally committed as revision 10005 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Stefan Gehrer
5d2b15b870
have less functions as inline
...
Originally committed as revision 9792 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago