summaryrefslogtreecommitdiff
path: root/libavcodec/rawenc.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/rawenc.c
parent2f4b476e04160dad9472a61db2dd575471f39812 (diff)
Remove unnecessary AVFrame pointer casts.
Diffstat (limited to 'libavcodec/rawenc.c')
-rw-r--r--libavcodec/rawenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index 8eb818c618..f435333fef 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -32,7 +32,7 @@
static av_cold int raw_init_encoder(AVCodecContext *avctx)
{
- avctx->coded_frame = (AVFrame *)avctx->priv_data;
+ avctx->coded_frame = avctx->priv_data;
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->coded_frame->key_frame = 1;
avctx->bits_per_coded_sample = av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]);