Michael Niedermayer
9afd55922a
imgconvert: silence some const incompatible pointer warnings.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
0db2d94280
dsputil: workaround __VA_ARGS__ missing tokenization for MSVC
...
A second expansion forces the preprocessor to tokenize properly.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
6d65496990
parser: Don't use pc as context for av_dlog
...
The ParserContext class doesn't have an AVClass, required for
using it as a logging class.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
5e997688f8
h264: Remove an assert on current_picture_ptr being null
...
It is possible in various error paths as well as gap handling
that this has already been allocated. It is not clear why that
would be a problem with the current code, thus disable the
assert to avoid a common assert failure when asserts are enabled.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Clément Bœsch
3b6e9cd7ec
lavc/dvdsubdec: parse the size from the extradata.
13 years ago
Martin Storsjö
c7b610aa0b
avopt: Explicitly store float/double option defaults in .dbl
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
e6153f173a
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
d58dd4b5b5
avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
124134e424
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
8c6d651fc3
paf: avoid using expressions with sideeffects in AV_R*
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2d7d91f06d
svq1enc: Set picture_structure correctly
...
This fixes assert failures when running in debug mode.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
91672504a4
mpegvideo: remove last_picture_ptr / h264 assert.
...
This assert is no longer true since h264 error concealment needs
last_picture_ptr to be set.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
19000122a4
mpegvideo_enc: remove assert that has become obsolete with the new API
...
It now just checks uninitialized and unused data.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
2c340596ca
elbg: Fix an assert
...
It seems the condition was flipped from what was intended.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
cc86bd4ccc
proresenc: Don't free a buffer not owned by the codec
...
The data in coded_frame isn't allocated using get_buffer, but
is copied from the input frame to the encoder, so we should
not try to free it ourselves.
This fixes an assert failure when running in debug mode.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
6d9e74cd41
proresenc: Write the full value in one put_bits call
...
Previously, the put_bits call writing the value wrote a value
larger than the number of bits specified, failing asserts
in debug mode. There was no actual bitstream writer corruption,
since the overwritten bit already always was set to 1.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
aa264da5bf
adpcmenc: Calculate the IMA_QT predictor without overflow
...
Previously, the value given to put_bits was 10 bits long for positive
predictors, even though 9 bits were to be written. The extra bit could
in some cases overwrite existing bits in the bitstream writer cache.
This fixes a failed assert in put_bits.h, when running a version
built with -DDEBUG.
The fate test result gets slightly improved, thanks to getting rid
of the overwritten bits in the bitstream writer cache.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
688cb71252
aaccoder: switch to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7b1ff5e2f3
h263dec: fix xvid IDCT switching
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
a84ac7a860
x86: h264dsp: drop some unnecessary ifdefs around prototype declarations
13 years ago
Michael Niedermayer
1fa4018e29
jpegdec: try to fix different flipping behavior of inteljpegs.
...
This may need some trial and error to find exactly how to identify them
so please report any intel jpegs that get fliped wrong.
Fixes Ticket511
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
507d2d28d6
lsp: change assert to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c868219c9a
lavc: put motion test back.
...
While not that usefull, we can as well keep it until it breaks.
When it breaks for whatever reason ill likely remove it
Sorry for the revert spam, i had not realized this code compiles
and works fine.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alberto Delmás
344fbc47c7
mss12: merge decode_pixel() and decode_top_left_pixel()
...
No meaningful generated code differences using gcc -O3.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Alberto Delmás
626c1a33ed
mss12: reduce SliceContext size from 1067 to 164 KB
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Alberto Delmás
a97ee41bee
mss12: move SliceContexts out of the common context into the codec contexts
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Diego Biurrun
eb239a577f
build: avcodec: order cosmetics
13 years ago
Diego Biurrun
7681b8837a
intrax8dsp: Add missing #include to make header standalone
13 years ago
Diego Biurrun
13b6b7e0e2
Delete motion-test tool; it is of doubtful utility.
13 years ago
Michael Niedermayer
5d55830388
snowdec: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0b23452c01
ffv1: fix 2 uninitialized variable warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
15616eb042
intrax8: move functions from dsputil to own context
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Stefano Sabatini
06fc74bda0
lavc/codec_desc: fix name of wavesynth codec
13 years ago
Piotr Bandurski
53241b5dc7
lavc: add missing new line to some messages
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mahendra M
9b4badb09b
Fix libx264 profile listing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Peter Ross
65a31a0de7
ansi: erase screen on first frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Peter Ross
3ac718d60a
ansi: support 256-colors
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Peter Ross
95b9e56beb
ansi: support escaped codes where last argument is zero
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Peter Ross
368a768cbc
ansi: remove misplaced return
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
a26789cf9f
Fix compilation with yasm-0.6.2.
13 years ago
Stephan Hilb
296140ebfb
cpia: move reget_buffer after header check
...
If the header is invalid, there is no need to get at buffer.
Do it after the header has been checked.
Suggested by Reimar Döffinger
13 years ago
Michael Niedermayer
dfb4757bbe
lavc: support building with the forks ABI for avcodec_find_best_pix_fmt2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2a54ae9df8
imgconvert: add avcodec_find_best_pix_fmt_of_2()
...
and deprecate avcodec_find_best_pix_fmt2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
fe79fc2ea5
dvbsubdec: set width/height from display def if not set.
...
This fixes playback of DVB subtitles in
http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket1065/Test1.wtv
in MPlayer.
FFplay is not affected since it assumes that the subtitles
are scaled to match the video - but this usually isn't the
case after rescaling the video and stream-copying subtitles.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Carl Eugen Hoyos
52be5428c0
Add some missing _EXTERNAL suffixes to yasm source files.
13 years ago
Michael Niedermayer
f61ee9b564
dsicinav: fix signed integer overflow
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
f3683349ae
Write TIFF Tag ExtraSamples when encoding pix_fmts that contain transparency information.
13 years ago
Carl Eugen Hoyos
5eb532a930
Cosmetics: Reorder pix_fmts in tiffenc.c.
13 years ago
Carl Eugen Hoyos
a5a90fa577
Simplify setting colour space for mono* when encoding tiff.
13 years ago
Alberto Delmás
ede3d6400d
MSS1 and MSS2: set final pixel format after common stuff has been initialised
...
This way it won't interfere with WMV9 initialisation inside MSS2 decoder and
avplay will play it fine.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago