[FFmpeg-devel] [PATCH 09/13] targa: set AVFrame pict_type & key_frame
Paul B Mahol
onemda at gmail.com
Sat Jul 27 00:26:51 CEST 2013
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/targa.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/targa.c b/libavcodec/targa.c
index ff4390f..3c812b8 100644
--- a/libavcodec/targa.c
+++ b/libavcodec/targa.c
@@ -179,6 +179,8 @@ 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;
+ p->key_frame = 1;
if (flags & TGA_TOPTOBOTTOM) {
dst = p->data[0];
--
1.7.11.2
More information about the ffmpeg-devel
mailing list