diff options
author | Nicholas Tung <ntung@ntung.com> | 2007-04-08 20:24:16 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-04-08 20:24:16 +0000 |
commit | e4141433ead866d1b359c0cbf3e4d5180477206d (patch) | |
tree | e2878410dbdf558dfb561f28cf29585c3896918d /libavcodec/flashsvenc.c | |
parent | 119e48d9607e1a43c5ff021b5345bbd62eef3926 (diff) | |
download | ffmpeg-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/flashsvenc.c')
-rw-r--r-- | libavcodec/flashsvenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c index cbf4883288..b975ed254b 100644 --- a/libavcodec/flashsvenc.c +++ b/libavcodec/flashsvenc.c @@ -100,7 +100,7 @@ static int copy_region_enc(uint8_t *sptr, uint8_t *dptr, static int flashsv_encode_init(AVCodecContext *avctx) { - FlashSVContext *s = (FlashSVContext *)avctx->priv_data; + FlashSVContext *s = avctx->priv_data; s->avctx = avctx; @@ -232,7 +232,7 @@ static int encode_bitstream(FlashSVContext *s, AVFrame *p, uint8_t *buf, int buf static int flashsv_encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_size, void *data) { - FlashSVContext * const s = (FlashSVContext *)avctx->priv_data; + FlashSVContext * const s = avctx->priv_data; AVFrame *pict = data; AVFrame * const p = &s->frame; int res; @@ -322,7 +322,7 @@ static int flashsv_encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_siz static int flashsv_encode_end(AVCodecContext *avctx) { - FlashSVContext *s = (FlashSVContext *)avctx->priv_data; + FlashSVContext *s = avctx->priv_data; deflateEnd(&(s->zstream)); |