summaryrefslogtreecommitdiffstats
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2002-10-04 20:59:29 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2002-10-04 20:59:29 +0000
commitdefdfc9aa086bdff4aade2986b3d34a7df16384c (patch)
treeb02d3ed4759807185d31da32d69a140c12de5376 /libavcodec/dv.c
parent1e5c667c91885a75169b390d2b3d632fcfc1ac1f (diff)
downloadffmpeg-streaming-defdfc9aa086bdff4aade2986b3d34a7df16384c.zip
ffmpeg-streaming-defdfc9aa086bdff4aade2986b3d34a7df16384c.tar.gz
moved dct init out from mpv_common_init to dct_common_init (for less-uglier way for dv)
Originally committed as revision 1002 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 3ab693c..02478ca 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -113,12 +113,8 @@ static int dvvideo_decode_init(AVCodecContext *avctx)
/* ugly way to get the idct & scantable */
/* XXX: fix it */
memset(&s2, 0, sizeof(MpegEncContext));
- s2.flags = avctx->flags;
s2.avctx = avctx;
-// s2->out_format = FMT_MJPEG;
- s2.width = 8;
- s2.height = 8;
- if (MPV_common_init(&s2) < 0)
+ if (DCT_common_init(&s2) < 0)
return -1;
s->idct_put[0] = s2.idct_put;
@@ -129,8 +125,6 @@ static int dvvideo_decode_init(AVCodecContext *avctx)
s->idct_put[1] = simple_idct248_put;
memcpy(s->dv_zigzag[1], dv_248_zigzag, 64);
- MPV_common_end(&s2);
-
/* XXX: do it only for constant case */
dv_build_unquantize_tables(s);
@@ -151,7 +145,7 @@ typedef struct BlockInfo {
} BlockInfo;
/* block size in bits */
-const static UINT16 block_sizes[6] = {
+static const UINT16 block_sizes[6] = {
112, 112, 112, 112, 80, 80
};
OpenPOWER on IntegriCloud