Originally committed as revision 11002 to svn://svn.ffmpeg.org/ffmpeg/trunk
}
if (os->header > -1 && os->seq > os->header){
+ os->pflags = 0;
if (os->codec && os->codec->packet)
os->codec->packet (s, idx);
if (str)
os->lastgp = -1;
}
+ pkt->flags = os->pflags;
+
return psize;
}
unsigned int bufpos;
unsigned int pstart;
unsigned int psize;
+ unsigned int pflags;
uint32_t serial;
uint32_t seq;
uint64_t granule, lastgp;
uint8_t *p = os->buf + os->pstart;
int lb;
+ if(*p & 8)
+ os->pflags |= PKT_FLAG_KEY;
+
lb = ((*p & 2) << 1) | ((*p >> 6) & 3);
os->pstart += lb + 1;
os->psize -= lb + 1;
uint64_t iframe = gp >> thp->gpshift;
uint64_t pframe = gp & thp->gpmask;
+ if(!pframe)
+ os->pflags |= PKT_FLAG_KEY;
+
return iframe + pframe;
}