diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-02-27 22:08:41 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-03-01 23:11:13 +0100 |
commit | 324deaa26883efbdac3b82d4b06eee0285826a7f (patch) | |
tree | fc9531cb91ac14c2135050c7020d0f03d2fcafa2 /libavcodec/pnmdec.c | |
parent | 47c0ac96aa3530aad9fbc5250a531589f251d4d7 (diff) | |
download | ffmpeg-324deaa26883efbdac3b82d4b06eee0285826a7f.tar.gz |
Replace AVFrame pointer type punning by proper struct member assignments.
Diffstat (limited to 'libavcodec/pnmdec.c')
-rw-r--r-- | libavcodec/pnmdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index ada0fd8a36..50e8bce168 100644 --- a/libavcodec/pnmdec.c +++ b/libavcodec/pnmdec.c @@ -180,7 +180,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data, } break; } - *picture = *(AVFrame*)&s->picture; + *picture = s->picture; *data_size = sizeof(AVPicture); return s->bytestream - s->bytestream_start; |