]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pnm.c
h263enc: test that dimensions are a multiple of 4
[ffmpeg] / libavcodec / pnm.c
index 0e547deb5f84c9c8e969f83a46d3df4253e23737..bfb4a25b7c2d4363c9d505078d6754570de3afaa 100644 (file)
@@ -198,8 +198,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;
 }