summaryrefslogtreecommitdiff
path: root/libavcodec/smc.c
diff options
context:
space:
mode:
authorNicholas Tung <ntung@ntung.com>2007-04-08 20:24:16 +0000
committerDiego Biurrun <diego@biurrun.de>2007-04-08 20:24:16 +0000
commite4141433ead866d1b359c0cbf3e4d5180477206d (patch)
treee2878410dbdf558dfb561f28cf29585c3896918d /libavcodec/smc.c
parent119e48d9607e1a43c5ff021b5345bbd62eef3926 (diff)
downloadffmpeg-e4141433ead866d1b359c0cbf3e4d5180477206d.tar.gz
Get rid of unnecessary pointer casts.
patch by Nicholas Tung, ntung ntung com Originally committed as revision 8687 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/smc.c')
-rw-r--r--libavcodec/smc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/smc.c b/libavcodec/smc.c
index 8cafa6682b..7a617ec7d8 100644
--- a/libavcodec/smc.c
+++ b/libavcodec/smc.c
@@ -432,7 +432,7 @@ static void smc_decode_stream(SmcContext *s)
static int smc_decode_init(AVCodecContext *avctx)
{
- SmcContext *s = (SmcContext *)avctx->priv_data;
+ SmcContext *s = avctx->priv_data;
s->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
@@ -447,7 +447,7 @@ static int smc_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
- SmcContext *s = (SmcContext *)avctx->priv_data;
+ SmcContext *s = avctx->priv_data;
s->buf = buf;
s->size = buf_size;
@@ -471,7 +471,7 @@ static int smc_decode_frame(AVCodecContext *avctx,
static int smc_decode_end(AVCodecContext *avctx)
{
- SmcContext *s = (SmcContext *)avctx->priv_data;
+ SmcContext *s = avctx->priv_data;
if (s->frame.data[0])
avctx->release_buffer(avctx, &s->frame);