summaryrefslogtreecommitdiff
path: root/libavcodec/targa.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-07-27 11:25:54 +0000
committerPaul B Mahol <onemda@gmail.com>2013-07-27 12:02:18 +0000
commitd9954ccff07be9365db9933138c8c94e028d0a5b (patch)
treec8cf00955f36db2b4cca6eee234a1344de55242d /libavcodec/targa.c
parent3ea5d01a12ed0addd03f1fc33b1e9de350198256 (diff)
targa: set pict_type
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/targa.c')
-rw-r--r--libavcodec/targa.c1
1 files changed, 1 insertions, 0 deletions
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];