Mercurial > libavcodec.hg
comparison indeo3.c @ 7964:cbf97db31e61 libavcodec
Remove useless context variable.
author | benoit |
---|---|
date | Wed, 01 Oct 2008 08:29:19 +0000 |
parents | 474794ff86df |
children | d4ae40057dd3 |
comparison
equal
deleted
inserted
replaced
7963:474794ff86df | 7964:cbf97db31e61 |
---|---|
33 typedef struct | 33 typedef struct |
34 { | 34 { |
35 uint8_t *Ybuf; | 35 uint8_t *Ybuf; |
36 uint8_t *Ubuf; | 36 uint8_t *Ubuf; |
37 uint8_t *Vbuf; | 37 uint8_t *Vbuf; |
38 unsigned int the_buf_size; | |
39 unsigned short y_w, y_h; | 38 unsigned short y_w, y_h; |
40 unsigned short uv_w, uv_h; | 39 unsigned short uv_w, uv_h; |
41 } YUVBufs; | 40 } YUVBufs; |
42 | 41 |
43 typedef struct Indeo3DecodeContext { | 42 typedef struct Indeo3DecodeContext { |
112 return AVERROR(ENOMEM); | 111 return AVERROR(ENOMEM); |
113 s->iv_frame[0].y_w = s->iv_frame[1].y_w = luma_width; | 112 s->iv_frame[0].y_w = s->iv_frame[1].y_w = luma_width; |
114 s->iv_frame[0].y_h = s->iv_frame[1].y_h = luma_height; | 113 s->iv_frame[0].y_h = s->iv_frame[1].y_h = luma_height; |
115 s->iv_frame[0].uv_w = s->iv_frame[1].uv_w = chroma_width; | 114 s->iv_frame[0].uv_w = s->iv_frame[1].uv_w = chroma_width; |
116 s->iv_frame[0].uv_h = s->iv_frame[1].uv_h = chroma_height; | 115 s->iv_frame[0].uv_h = s->iv_frame[1].uv_h = chroma_height; |
117 s->iv_frame[0].the_buf_size = bufsize; | |
118 | 116 |
119 s->iv_frame[0].Ybuf = s->buf + luma_width; | 117 s->iv_frame[0].Ybuf = s->buf + luma_width; |
120 i = luma_pixels + luma_width * 2; | 118 i = luma_pixels + luma_width * 2; |
121 s->iv_frame[1].Ybuf = s->buf + i; | 119 s->iv_frame[1].Ybuf = s->buf + i; |
122 i += (luma_pixels + luma_width); | 120 i += (luma_pixels + luma_width); |