Skip to content

Commit 0754296

Browse files
committed
Predict skipped macroblocks after last slice
1 parent c871f2b commit 0754296

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pl_mpeg.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3098,6 +3098,14 @@ void plm_video_decode_picture(plm_video_t *self) {
30983098
self->start_code = plm_buffer_next_start_code(self->buffer);
30993099
}
31003100

3101+
// Predict skipped macroblocks after the last slice
3102+
while (self->macroblock_address < self->mb_size - 1 ) {
3103+
self->macroblock_address++;
3104+
self->mb_row = self->macroblock_address / self->mb_width;
3105+
self->mb_col = self->macroblock_address % self->mb_width;
3106+
plm_video_predict_macroblock(self);
3107+
}
3108+
31013109
// If this is a reference picture rotate the prediction pointers
31023110
if (
31033111
self->picture_type == PLM_VIDEO_PICTURE_TYPE_INTRA ||

0 commit comments

Comments
 (0)