aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/lcl.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/lcl.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/lcl.c')
-rw-r--r--libavcodec/lcl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/lcl.c b/libavcodec/lcl.c
index b236c1092b..f214b0a8b2 100644
--- a/libavcodec/lcl.c
+++ b/libavcodec/lcl.c
@@ -200,7 +200,7 @@ static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned cha
*/
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
{
- LclContext * const c = (LclContext *)avctx->priv_data;
+ LclContext * const c = avctx->priv_data;
unsigned char *encoded = (unsigned char *)buf;
unsigned int pixel_ptr;
int row, col;
@@ -617,7 +617,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
*/
static int decode_init(AVCodecContext *avctx)
{
- LclContext * const c = (LclContext *)avctx->priv_data;
+ LclContext * const c = avctx->priv_data;
unsigned int basesize = avctx->width * avctx->height;
unsigned int max_basesize = ((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3);
unsigned int max_decomp_size;
@@ -852,7 +852,7 @@ static int encode_init(AVCodecContext *avctx)
*/
static int decode_end(AVCodecContext *avctx)
{
- LclContext * const c = (LclContext *)avctx->priv_data;
+ LclContext * const c = avctx->priv_data;
if (c->pic.data[0])
avctx->release_buffer(avctx, &c->pic);