summaryrefslogtreecommitdiff
path: root/libavcodec/pnm.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-11-09 10:14:46 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-09 08:41:20 +0100
commitafa21a12bf084f905187615706b0a8d92bc98661 (patch)
tree01d0e07064dbaa0f9699a70382f59bb4c8693d27 /libavcodec/pnm.c
parente2274aa555f023e4f4e4819bf29b2d7e0adec7d5 (diff)
p*menc: use the AVFrame API properly.
Diffstat (limited to 'libavcodec/pnm.c')
-rw-r--r--libavcodec/pnm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c
index eea30e8621..1c380b0ff8 100644
--- a/libavcodec/pnm.c
+++ b/libavcodec/pnm.c
@@ -184,13 +184,3 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
}
return 0;
}
-
-av_cold int ff_pnm_init(AVCodecContext *avctx)
-{
- PNMContext *s = avctx->priv_data;
-
- avcodec_get_frame_defaults(&s->picture);
- avctx->coded_frame = &s->picture;
-
- return 0;
-}