targa: set pict_type
authorPaul B Mahol <onemda@gmail.com>
Sat, 27 Jul 2013 11:25:54 +0000 (11:25 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sat, 27 Jul 2013 12:02:18 +0000 (12:02 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/targa.c

index ff4390f..2e51d80 100644 (file)
@@ -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];