• R/O
  • HTTP
  • SSH
  • HTTPS

ffmpeg_saccubus: Commit

さきゅばす/いんきゅばす用ffmpeg


Commit MetaInfo

Révisionfe0ac337bd6b4783162bc55eb62f82181d498d5e (tree)
l'heure2011-09-12 00:36:37
AuteurMichael Niedermayer <michaelni@gmx....>
CommiterMichael Niedermayer

Message de Log

mpeg4videodec: Fix new slice end detection for missing slices.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Change Summary

Modification

--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -1489,6 +1489,16 @@ end:
14891489 return -1;
14901490 } else if (s->mb_x + s->mb_y*s->mb_width + 1 >= next)
14911491 return SLICE_END;
1492+
1493+ if(s->pict_type==AV_PICTURE_TYPE_B){
1494+ const int delta= s->mb_x + 1 == s->mb_width ? 2 : 1;
1495+ ff_thread_await_progress((AVFrame*)s->next_picture_ptr,
1496+ (s->mb_x + delta >= s->mb_width) ? FFMIN(s->mb_y+1, s->mb_height-1) : s->mb_y, 0);
1497+ if (s->next_picture.f.mbskip_table[xy + delta])
1498+ return SLICE_OK;
1499+ }
1500+
1501+ return SLICE_END;
14921502 }
14931503 }
14941504
Afficher sur ancien navigateur de dépôt.