From 78df4b5eaa3dd2a4ad0f7a33cfc35095d1308352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Wed, 6 Feb 2008 22:05:31 +0000 Subject: [PATCH] correctly set frametype --- parsers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parsers.c b/parsers.c index 345425b7..1b9e3470 100644 --- a/parsers.c +++ b/parsers.c @@ -483,6 +483,8 @@ parse_mpeg2video_pic_start(th_transport_t *t, th_stream_t *st, th_pkt_t *pkt, if(pct < PKT_I_FRAME || pct > PKT_B_FRAME) return 1; /* Illegal picture_coding_type */ + pkt->pkt_frametype = pct; + /* If this is the first I-frame seen, set dts_start as a reference offset */ if(pct == PKT_I_FRAME && t->tht_dts_start == AV_NOPTS_VALUE)