From d9954ccff07be9365db9933138c8c94e028d0a5b Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 27 Jul 2013 11:25:54 +0000 Subject: [PATCH] targa: set pict_type Signed-off-by: Paul B Mahol --- libavcodec/targa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/targa.c b/libavcodec/targa.c index ff4390f675..2e51d80b3e 100644 --- a/libavcodec/targa.c +++ b/libavcodec/targa.c @@ -179,6 +179,7 @@ static int decode_frame(AVCodecContext *avctx, avcodec_set_dimensions(avctx, w, h); if ((ret = ff_get_buffer(avctx, p, 0)) < 0) return ret; + p->pict_type = AV_PICTURE_TYPE_I; if (flags & TGA_TOPTOBOTTOM) { dst = p->data[0];