It appears last_pts was not set ...
[libav.git] / libavformat / nutenc.c
index f3f8ef9..5c0975c 100644 (file)
@@ -727,6 +727,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt){
 
     put_buffer(bc, pkt->data + nut->header_len[header_idx], pkt->size - nut->header_len[header_idx]);
     nus->last_flags= flags;
+    nus->last_pts= pkt->pts;
 
     //FIXME just store one per syncpoint
     if(flags & FLAG_KEY)