diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-02-27 22:02:45 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-03-01 23:11:11 +0100 |
commit | 47c0ac96aa3530aad9fbc5250a531589f251d4d7 (patch) | |
tree | ff9e3ae46b9d2eaffdc686c47438d489679b0002 /libavcodec/ljpegenc.c | |
parent | 562b6c744abdde4e673038fcb0c126a4aadfa6c7 (diff) | |
download | ffmpeg-47c0ac96aa3530aad9fbc5250a531589f251d4d7.tar.gz |
Replace AVFrame pointer casts by proper struct member accesses.
Diffstat (limited to 'libavcodec/ljpegenc.c')
-rw-r--r-- | libavcodec/ljpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c index d2b9317114..a73ef45500 100644 --- a/libavcodec/ljpegenc.c +++ b/libavcodec/ljpegenc.c @@ -45,7 +45,7 @@ static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt, MJpegContext * const m = s->mjpeg_ctx; const int width= s->width; const int height= s->height; - AVFrame * const p= (AVFrame*)&s->current_picture; + AVFrame * const p = &s->current_picture.f; const int predictor= avctx->prediction_method+1; const int mb_width = (width + s->mjpeg_hsample[0] - 1) / s->mjpeg_hsample[0]; const int mb_height = (height + s->mjpeg_vsample[0] - 1) / s->mjpeg_vsample[0]; |