summaryrefslogtreecommitdiff
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-02-27 08:51:20 +0100
committerDiego Biurrun <diego@biurrun.de>2012-03-01 23:11:10 +0100
commit562b6c744abdde4e673038fcb0c126a4aadfa6c7 (patch)
treeb4298ea102140993cfc2ebaad2dbee91f7f56a0c /libavcodec/fraps.c
parent2f4b476e04160dad9472a61db2dd575471f39812 (diff)
Remove unnecessary AVFrame pointer casts.
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r--libavcodec/fraps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index e2355d8f2f..dc74b5112f 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -60,7 +60,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
{
FrapsContext * const s = avctx->priv_data;
- avctx->coded_frame = (AVFrame*)&s->frame;
+ avctx->coded_frame = &s->frame;
avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */
s->avctx = avctx;
@@ -131,7 +131,7 @@ static int decode_frame(AVCodecContext *avctx,
int buf_size = avpkt->size;
FrapsContext * const s = avctx->priv_data;
AVFrame *frame = data;
- AVFrame * const f = (AVFrame*)&s->frame;
+ AVFrame * const f = &s->frame;
uint32_t header;
unsigned int version,header_size;
unsigned int x, y;