[FFmpeg-cvslog] targa: set pict_type

Paul B Mahol git at videolan.org
Sat Jul 27 14:05:36 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jul 27 11:25:54 2013 +0000| [d9954ccff07be9365db9933138c8c94e028d0a5b] | committer: Paul B Mahol

targa: set pict_type

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9954ccff07be9365db9933138c8c94e028d0a5b
---

 libavcodec/targa.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/targa.c b/libavcodec/targa.c
index ff4390f..2e51d80 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];



More information about the ffmpeg-cvslog mailing list