]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pnm.c
png: check bit depth for PAL8/Y400A pixel formats.
[ffmpeg] / libavcodec / pnm.c
index f6e6d53ec9500f32d57cfda305288f9bad5bdb2d..6d72f234c122ee5c6a74a796e85a1f4b3aba2cc9 100644 (file)
@@ -189,8 +189,8 @@ av_cold int ff_pnm_init(AVCodecContext *avctx)
 {
     PNMContext *s = avctx->priv_data;
 
-    avcodec_get_frame_defaults((AVFrame*)&s->picture);
-    avctx->coded_frame = (AVFrame*)&s->picture;
+    avcodec_get_frame_defaults(&s->picture);
+    avctx->coded_frame = &s->picture;
 
     return 0;
 }