Originally committed as revision 18805 to svn://svn.ffmpeg.org/ffmpeg/trunk
Baptiste Coudurier authored on 2009/05/13 09:27:11... | ... |
@@ -61,9 +61,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac |
61 | 61 |
if (avctx->get_buffer(avctx, pic) < 0) |
62 | 62 |
return -1; |
63 | 63 |
|
64 |
- y = pic->data[0]; |
|
65 |
- u = pic->data[1]; |
|
66 |
- v = pic->data[2]; |
|
64 |
+ y = (uint16_t*)pic->data[0]; |
|
65 |
+ u = (uint16_t*)pic->data[1]; |
|
66 |
+ v = (uint16_t*)pic->data[2]; |
|
67 | 67 |
pic->pict_type = FF_I_TYPE; |
68 | 68 |
pic->key_frame = 1; |
69 | 69 |
|
... | ... |
@@ -76,7 +76,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac |
76 | 76 |
} while (0); |
77 | 77 |
|
78 | 78 |
for (h = 0; h < avctx->height; h++) { |
79 |
- const uint32_t *src = psrc; |
|
79 |
+ const uint32_t *src = (const uint32_t*)psrc; |
|
80 | 80 |
uint32_t val; |
81 | 81 |
for (w = 0; w < avctx->width - 5; w += 6) { |
82 | 82 |
READ_PIXELS(u, y, v); |