Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pl_mpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -3098,6 +3098,14 @@ void plm_video_decode_picture(plm_video_t *self) {
self->start_code = plm_buffer_next_start_code(self->buffer);
}

// Predict skipped macroblocks after the last slice
while (self->macroblock_address < self->mb_size - 1 ) {
self->macroblock_address++;
self->mb_row = self->macroblock_address / self->mb_width;
self->mb_col = self->macroblock_address % self->mb_width;
plm_video_predict_macroblock(self);
}

// If this is a reference picture rotate the prediction pointers
if (
self->picture_type == PLM_VIDEO_PICTURE_TYPE_INTRA ||
Expand Down