Tim Walker
08797c599d
flac: don't check the number of channels before setting the channel layout
This is unnecessary, as ff_flac_set_channel_layout can handle any number of channels.
12 years ago
Michael Niedermayer
d71f8d74db
qtrle: fix 1bit row_ptr comment
Found-by: aballier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Tim Walker
7af876a93f
flac: add channel layout masks for streams with 7 or 8 channels
They were added to the latest FLAC specification:
https://git.xiph.org/?p=flac-website.git;a=commit;h=65c199a2
12 years ago
James Almer
8ab2173ed1
lavc/bink: Chech for malloc failure
Signed-off-by: James Almer <jamrial@gmail.com>
12 years ago
Michael Niedermayer
0ddca7d416
dsputil: fixup half a dozen bugs with ptrdiff vs int linesize
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
293065bdb5
mpegvideo: initialize dummy reference frames.
Do not rely on get_buffer initializing them.
Changes yadif tests (off by one in one border pixel), because yadif
reads from those uninitialized lines.
12 years ago
Anton Khirnov
dff6197dfb
nuv: do not rely on get_buffer() initializing the frame.
12 years ago
Anton Khirnov
8136f23444
yop: check for input overreads.
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
06cf597c35
yop: check that extradata is large enough.
CC:libav-stable@libav.org
12 years ago
Kostya Shishkov
89f11f498b
qtrle: fix the topmost line for 1bit
Signed-off-by: Anton Khirnov <anton@khirnov.net>
CC:libav-stable@libav.org
12 years ago
Kostya Shishkov
685e6f2e39
xxan: properly handle odd heights.
Duplicate the last one or two chroma lines.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
2cd4068071
fraps: fix off-by one bug for version 1.
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
da7baaaae7
aasc: fix output for msrle compression.
The bottom line was invalid before.
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
238614de67
cdgraphics: do not rely on get_buffer() initializing the frame.
Setting it to zero (instead of 128, as the default get_buffer() does)
also produces more correctly-looking output.
12 years ago
Anton Khirnov
39a9fdd00f
yop: initialize palette to 0
The FATE sample contains some pixels with value 0, but the palette
stored in the file contains only values from 16 up. Because the default
and cmdutils get_buffer() initialize the data to 0x80, they appear as
gray dots.
After this commit they change to black dots, which is probably still
incorrect but less visible and doesn't rely on get_buffer() initializing
the data.
12 years ago
Anton Khirnov
9bd6375d5f
msrledec: check bounds before constructing a possibly invalid pointer,
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
6ed9fc44ba
svq1: replace struct svq1_frame_size with an array.
It is used as an array in svq1enc, so this is more correct.
12 years ago
Vladimir Pantelic
77bcb89600
vc1dec: use codec_id instead of codec_tag for VC1IMAGE
the rest of the code is using codec_id everywhere already
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
12 years ago
Michael Niedermayer
68dfe530e0
vdpau: Rename union, avoid name conflict with vdpau
Fixes Ticket2203
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
b2a722a87e
sh4: drop unused functions
{avg,put}_pixels4_c are not used.
12 years ago
Diego Biurrun
620289a20e
sh4: Fix silly type vs. variable name search and replace typo
12 years ago
Michael Niedermayer
b0635e2fcf
movtextenc: fix pointer messup and out of array accesses
Fixes Ticket2187
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c2dd5a18b2
ljpegenc: allocate needed scratch-buffer
Fixes null pointer dereference
Fixes Ticket2207
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
c9f933b5b6
Add av_cold attributes to arch-specific init functions
12 years ago
multiple authors
7a4885600f
libmpcodecs/vf_spp: update to latest version from mplayer
Please see mplayer svn for authorship and individual commits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
25841dfe80
Use ptrdiff_t instead of int for {avg, put}_pixels line_size parameter.
This avoids SIMD-optimized functions having to sign-extend their
line size argument manually to be able to do pointer arithmetic.
12 years ago
Michael Niedermayer
5a83115130
ffv1: check for malloc failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b77d94dc6c
ffv1enc: check for malloc failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
fc0d069feb
flacdec: silence several "warning: X may be used uninitialized in this function"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
96a08d8627
wmavoice: silence may be used uninitialized warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
63c61f0be0
vc1dec: Fix 2 "warning: may be used uninitialized in this function"
Initialize pointers to NULL for safety
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michaël Cinquin
60f06f986f
libopenjpegenc: make dci compliant j2c
Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com>
12 years ago
Anton Khirnov
d9df93efbf
mpegvideo: simplify REBASE_PICTURE
Always evaluate to NULL when the source Picture is not located in the
MpegEncContext.picture array. That will only happen for
next/last_picture_ptr when updating the thread context during h264 frame
threaded decoding, where they will point to elements of ref_list. Since
ref_list is not copied during updating the context and is invalid until
it is constructed for the current slice, there is no point in doing
anything complicated with next/last_picture_ptr, as they will get
updated when the ref_list is filled.
12 years ago
Michael Niedermayer
d106679fb5
qdm2: disable superblocktype_2_3==0 code
The code is untested and contained bugs, we need a sample if any files
use this branch.
Suggested-by: Roberto Togni
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
ccfd8cffe8
qdm2: Fix data type used in multiplication.
Avoid unintended truncation.
Fixes CID700555
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
4d37d2bfc5
put_vp_no_rnd_pixels8_l2_mmx: fix type
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
cb573f7fbc
avcodec/x86: Add daniels copyright to the recent gcc->yasm convertions he did.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
James Almer
d1511c02f4
proresdsp: Fix checkheaders
It's been broken since commit ac89875
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
695af8eed6
h264: skip error concealment when SPS and slices are mismatching
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0e9b9a6748
flacdec: skip in stream header packets
This prevents warning messages on chained oggs with some demuxers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
cdc48860a8
h264: silence warning about array index being out of bounds
The index is not out of bounds, adding an assert makes gcc
realize this.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Ronald S. Bultje
8af915c21b
vp56: remove clear_blocks call, and clear alpha plane U/V DC only.
The non-alpha and alpha-Y planes are cleared in the idct_put/add()
calls. For the alpha U/V planes, we only care about the DC for entropy
context prediction purposes, the rest of the data is unused.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
6c1a7d07eb
Use proper "" quotes for local header #includes
12 years ago
Diego Biurrun
4eef2ed707
ppc: fmtconvert: Drop two unused variables.
12 years ago
Anton Khirnov
f2960097e4
bink: fix a check for the first frame.
Packet pts is a very unreliable indicator, use
AVCodecContext.frame_number instead.
12 years ago
Sebastian Sandberg
c6779c5131
vc1dec: fieldtx is only valid for interlaced frames
the fieldtx_plane is not cleared for interlaced fields
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Bradshaw
28f36dce3e
libopenjpegenc: simplify switch statement
Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com>
12 years ago
Michael Bradshaw
c58c67398d
libopenjpegenc: add support for pix fmt gbrp (8-16 bit)
Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com>
12 years ago
Michael Niedermayer
131fac1c12
vc1dec: fix block_off
Fixes corruption of motion_val
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
52acd79165
x86: hpel: Move {avg,put}_pixels16_sse2 to hpeldsp
12 years ago