Commit 0b4c3232 authored by Ronald S. Bultje's avatar Ronald S. Bultje

h264: don't drop B-frames after next keyframe on POC reset.

The keyframe after a POC reset may not be the first to be returned to
the user. Therefore, don't reset the expected next POC once we return
a keyframe to the user, but once we know that the next frame in the
return-queue is a keyframe.
parent b8909cb3
......@@ -1530,7 +1530,11 @@ static void decode_postinit(H264Context *h, int setup_finished){
h->next_outputed_poc = INT_MIN;
}
} else {
h->next_outputed_poc = out->poc;
if (out_idx == 0 && pics > 1 && h->delayed_pic[0]->f.key_frame) {
h->next_outputed_poc = INT_MIN;
} else {
h->next_outputed_poc = out->poc;
}
}
h->mmco_reset = 0;
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment