h264: store {curr,max}_pic_num in the per-slice context