git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ab03e4
)
dv: Replace a magic number by sizeof()
author
Diego Biurrun
<diego@biurrun.de>
Fri, 7 Feb 2014 09:42:35 +0000
(10:42 +0100)
committer
Diego Biurrun
<diego@biurrun.de>
Wed, 25 Jun 2014 22:32:58 +0000
(15:32 -0700)
libavcodec/dv.c
patch
|
blob
|
history
diff --git
a/libavcodec/dv.c
b/libavcodec/dv.c
index
03ef695
..
e840f48
100644
(file)
--- a/
libavcodec/dv.c
+++ b/
libavcodec/dv.c
@@
-307,7
+307,7
@@
av_cold int ff_dvvideo_init(AVCodecContext *avctx)
/* 248DCT setup */
s->fdct[1] = dsp.fdct248;
s->idct_put[1] = ff_simple_idct248_put; // FIXME: need to add it to DSP
/* 248DCT setup */
s->fdct[1] = dsp.fdct248;
s->idct_put[1] = ff_simple_idct248_put; // FIXME: need to add it to DSP
- memcpy(s->dv_zigzag[1], ff_dv_zigzag248_direct,
64
);
+ memcpy(s->dv_zigzag[1], ff_dv_zigzag248_direct,
sizeof(s->dv_zigzag[1])
);
s->avctx = avctx;
avctx->chroma_sample_location = AVCHROMA_LOC_TOPLEFT;
s->avctx = avctx;
avctx->chroma_sample_location = AVCHROMA_LOC_TOPLEFT;