diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 18b3ea49e74c1b9c85c870c615f00102b2166730..98866c77af1a20f63a3900b81ccafe5cdf70f85a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2215,6 +2215,7 @@ static av_cold int decode_init(AVCodecContext *avctx){
 
     h->thread_context[0] = h;
     h->outputed_poc = INT_MIN;
+    h->prev_poc_msb= 1<<16;
     return 0;
 }