summaryrefslogtreecommitdiff
path: root/libavcodec/pnm.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-28 21:16:07 +0000
committerPaul B Mahol <onemda@gmail.com>2013-07-28 22:27:36 +0000
commita5155294e571bf1861627c7e9c3f4c32c5df32dc (patch)
tree1ee96fc5eca32651cdb8fe5a6dba1ccae1bd1cf6 /libavcodec/pnm.c
parent329221eee7d643c9b417043dadba856a313c9817 (diff)
pnm: do not set avctx->coded_frame
Signed-off-by: Paul B Mahol <onemda@gmail.com>
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 578fe34a6a..3fa4d7c95b 100644
--- a/libavcodec/pnm.c
+++ b/libavcodec/pnm.c
@@ -196,13 +196,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;
-}