}
/**
- * stores a string as vb.
+ * Stores a string as vb.
*/
static void put_str(ByteIOContext *bc, const char *string){
int len= strlen(string);
if(FFABS(pkt->pts - nus->last_pts)
> nus->max_pts_distance) flags |= FLAG_CHECKSUM;
- return flags;
+ return flags | (fc->flags & FLAG_CODED);
}
static int write_packet(AVFormatContext *s, AVPacket *pkt){
if(pkt->size + 30/*FIXME check*/ + url_ftell(bc) >= nut->last_syncpoint_pos + nut->max_distance)
store_sp= 1;
-//FIXME ensure store_sp is 1 for the first thing
+//FIXME: Ensure store_sp is 1 in the first place.
if(store_sp){
syncpoint_t *sp, dummy= {.pos= INT64_MAX};
if(flags & FLAG_CODED){
length++;
- flags |= needed_flags;
+ flags = needed_flags;
}
if((flags & needed_flags) != needed_flags)