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
This commit is contained in:
Nicholas Tung
2007-04-08 20:24:16 +00:00
committed by Diego Biurrun
parent 119e48d960
commit e4141433ea
46 changed files with 147 additions and 147 deletions

View File

@@ -106,7 +106,7 @@ static int zmbv_me(ZmbvEncContext *c, uint8_t *src, int sstride, uint8_t *prev,
static int encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_size, void *data)
{
ZmbvEncContext * const c = (ZmbvEncContext *)avctx->priv_data;
ZmbvEncContext * const c = avctx->priv_data;
AVFrame *pict = data;
AVFrame * const p = &c->pic;
uint8_t *src, *prev;
@@ -239,7 +239,7 @@ static int encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_size, void
*/
static int encode_init(AVCodecContext *avctx)
{
ZmbvEncContext * const c = (ZmbvEncContext *)avctx->priv_data;
ZmbvEncContext * const c = avctx->priv_data;
int zret; // Zlib return code
int lvl = 9;
@@ -305,7 +305,7 @@ static int encode_init(AVCodecContext *avctx)
*/
static int encode_end(AVCodecContext *avctx)
{
ZmbvEncContext * const c = (ZmbvEncContext *)avctx->priv_data;
ZmbvEncContext * const c = avctx->priv_data;
av_freep(&c->comp_buf);
av_freep(&c->work_buf);