From afa21a12bf084f905187615706b0a8d92bc98661 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 9 Nov 2013 10:14:46 +0100 Subject: p*menc: use the AVFrame API properly. --- libavcodec/pnm.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libavcodec/pnm.c') 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; -} -- cgit v1.2.3